|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "BLI_math_rotation.h"#include "BLI_rect.h"#include "BLI_task.h"#include "BLI_utildefines.h"#include "DNA_brush_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_userdef_types.h"#include "DNA_view3d_types.h"#include "BKE_brush.hh"#include "BKE_colortools.hh"#include "BKE_context.hh"#include "BKE_curve.hh"#include "BKE_grease_pencil.hh"#include "BKE_image.hh"#include "BKE_node_runtime.hh"#include "BKE_object.hh"#include "BKE_paint.hh"#include "NOD_texture.h"#include "WM_api.hh"#include "wm_cursors.hh"#include "IMB_colormanagement.hh"#include "IMB_imbuf_types.hh"#include "ED_grease_pencil.hh"#include "ED_image.hh"#include "ED_view3d.hh"#include "GPU_immediate.hh"#include "GPU_immediate_util.hh"#include "GPU_matrix.hh"#include "GPU_state.hh"#include "GPU_texture.hh"#include "UI_resources.hh"#include "paint_intern.hh"#include "sculpt_boundary.hh"#include "sculpt_cloth.hh"#include "sculpt_expand.hh"#include "sculpt_intern.hh"#include "sculpt_pose.hh"Go to the source code of this file.
Classes | |
| struct | TexSnapshot |
| struct | CursorSnapshot |
| struct | blender::ed::sculpt_paint::LoadTexData |
| struct | blender::ed::sculpt_paint::PaintCursorContext |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::sculpt_paint |
Variables | |
| static TexSnapshot | primary_snap = {nullptr} |
| static TexSnapshot | secondary_snap = {nullptr} |
| static CursorSnapshot | cursor_snap = {nullptr} |
Definition at line 2181 of file paint_cursor.cc.
References BKE_paint_invalidate_overlay_all(), Paint::paint_cursor, blender::ed::sculpt_paint::paint_draw_cursor(), RGN_TYPE_ANY, SPACE_TYPE_ANY, and WM_paint_cursor_activate().
Referenced by blender::ed::sculpt_paint::curves_sculptmode_enter(), ED_space_image_paint_update(), image_listener(), blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), blender::ed::sculpt_paint::object_sculpt_mode_enter(), blender::ed::greasepencil::paintmode_toggle_exec(), blender::ed::greasepencil::sculptmode_toggle_exec(), toggle_paint_cursor(), blender::ed::greasepencil::vertexmode_toggle_exec(), and blender::ed::greasepencil::weightmode_toggle_exec().
| void paint_cursor_delete_textures | ( | ) |
Delete overlay cursor textures to preserve memory and invalidate all overlay flags.
Definition at line 94 of file paint_cursor.cc.
References BKE_paint_invalidate_overlay_all(), cursor_snap, GPU_texture_free(), CursorSnapshot::overlay_texture, TexSnapshot::overlay_texture, primary_snap, and secondary_snap.
Referenced by ED_space_image_paint_update(), blender::ed::sculpt_paint::vwpaint::mode_exit_generic(), blender::ed::sculpt_paint::object_sculpt_mode_exit(), and toggle_paint_cursor().
|
static |
Definition at line 92 of file paint_cursor.cc.
Referenced by blender::ed::sculpt_paint::load_tex_cursor(), paint_cursor_delete_textures(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), and v3d_cursor_eventstate_save_xy().
|
static |
Definition at line 90 of file paint_cursor.cc.
Referenced by blender::ed::sculpt_paint::load_tex(), paint_cursor_delete_textures(), and blender::ed::sculpt_paint::paint_draw_tex_overlay().
|
static |
Definition at line 91 of file paint_cursor.cc.
Referenced by blender::ed::sculpt_paint::load_tex(), paint_cursor_delete_textures(), and blender::ed::sculpt_paint::paint_draw_tex_overlay().