Blender V4.3
tGPspoint Struct Reference

#include <ED_gpencil_legacy.hh>

Public Attributes

float m_xy [2]
 
float pressure
 
float strength
 
float time
 
float uv_fac
 
float uv_rot
 
float rnd [3]
 
bool rnd_dirty
 
float vert_color [4]
 

Detailed Description

Temporary 'Stroke Point' data (2D / screen-space)

Used as part of the 'stroke cache' used during drawing of new strokes

Definition at line 52 of file ED_gpencil_legacy.hh.

Member Data Documentation

◆ m_xy

◆ pressure

float tGPspoint::pressure

◆ rnd

float tGPspoint::rnd[3]

Random value.

Definition at line 66 of file ED_gpencil_legacy.hh.

◆ rnd_dirty

bool tGPspoint::rnd_dirty

Random flag.

Definition at line 68 of file ED_gpencil_legacy.hh.

◆ strength

float tGPspoint::strength

Pressure of tablet at this point for alpha factor.

Definition at line 58 of file ED_gpencil_legacy.hh.

Referenced by annotation_stroke_addpoint(), annotation_stroke_newfrombuffer(), and ED_gpencil_tpoint_to_point().

◆ time

float tGPspoint::time

Time relative to stroke start (used when converting to path & in build modifier).

Definition at line 60 of file ED_gpencil_legacy.hh.

Referenced by annotation_stroke_addpoint(), and annotation_stroke_newfrombuffer().

◆ uv_fac

float tGPspoint::uv_fac

Factor of uv along the stroke.

Definition at line 62 of file ED_gpencil_legacy.hh.

Referenced by ED_gpencil_tpoint_to_point().

◆ uv_rot

float tGPspoint::uv_rot

UV rotation for dot mode.

Definition at line 64 of file ED_gpencil_legacy.hh.

Referenced by ED_gpencil_tpoint_to_point().

◆ vert_color

float tGPspoint::vert_color[4]

Point vertex color.

Definition at line 70 of file ED_gpencil_legacy.hh.


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