Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_markers.c
| Show First 20 Lines • Show All 497 Lines • ▼ Show 20 Lines | if (is_elevated) { | ||||
| name_y += UI_DPI_FAC * 10; | name_y += UI_DPI_FAC * 10; | ||||
| } | } | ||||
| draw_marker_name(text_color, fstyle, marker, xpos, xmax, name_y); | draw_marker_name(text_color, fstyle, marker, xpos, xmax, name_y); | ||||
| } | } | ||||
| static void draw_markers_background(rctf *rect) | static void draw_markers_background(rctf *rect) | ||||
| { | { | ||||
| 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); | ||||
| uchar shade[4]; | uchar shade[4]; | ||||
| UI_GetThemeColor4ubv(TH_TIME_SCRUB_BACKGROUND, shade); | UI_GetThemeColor4ubv(TH_TIME_SCRUB_BACKGROUND, shade); | ||||
| immUniformColor4ubv(shade); | immUniformColor4ubv(shade); | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| ▲ Show 20 Lines • Show All 1,386 Lines • Show Last 20 Lines | |||||