Blender V4.3
bGPDlayer Struct Reference

#include <DNA_gpencil_legacy_types.h>

Public Attributes

struct bGPDlayernext
 
struct bGPDlayerprev
 
ListBase frames
 
bGPDframeactframe
 
short flag
 
short onion_flag
 
float color [4]
 
float fill [4]
 
char info [128]
 
short thickness
 
short pass_index
 
struct Objectparent
 
float inverse [4][4]
 
char parsubstr [64]
 
short partype
 
short line_change
 
float tintcolor [4]
 
float opacity
 
char viewlayername [64]
 
int blend_mode
 
float vertex_paint_opacity
 
short gstep
 
short gstep_next
 
float gcolor_prev [3]
 
float gcolor_next [3]
 
char _pad1 [4]
 
ListBase mask_layers
 
int act_mask
 
char _pad2 [4]
 
float location [3]
 
float rotation [3]
 
float scale [3]
 
float layer_mat [4][4]
 
float layer_invmat [4][4]
 
char _pad3 [4]
 
bGPDlayer_Runtime runtime
 

Detailed Description

Grease-Pencil Annotations - 'Layer'.

Definition at line 477 of file DNA_gpencil_legacy_types.h.

Member Data Documentation

◆ _pad1

char bGPDlayer::_pad1[4]

Definition at line 545 of file DNA_gpencil_legacy_types.h.

◆ _pad2

char bGPDlayer::_pad2[4]

Definition at line 551 of file DNA_gpencil_legacy_types.h.

◆ _pad3

char bGPDlayer::_pad3[4]

Definition at line 556 of file DNA_gpencil_legacy_types.h.

◆ act_mask

int bGPDlayer::act_mask

Current Mask index (noted base 1).

Definition at line 550 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_mask_remove().

◆ actframe

◆ blend_mode

int bGPDlayer::blend_mode

Blend modes.

Definition at line 525 of file DNA_gpencil_legacy_types.h.

Referenced by gpencil_layer_cache_add().

◆ color

float bGPDlayer::color[4]

Color for strokes in layers. Used for annotations, and for ruler (which uses GPencil internally).

Definition at line 494 of file DNA_gpencil_legacy_types.h.

Referenced by acf_gpl_channel_color(), annotation_paint_initstroke(), BKE_gpencil_layer_addnew(), vicon_gplayer_color_draw(), and view3d_ruler_to_gpencil().

◆ fill

float bGPDlayer::fill[4]

Fill color for strokes in layers. Not used anymore (was only for).

Definition at line 496 of file DNA_gpencil_legacy_types.h.

◆ flag

◆ frames

◆ gcolor_next

float bGPDlayer::gcolor_next[3]

Color for ghosts after the active frame.

Definition at line 544 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_draw_onionskins(), and BKE_gpencil_layer_addnew().

◆ gcolor_prev

float bGPDlayer::gcolor_prev[3]

Color for ghosts before the active frame.

Definition at line 542 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_draw_onionskins(), and BKE_gpencil_layer_addnew().

◆ gstep

short bGPDlayer::gstep

Ghosts Before: max number of ghost frames to show between active frame and the one before it (0 = only the ghost itself).

Definition at line 534 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_draw_onionskins().

◆ gstep_next

short bGPDlayer::gstep_next

Ghosts After: max number of ghost frames to show after active frame and the following it (0 = only the ghost itself).

Definition at line 539 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_draw_onionskins().

◆ info

char bGPDlayer::info[128]

◆ inverse

float bGPDlayer::inverse[4][4]

Inverse matrix (only used if parented).

Definition at line 510 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_transform_matrix_get().

◆ layer_invmat

float bGPDlayer::layer_invmat[4][4]

Definition at line 555 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew().

◆ layer_mat

◆ line_change

short bGPDlayer::line_change

Thickness adjustment.

Definition at line 516 of file DNA_gpencil_legacy_types.h.

Referenced by gpencil_layer_cache_add().

◆ location

float bGPDlayer::location[3]

Layer transforms.

Definition at line 554 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew(), and greasepencil_copy_data().

◆ mask_layers

◆ next

◆ onion_flag

short bGPDlayer::onion_flag

Per-layer onion-skinning flags (eGPDlayer_OnionFlag).

Definition at line 490 of file DNA_gpencil_legacy_types.h.

Referenced by ANIM_channel_draw_widgets(), annotation_draw_onionskins(), BKE_gpencil_layer_addnew(), and greasepencil_copy_data().

◆ opacity

float bGPDlayer::opacity

Opacity of the layer.

Definition at line 520 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew(), and gpencil_layer_final_opacity_get().

◆ parent

struct Object* bGPDlayer::parent

Parent object.

Definition at line 508 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_transform_matrix_get().

◆ parsubstr

char bGPDlayer::parsubstr[64]

String describing sub-object info, MAX_ID_NAME - 2.

Definition at line 512 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_transform_matrix_get().

◆ partype

short bGPDlayer::partype

Definition at line 513 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_transform_matrix_get().

◆ pass_index

short bGPDlayer::pass_index

Used to filter groups of layers in modifiers.

Definition at line 505 of file DNA_gpencil_legacy_types.h.

◆ prev

struct bGPDlayer * bGPDlayer::prev

◆ rotation

float bGPDlayer::rotation[3]

Definition at line 554 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew(), and greasepencil_copy_data().

◆ runtime

◆ scale

float bGPDlayer::scale[3]

Definition at line 554 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew(), and greasepencil_copy_data().

◆ thickness

short bGPDlayer::thickness

Thickness to apply to strokes (Annotations).

Definition at line 503 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_draw_onionskins(), annotation_stroke_newfrombuffer(), BKE_gpencil_layer_addnew(), and view3d_ruler_to_gpencil().

◆ tintcolor

float bGPDlayer::tintcolor[4]

Color used to tint layer, alpha value is used as factor.

Definition at line 518 of file DNA_gpencil_legacy_types.h.

Referenced by gpencil_layer_final_tint_and_alpha_get().

◆ vertex_paint_opacity

float bGPDlayer::vertex_paint_opacity

Vertex Paint opacity by Layer.

Definition at line 527 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew(), and gpencil_layer_cache_add().

◆ viewlayername

char bGPDlayer::viewlayername[64]

Name of the layer used to filter render output.

Definition at line 522 of file DNA_gpencil_legacy_types.h.

Referenced by gpencil_layer_cache_add().


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