Blender V5.3
blender::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.
float * sampled_curve
 sampled version of the brush curve-mapping.
size_t curve_mask_size
 Size in bytes of the curve_mask field.
ushort * curve_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 511 of file paint_intern.hh.

Member Data Documentation

◆ curve_mask

ushort* blender::CurveMaskCache::curve_mask

Curve mask that can be passed as curve_mask parameter when.

Definition at line 534 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 blender::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 529 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 blender::CurveMaskCache::last_curve_timestamp

Last #CurveMapping.changed_timestamp being read.

When different the input cache needs to be recalculated.

Definition at line 517 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: