Blender  V3.3
Public Attributes | List of all members
CurveMaskCache Struct Reference

Caching structure for curve mask. More...

#include <paint_intern.h>

Public Attributes

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

Detailed Description

Caching structure for curve mask.

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

Definition at line 287 of file paint_intern.h.

Member Data Documentation

◆ curve_mask

ushort* CurveMaskCache::curve_mask

Curve mask that can be passed as curve_mask parameter when.

Definition at line 310 of file paint_intern.h.

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 305 of file paint_intern.h.

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 293 of file paint_intern.h.

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

float* CurveMaskCache::sampled_curve

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