Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 3,387 Lines • ▼ Show 20 Lines | static void brush_drawcursor(bContext *C, int x, int y, void *UNUSED(customdata)) | ||||
| if (!WM_toolsystem_active_tool_is_brush(C)) { | if (!WM_toolsystem_active_tool_is_brush(C)) { | ||||
| return; | return; | ||||
| } | } | ||||
| brush = &pset->brush[pset->brushtype]; | brush = &pset->brush[pset->brushtype]; | ||||
| if (brush) { | if (brush) { | ||||
| 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); | ||||
| immUniformColor4ub(255, 255, 255, 128); | immUniformColor4ub(255, 255, 255, 128); | ||||
| GPU_line_smooth(true); | GPU_line_smooth(true); | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| imm_draw_circle_wire_2d(pos, (float)x, (float)y, pe_brush_size_get(scene, brush), 40); | imm_draw_circle_wire_2d(pos, (float)x, (float)y, pe_brush_size_get(scene, brush), 40); | ||||
| ▲ Show 20 Lines • Show All 2,307 Lines • Show Last 20 Lines | |||||