Blender V5.0
VPaintData Struct Reference

Inherits blender::ed::sculpt_paint::PaintModeData.

Public Member Functions

 ~VPaintData () override
Public Member Functions inherited from blender::ed::sculpt_paint::PaintModeData
virtual ~PaintModeData ()=default

Public Attributes

ViewContext vc
AttrDomain domain
bke::AttrType type
NormalAnglePrecalc normal_angle_precalc
ColorPaint4f paintcol
VertProjHandlevp_handle
Span< float3vert_positions
Span< float3vert_normals
bool is_texbrush
struct { 
   GArray   color_prev 
   GArray   color_curr 
smear
GArray prev_colors
GArray stroke_buffer

Detailed Description

Definition at line 949 of file paint_vertex.cc.

Constructor & Destructor Documentation

◆ ~VPaintData()

VPaintData::~VPaintData ( )
inlineoverride

Definition at line 978 of file paint_vertex.cc.

References ED_vpaint_proj_handle_free(), and vp_handle.

Member Data Documentation

◆ color_curr

GArray VPaintData::color_curr

Definition at line 971 of file paint_vertex.cc.

Referenced by do_vpaint_brush_smear(), and vpaint_stroke_update_step().

◆ color_prev

GArray VPaintData::color_prev

Definition at line 970 of file paint_vertex.cc.

Referenced by do_vpaint_brush_smear(), and vpaint_stroke_update_step().

◆ domain

◆ is_texbrush

bool VPaintData::is_texbrush

Definition at line 966 of file paint_vertex.cc.

◆ normal_angle_precalc

NormalAnglePrecalc VPaintData::normal_angle_precalc

◆ paintcol

ColorPaint4f VPaintData::paintcol

◆ prev_colors

GArray VPaintData::prev_colors

◆ [struct]

struct { ... } VPaintData::smear

◆ stroke_buffer

GArray VPaintData::stroke_buffer

Definition at line 976 of file paint_vertex.cc.

Referenced by vpaint_do_draw().

◆ type

◆ vc

◆ vert_normals

Span<float3> VPaintData::vert_normals

Definition at line 964 of file paint_vertex.cc.

◆ vert_positions

Span<float3> VPaintData::vert_positions

Owned by vp_handle.

Todo
Look into replacing this with just using the evaluated/deform positions.

Definition at line 963 of file paint_vertex.cc.

◆ vp_handle

VertProjHandle* VPaintData::vp_handle

Definition at line 958 of file paint_vertex.cc.

Referenced by ~VPaintData().


The documentation for this struct was generated from the following file: