Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_console/console_draw.c
| Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | int pen[2]; | ||||
| pen[0] += tvc->draw_rect.xmin; | pen[0] += tvc->draw_rect.xmin; | ||||
| pen[1] += tvc->draw_rect.ymin; | pen[1] += tvc->draw_rect.ymin; | ||||
| } | } | ||||
| /* cursor */ | /* cursor */ | ||||
| GPUVertFormat *format = immVertexFormat(); | GPUVertFormat *format = immVertexFormat(); | ||||
| uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | ||||
| immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); | immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR); | ||||
| immUniformThemeColor(TH_CONSOLE_CURSOR); | immUniformThemeColor(TH_CONSOLE_CURSOR); | ||||
| immRectf(pos, pen[0] - U.pixelsize, pen[1], pen[0] + U.pixelsize, pen[1] + tvc->lheight); | immRectf(pos, pen[0] - U.pixelsize, pen[1], pen[0] + U.pixelsize, pen[1] + tvc->lheight); | ||||
| immUnbindProgram(); | immUnbindProgram(); | ||||
| } | } | ||||
| static void console_textview_const_colors(TextViewContext *UNUSED(tvc), uchar bg_sel[4]) | static void console_textview_const_colors(TextViewContext *UNUSED(tvc), uchar bg_sel[4]) | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||