Blender V4.3
VPaintData Struct Reference

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

Public Member Functions

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

Public Attributes

ViewContext vc
 
AttrDomain domain
 
eCustomDataType 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
 

Detailed Description

Definition at line 893 of file paint_vertex.cc.

Constructor & Destructor Documentation

◆ ~VPaintData()

VPaintData::~VPaintData ( )
inline

Definition at line 921 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 915 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 914 of file paint_vertex.cc.

Referenced by do_vpaint_brush_smear(), and vpaint_stroke_update_step().

◆ domain

AttrDomain VPaintData::domain

◆ is_texbrush

bool VPaintData::is_texbrush

Definition at line 910 of file paint_vertex.cc.

◆ normal_angle_precalc

NormalAnglePrecalc VPaintData::normal_angle_precalc

◆ paintcol

ColorPaint4f VPaintData::paintcol

Definition at line 900 of file paint_vertex.cc.

Referenced by calculate_average_color(), and paint_and_tex_color_alpha().

◆ prev_colors

GArray VPaintData::prev_colors

◆ [struct]

struct { ... } VPaintData::smear

◆ type

◆ vc

◆ vert_normals

Span<float3> VPaintData::vert_normals

Definition at line 908 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 907 of file paint_vertex.cc.

◆ vp_handle

VertProjHandle* VPaintData::vp_handle

Definition at line 902 of file paint_vertex.cc.

Referenced by ~VPaintData().


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