Blender V4.3
CurveMaskCache Struct Reference

Caching structure for curve mask. More...

#include <paint_intern.hh>

Public Attributes

int last_curve_timestamp
 Last CurveMapping.changed_timestamp being read.
 
floatsampled_curve
 sampled version of the brush curve-mapping.
 
size_t curve_mask_size
 Size in bytes of the curve_mask field.
 
ushortcurve_mask
 Curve mask that can be passed as curve_mask parameter when.
 

Detailed Description

Caching structure for curve mask.

When 2d painting images the curve mask is used as an input.

Definition at line 337 of file paint_intern.hh.

Member Data Documentation

◆ curve_mask

ushort* CurveMaskCache::curve_mask

Curve mask that can be passed as curve_mask parameter when.

Definition at line 360 of file paint_intern.hh.

Referenced by blender::ed::sculpt_paint::curve_mask_allocate(), blender::ed::sculpt_paint::curve_mask_free(), and blender::ed::sculpt_paint::update_curve_mask().

◆ curve_mask_size

size_t CurveMaskCache::curve_mask_size

Size in bytes of the curve_mask field.

Used to determine if the curve_mask needs to be re-allocated.

Definition at line 355 of file paint_intern.hh.

Referenced by blender::ed::sculpt_paint::curve_mask_allocate(), blender::ed::sculpt_paint::curve_mask_free(), and blender::ed::sculpt_paint::is_curve_mask_size_valid().

◆ last_curve_timestamp

int CurveMaskCache::last_curve_timestamp

Last CurveMapping.changed_timestamp being read.

When different the input cache needs to be recalculated.

Definition at line 343 of file paint_intern.hh.

Referenced by blender::ed::sculpt_paint::is_sampled_curve_valid(), blender::ed::sculpt_paint::sampled_curve_free(), and blender::ed::sculpt_paint::update_sampled_curve().

◆ sampled_curve


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