Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/space_graph.c
| Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | if (ANIM_animdata_get_context(C, &ac)) { | ||||
| /* extra offset so that these items are visible */ | /* extra offset so that these items are visible */ | ||||
| v2d->tot.xmin -= 10.0f; | v2d->tot.xmin -= 10.0f; | ||||
| v2d->tot.xmax += 10.0f; | v2d->tot.xmax += 10.0f; | ||||
| } | } | ||||
| if (((sipo->flag & SIPO_NODRAWCURSOR) == 0)) { | if (((sipo->flag & SIPO_NODRAWCURSOR) == 0)) { | ||||
| 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); | ||||
| /* horizontal component of value-cursor (value line before the current frame line) */ | /* horizontal component of value-cursor (value line before the current frame line) */ | ||||
| float y = sipo->cursorVal; | float y = sipo->cursorVal; | ||||
| /* Draw a line to indicate the cursor value. */ | /* Draw a line to indicate the cursor value. */ | ||||
| immUniformThemeColorShadeAlpha(TH_CFRAME, -10, -50); | immUniformThemeColorShadeAlpha(TH_CFRAME, -10, -50); | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| GPU_line_width(2.0); | GPU_line_width(2.0); | ||||
| ▲ Show 20 Lines • Show All 646 Lines • Show Last 20 Lines | |||||