Blender V4.3
blender::ed::sculpt_paint::greasepencil::ColorGrid Struct Reference

Public Member Functions

float2 pos_to_coords (const int2 pos, const float2 center) const
 
int2 coords_to_pos (const float2 coord, const float2 center) const
 
int pos_to_index (const int2 pos) const
 

Public Attributes

Array< float4colors
 
int size
 
int cell_size_px
 
float2 center
 

Detailed Description

Definition at line 18 of file grease_pencil_vertex_smear.cc.

Member Function Documentation

◆ coords_to_pos()

int2 blender::ed::sculpt_paint::greasepencil::ColorGrid::coords_to_pos ( const float2 coord,
const float2 center ) const
inline

◆ pos_to_coords()

float2 blender::ed::sculpt_paint::greasepencil::ColorGrid::pos_to_coords ( const int2 pos,
const float2 center ) const
inline

Definition at line 29 of file grease_pencil_vertex_smear.cc.

References center, and pos.

◆ pos_to_index()

int blender::ed::sculpt_paint::greasepencil::ColorGrid::pos_to_index ( const int2 pos) const
inline

Member Data Documentation

◆ cell_size_px

int blender::ed::sculpt_paint::greasepencil::ColorGrid::cell_size_px

Definition at line 24 of file grease_pencil_vertex_smear.cc.

◆ center

float2 blender::ed::sculpt_paint::greasepencil::ColorGrid::center

◆ colors

Array<float4> blender::ed::sculpt_paint::greasepencil::ColorGrid::colors

◆ size

int blender::ed::sculpt_paint::greasepencil::ColorGrid::size

Definition at line 22 of file grease_pencil_vertex_smear.cc.


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