|
Blender V4.3
|
Go to the source code of this file.
Functions | |
| bool | transform_draw_cursor_poll (bContext *C) |
| void | transform_draw_cursor_draw (bContext *C, int x, int y, void *customdata) |
Cursor and help-line drawing, callback for: WM_paint_cursor_activate
Definition at line 83 of file transform_draw_cursors.cc.
References ARROW_WIDTH, atan2f, TransInfo::center_global, col, cosf, DASH_LENGTH, DASH_WIDTH, MouseInput::data, DOWN, drawArrow(), ELEM, float, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_rotate_axis(), GPU_matrix_translate_3f(), GPU_PRIM_LINES, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), TransInfo::helpline, HLP_ANGLE, HLP_CARROW, HLP_HARROW, HLP_NONE, HLP_SPRING, HLP_TRACKBALL, HLP_VARROW, immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immUniform2fv(), immUniformColor3ubv(), immUniformThemeColor3(), immVertex2f(), immVertex2fv(), immVertexFormat(), LEFT, TransInfo::mouse, TransInfo::mval, projectFloatViewEx(), RAD2DEGF, TransInfo::region, RIGHT, sinf, TH_GRID, TH_VIEW_OVERLAY, UI_GetThemeColor3ubv(), UI_make_axis_color(), UP, V3D_PROJ_TEST_CLIP_ZERO, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by initTransform().
| bool transform_draw_cursor_poll | ( | bContext * | C | ) |
Poll callback for cursor drawing: WM_paint_cursor_activate
Definition at line 77 of file transform_draw_cursors.cc.
References CTX_wm_region(), ELEM, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, and true.
Referenced by initTransform().