Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_playanim.c
| Show First 20 Lines • Show All 595 Lines • ▼ Show 20 Lines | if (ps->indicator) { | ||||
| fac = 2.0f * fac - 1.0f; | fac = 2.0f * fac - 1.0f; | ||||
| GPU_matrix_push_projection(); | GPU_matrix_push_projection(); | ||||
| GPU_matrix_identity_projection_set(); | GPU_matrix_identity_projection_set(); | ||||
| GPU_matrix_push(); | GPU_matrix_push(); | ||||
| GPU_matrix_identity_set(); | GPU_matrix_identity_set(); | ||||
| uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | ||||
| immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); | immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR); | ||||
| immUniformColor3ub(0, 255, 0); | immUniformColor3ub(0, 255, 0); | ||||
| immBegin(GPU_PRIM_LINES, 2); | immBegin(GPU_PRIM_LINES, 2); | ||||
| immVertex2f(pos, fac, -1.0f); | immVertex2f(pos, fac, -1.0f); | ||||
| immVertex2f(pos, fac, 1.0f); | immVertex2f(pos, fac, 1.0f); | ||||
| immEnd(); | immEnd(); | ||||
| immUnbindProgram(); | immUnbindProgram(); | ||||
| ▲ Show 20 Lines • Show All 1,275 Lines • Show Last 20 Lines | |||||