Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpencil_types.h
| Show First 20 Lines • Show All 506 Lines • ▼ Show 20 Lines | typedef struct bGPDlayer { | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| /** Mask list (bGPDlayer_Mask). */ | /** Mask list (bGPDlayer_Mask). */ | ||||
| ListBase mask_layers; | ListBase mask_layers; | ||||
| /** Current Mask index (noted base 1). */ | /** Current Mask index (noted base 1). */ | ||||
| int act_mask; | int act_mask; | ||||
| char _pad2[4]; | char _pad2[4]; | ||||
| /** Layer transforms. */ | |||||
| float location[3], rotation[3], scale[3]; | |||||
| float layer_mat[4][4], layer_invmat[4][4]; | |||||
| char _pad3[4]; | |||||
| bGPDlayer_Runtime runtime; | bGPDlayer_Runtime runtime; | ||||
| } bGPDlayer; | } bGPDlayer; | ||||
| /* bGPDlayer->flag */ | /* bGPDlayer->flag */ | ||||
| typedef enum eGPDlayer_Flag { | typedef enum eGPDlayer_Flag { | ||||
| /* don't display layer */ | /* don't display layer */ | ||||
| GP_LAYER_HIDE = (1 << 0), | GP_LAYER_HIDE = (1 << 0), | ||||
| /* protected from further editing */ | /* protected from further editing */ | ||||
| ▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | typedef struct bGPdata_Runtime { | ||||
| /** Stroke buffer. */ | /** Stroke buffer. */ | ||||
| void *sbuffer; | void *sbuffer; | ||||
| /** Temp batches cleared after drawing. */ | /** Temp batches cleared after drawing. */ | ||||
| struct GPUBatch *sbuffer_stroke_batch; | struct GPUBatch *sbuffer_stroke_batch; | ||||
| struct GPUBatch *sbuffer_fill_batch; | struct GPUBatch *sbuffer_fill_batch; | ||||
| /** Temp stroke used for drawing. */ | /** Temp stroke used for drawing. */ | ||||
| struct bGPDstroke *sbuffer_gps; | struct bGPDstroke *sbuffer_gps; | ||||
| char _pad[2]; | /** Animation playing flag. */ | ||||
| short playing; | |||||
| /** Material index of the stroke. */ | /** Material index of the stroke. */ | ||||
| short matid; | short matid; | ||||
| /* Stroke Buffer data (only used during paint-session) | /* Stroke Buffer data (only used during paint-session) | ||||
| * - buffer must be initialized before use, but freed after | * - buffer must be initialized before use, but freed after | ||||
| * whole paint operation is over | * whole paint operation is over | ||||
| */ | */ | ||||
| /** Flags for stroke that cache represents. */ | /** Flags for stroke that cache represents. */ | ||||
| ▲ Show 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | |||||
| #define GPENCIL_ANY_SCULPT_MASK(flag) \ | #define GPENCIL_ANY_SCULPT_MASK(flag) \ | ||||
| ((flag & (GP_SCULPT_MASK_SELECTMODE_POINT | GP_SCULPT_MASK_SELECTMODE_STROKE | \ | ((flag & (GP_SCULPT_MASK_SELECTMODE_POINT | GP_SCULPT_MASK_SELECTMODE_STROKE | \ | ||||
| GP_SCULPT_MASK_SELECTMODE_SEGMENT))) | GP_SCULPT_MASK_SELECTMODE_SEGMENT))) | ||||
| #define GPENCIL_ANY_VERTEX_MASK(flag) \ | #define GPENCIL_ANY_VERTEX_MASK(flag) \ | ||||
| ((flag & (GP_VERTEX_MASK_SELECTMODE_POINT | GP_VERTEX_MASK_SELECTMODE_STROKE | \ | ((flag & (GP_VERTEX_MASK_SELECTMODE_POINT | GP_VERTEX_MASK_SELECTMODE_STROKE | \ | ||||
| GP_VERTEX_MASK_SELECTMODE_SEGMENT))) | GP_VERTEX_MASK_SELECTMODE_SEGMENT))) | ||||
| #define GPENCIL_PLAY_ON(gpd) ((gpd) && ((gpd)->runtime.playing == 1)) | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||