Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/view2d.cc
| Show First 20 Lines • Show All 1,348 Lines • ▼ Show 20 Lines | for (int i_y = 0; i_y < count_y; i_y++) { | ||||
| for (int i_x = 0; i_x < count_x; i_x++) { | for (int i_x = 0; i_x < count_x; i_x++) { | ||||
| const float x = start_x + step * i_x; | const float x = start_x + step * i_x; | ||||
| immAttr4fv(color_id, color); | immAttr4fv(color_id, color); | ||||
| immVertex2f(pos, x, y); | immVertex2f(pos, x, y); | ||||
| } | } | ||||
| } | } | ||||
| immEnd(); | immEnd(); | ||||
| /* Lines crossing the center of the editor to help orientation. */ | |||||
| immBegin(GPU_PRIM_LINES, 4); | |||||
| immVertex2f(pos, v2d->cur.xmin, 0.0f); | |||||
| immVertex2f(pos, v2d->cur.xmax, 0.0f); | |||||
| immVertex2f(pos, 0.0f, v2d->cur.ymin); | |||||
| immVertex2f(pos, 0.0f, v2d->cur.ymax); | |||||
| immEnd(); | |||||
| } | } | ||||
| immUnbindProgram(); | immUnbindProgram(); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| ▲ Show 20 Lines • Show All 766 Lines • Show Last 20 Lines | |||||