Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/clip_graph_draw.c
| Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | void clip_draw_graph(SpaceClip *sc, ARegion *region, Scene *scene) | ||||
| View2D *v2d = ®ion->v2d; | View2D *v2d = ®ion->v2d; | ||||
| /* grid */ | /* grid */ | ||||
| UI_view2d_draw_lines_x__values(v2d); | UI_view2d_draw_lines_x__values(v2d); | ||||
| UI_view2d_draw_lines_y__values(v2d); | UI_view2d_draw_lines_y__values(v2d); | ||||
| if (clip) { | if (clip) { | ||||
| 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); | ||||
| GPU_point_size(3.0f); | GPU_point_size(3.0f); | ||||
| if (sc->flag & (SC_SHOW_GRAPH_TRACKS_MOTION | SC_SHOW_GRAPH_TRACKS_ERROR)) { | if (sc->flag & (SC_SHOW_GRAPH_TRACKS_MOTION | SC_SHOW_GRAPH_TRACKS_ERROR)) { | ||||
| draw_tracks_motion_and_error_curves(v2d, sc, pos); | draw_tracks_motion_and_error_curves(v2d, sc, pos); | ||||
| } | } | ||||
| if (sc->flag & SC_SHOW_GRAPH_FRAMES) { | if (sc->flag & SC_SHOW_GRAPH_FRAMES) { | ||||
| Show All 9 Lines | |||||