Blender V5.3
blender::bGPDstroke Struct Reference

#include <DNA_gpencil_legacy_types.h>

Public Attributes

struct bGPDstroke * next = nullptr
struct bGPDstroke * prev = nullptr
bGPDspoint * points = nullptr
bGPDtriangle * triangles = nullptr
int totpoints = 0
int tot_triangles = 0
short thickness = 0
eGPDstroke_Flag flag = {}
short _pad [2] = {}
double inittime = 0
DNA_DEPRECATED char colorname [128] = ""
int mat_nr = 0
eGPDstroke_Caps caps [2] = {}
float hardness = 0
float aspect_ratio [2] = {}
float fill_opacity_fac = 0
float uv_rotation = 0
float uv_translation [2] = {}
float uv_scale = 0
int select_index = 0
char _pad4 [4] = {}
struct MDeformVert * dvert = nullptr
void * _pad3 = nullptr
float vert_color_fill [4] = {}
struct bGPDcurve * editcurve = nullptr
bGPDstroke_Runtime runtime
void * _pad5 = nullptr

Detailed Description

Grease-Pencil Annotations - 'Stroke' -> A stroke represents a (simplified version) of the curve drawn by the user in one 'mouse-down'->'mouse-up' operation

Definition at line 458 of file DNA_gpencil_legacy_types.h.

Member Data Documentation

◆ _pad

short blender::bGPDstroke::_pad[2] = {}

Definition at line 476 of file DNA_gpencil_legacy_types.h.

◆ _pad3

void* blender::bGPDstroke::_pad3 = nullptr

Definition at line 509 of file DNA_gpencil_legacy_types.h.

◆ _pad4

char blender::bGPDstroke::_pad4[4] = {}

Definition at line 505 of file DNA_gpencil_legacy_types.h.

◆ _pad5

void* blender::bGPDstroke::_pad5 = nullptr

Definition at line 518 of file DNA_gpencil_legacy_types.h.

◆ aspect_ratio

◆ caps

eGPDstroke_Caps blender::bGPDstroke::caps[2] = {}

◆ colorname

DNA_DEPRECATED char blender::bGPDstroke::colorname[128] = ""

Color name.

Definition at line 482 of file DNA_gpencil_legacy_types.h.

Referenced by blender::blo_do_versions_270(), and blender::do_versions_fix_annotations().

◆ dvert

◆ editcurve

◆ fill_opacity_fac

float blender::bGPDstroke::fill_opacity_fac = 0

Factor of opacity for Fill color (used by opacity modifier).

Definition at line 495 of file DNA_gpencil_legacy_types.h.

Referenced by blender::annotation_stroke_newfrombuffer(), blender::blo_do_versions_280(), and blender::view3d_ruler_to_gpencil().

◆ flag

◆ hardness

◆ inittime

◆ mat_nr

int blender::bGPDstroke::mat_nr = 0

◆ next

◆ points

◆ prev

struct bGPDstroke * blender::bGPDstroke::prev = nullptr

Definition at line 461 of file DNA_gpencil_legacy_types.h.

Referenced by blender::BKE_gpencil_stroke_duplicate().

◆ runtime

bGPDstroke_Runtime blender::bGPDstroke::runtime

Definition at line 517 of file DNA_gpencil_legacy_types.h.

◆ select_index

int blender::bGPDstroke::select_index = 0

Stroke selection index.

Definition at line 504 of file DNA_gpencil_legacy_types.h.

◆ thickness

◆ tot_triangles

◆ totpoints

◆ triangles

◆ uv_rotation

float blender::bGPDstroke::uv_rotation = 0

◆ uv_scale

◆ uv_translation

float blender::bGPDstroke::uv_translation[2] = {}

◆ vert_color_fill

float blender::bGPDstroke::vert_color_fill[4] = {}

Vertex Color for Fill (one for all stroke, A=mix factor).

Definition at line 512 of file DNA_gpencil_legacy_types.h.

Referenced by blender::blo_do_versions_280(), and blender::bke::greasepencil::convert::legacy_gpencil_frame_to_grease_pencil_drawing().


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