Blender V5.0
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 424 of file DNA_gpencil_legacy_types.h.

Member Data Documentation

◆ _pad1

char bGPDlayer::_pad1[4]

Definition at line 492 of file DNA_gpencil_legacy_types.h.

◆ _pad2

char bGPDlayer::_pad2[4]

Definition at line 498 of file DNA_gpencil_legacy_types.h.

◆ _pad3

char bGPDlayer::_pad3[4]

Definition at line 503 of file DNA_gpencil_legacy_types.h.

◆ act_mask

int bGPDlayer::act_mask

Current Mask index (noted base 1).

Definition at line 497 of file DNA_gpencil_legacy_types.h.

◆ actframe

◆ blend_mode

int bGPDlayer::blend_mode

Blend modes.

Definition at line 472 of file DNA_gpencil_legacy_types.h.

◆ color

float bGPDlayer::color[4]

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

Definition at line 441 of file DNA_gpencil_legacy_types.h.

Referenced by acf_gpl_channel_color(), annotation_paint_initstroke(), BKE_gpencil_layer_addnew(), draw_distortion(), 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 443 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 491 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 489 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 481 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 486 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_draw_onionskins().

◆ info

char bGPDlayer::info[128]

Name/reference info for this layer (i.e. "director's comments, 12/.3") needs to be kept unique, as it's used as the layer identifier

Definition at line 447 of file DNA_gpencil_legacy_types.h.

Referenced by acf_gpl_name_legacy(), BKE_gpencil_layer_addnew(), ED_gpencil_anim_copybuf_copy(), ED_gpencil_anim_copybuf_paste(), blender::ed::outliner::namebutton_fn(), and blender::ed::outliner::TreeElementGPencilLayer::TreeElementGPencilLayer().

◆ inverse

float bGPDlayer::inverse[4][4]

Inverse matrix (only used if parented).

Definition at line 457 of file DNA_gpencil_legacy_types.h.

◆ layer_invmat

float bGPDlayer::layer_invmat[4][4]

Definition at line 502 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew().

◆ layer_mat

float bGPDlayer::layer_mat[4][4]

Definition at line 502 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew(), and greasepencil_copy_data().

◆ line_change

short bGPDlayer::line_change

Thickness adjustment.

Definition at line 463 of file DNA_gpencil_legacy_types.h.

◆ location

float bGPDlayer::location[3]

Layer transforms.

Definition at line 501 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew(), and greasepencil_copy_data().

◆ mask_layers

ListBase bGPDlayer::mask_layers

Mask list (bGPDlayer_Mask).

Definition at line 495 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_free_layer_masks().

◆ next

◆ onion_flag

short bGPDlayer::onion_flag

◆ opacity

float bGPDlayer::opacity

Opacity of the layer.

Definition at line 467 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew().

◆ parent

struct Object* bGPDlayer::parent

Parent object.

Definition at line 455 of file DNA_gpencil_legacy_types.h.

◆ parsubstr

char bGPDlayer::parsubstr[64]

String describing sub-object info.

Definition at line 459 of file DNA_gpencil_legacy_types.h.

◆ partype

short bGPDlayer::partype

Definition at line 460 of file DNA_gpencil_legacy_types.h.

◆ pass_index

short bGPDlayer::pass_index

Used to filter groups of layers in modifiers.

Definition at line 452 of file DNA_gpencil_legacy_types.h.

◆ prev

struct bGPDlayer * bGPDlayer::prev

◆ rotation

float bGPDlayer::rotation[3]

Definition at line 501 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 501 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew(), and greasepencil_copy_data().

◆ thickness

short bGPDlayer::thickness

◆ tintcolor

float bGPDlayer::tintcolor[4]

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

Definition at line 465 of file DNA_gpencil_legacy_types.h.

◆ vertex_paint_opacity

float bGPDlayer::vertex_paint_opacity

Vertex Paint opacity by Layer.

Definition at line 474 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_layer_addnew().

◆ viewlayername

char bGPDlayer::viewlayername[64]

Name of the layer used to filter render output.

Definition at line 469 of file DNA_gpencil_legacy_types.h.


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