Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/spreadsheet_draw.cc
| Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | void draw_spreadsheet_in_region(const bContext *C, | ||||
| UI_ThemeClearColor(TH_BACK); | UI_ThemeClearColor(TH_BACK); | ||||
| View2D *v2d = ®ion->v2d; | View2D *v2d = ®ion->v2d; | ||||
| const int scroll_offset_y = v2d->cur.ymax; | const int scroll_offset_y = v2d->cur.ymax; | ||||
| const int scroll_offset_x = v2d->cur.xmin; | const int scroll_offset_x = v2d->cur.xmin; | ||||
| GPUVertFormat *format = immVertexFormat(); | GPUVertFormat *format = immVertexFormat(); | ||||
| uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_I32, 2, GPU_FETCH_INT_TO_FLOAT); | uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_I32, 2, GPU_FETCH_INT_TO_FLOAT); | ||||
| immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); | immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR); | ||||
| draw_index_column_background(pos, region, drawer); | draw_index_column_background(pos, region, drawer); | ||||
| draw_alternating_row_overlay(pos, scroll_offset_y, region, drawer); | draw_alternating_row_overlay(pos, scroll_offset_y, region, drawer); | ||||
| draw_top_row_background(pos, region, drawer); | draw_top_row_background(pos, region, drawer); | ||||
| draw_separator_lines(pos, scroll_offset_x, region, drawer); | draw_separator_lines(pos, scroll_offset_x, region, drawer); | ||||
| immUnbindProgram(); | immUnbindProgram(); | ||||
| Show All 14 Lines | |||||