Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/curves_sculpt_ops.cc
| Show First 20 Lines • Show All 1,092 Lines • ▼ Show 20 Lines | static void min_distance_edit_draw(bContext *C, int UNUSED(x), int UNUSED(y), void *customdata) | ||||
| GPU_scissor(scissor[0], scissor[1], scissor[2], scissor[3]); | GPU_scissor(scissor[0], scissor[1], scissor[2], scissor[3]); | ||||
| /* Draw the brush circle. */ | /* Draw the brush circle. */ | ||||
| GPU_matrix_translate_2f((float)op_data.initial_mouse.x, (float)op_data.initial_mouse.y); | GPU_matrix_translate_2f((float)op_data.initial_mouse.x, (float)op_data.initial_mouse.y); | ||||
| GPUVertFormat *format = immVertexFormat(); | GPUVertFormat *format = immVertexFormat(); | ||||
| uint pos2d = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | uint pos2d = 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); | ||||
| immUniformColor3fvAlpha(circle_col, circle_alpha); | immUniformColor3fvAlpha(circle_col, circle_alpha); | ||||
| imm_draw_circle_wire_2d(pos2d, 0.0f, 0.0f, brush_radius_re, 80); | imm_draw_circle_wire_2d(pos2d, 0.0f, 0.0f, brush_radius_re, 80); | ||||
| immUnbindProgram(); | immUnbindProgram(); | ||||
| GPU_blend(GPU_BLEND_NONE); | GPU_blend(GPU_BLEND_NONE); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines | |||||