Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpencil_types.h
| Show All 29 Lines | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct AnimData; | struct AnimData; | ||||
| struct Curve; | struct Curve; | ||||
| struct Curve; | struct Curve; | ||||
| struct MDeformVert; | struct MDeformVert; | ||||
| struct GPencilUpdateCache; | |||||
| #define GP_DEFAULT_PIX_FACTOR 1.0f | #define GP_DEFAULT_PIX_FACTOR 1.0f | ||||
| #define GP_DEFAULT_GRID_LINES 4 | #define GP_DEFAULT_GRID_LINES 4 | ||||
| #define GP_MAX_INPUT_SAMPLES 10 | #define GP_MAX_INPUT_SAMPLES 10 | ||||
| #define GP_MATERIAL_BUFFER_LEN 256 | #define GP_MATERIAL_BUFFER_LEN 256 | ||||
| #define GP_DEFAULT_CURVE_RESOLUTION 32 | #define GP_DEFAULT_CURVE_RESOLUTION 32 | ||||
| ▲ Show 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | typedef struct bGPDstroke { | ||||
| void *_pad3; | void *_pad3; | ||||
| /** Vertex Color for Fill (one for all stroke, A=mix factor). */ | /** Vertex Color for Fill (one for all stroke, A=mix factor). */ | ||||
| float vert_color_fill[4]; | float vert_color_fill[4]; | ||||
| /** Curve used to edit the stroke using Bezier handlers. */ | /** Curve used to edit the stroke using Bezier handlers. */ | ||||
| struct bGPDcurve *editcurve; | struct bGPDcurve *editcurve; | ||||
| /* NOTE: When adding new members, make sure to add them to BKE_gpencil_stroke_copy_settings as well! */ | |||||
| bGPDstroke_Runtime runtime; | bGPDstroke_Runtime runtime; | ||||
| void *_pad5; | void *_pad5; | ||||
| } bGPDstroke; | } bGPDstroke; | ||||
| /** #bGPDstroke.flag */ | /** #bGPDstroke.flag */ | ||||
| typedef enum eGPDstroke_Flag { | typedef enum eGPDstroke_Flag { | ||||
| /* stroke is in 3d-space */ | /* stroke is in 3d-space */ | ||||
| GP_STROKE_3DSPACE = (1 << 0), | GP_STROKE_3DSPACE = (1 << 0), | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | typedef struct bGPDframe { | ||||
| /** Frame number of this frame. */ | /** Frame number of this frame. */ | ||||
| int framenum; | int framenum; | ||||
| /** Temp settings. */ | /** Temp settings. */ | ||||
| short flag; | short flag; | ||||
| /** Keyframe type (eBezTriple_KeyframeType). */ | /** Keyframe type (eBezTriple_KeyframeType). */ | ||||
| short key_type; | short key_type; | ||||
| /* NOTE: When adding new members, make sure to add them to BKE_gpencil_frame_copy_settings as well! */ | |||||
| bGPDframe_Runtime runtime; | bGPDframe_Runtime runtime; | ||||
| } bGPDframe; | } bGPDframe; | ||||
| /* bGPDframe->flag */ | /* bGPDframe->flag */ | ||||
| typedef enum eGPDframe_Flag { | typedef enum eGPDframe_Flag { | ||||
| /* frame is being painted on */ | /* frame is being painted on */ | ||||
| GP_FRAME_PAINT = (1 << 0), | GP_FRAME_PAINT = (1 << 0), | ||||
| /* for editing in Action Editor */ | /* for editing in Action Editor */ | ||||
| ▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | typedef struct bGPDlayer { | ||||
| int act_mask; | int act_mask; | ||||
| char _pad2[4]; | char _pad2[4]; | ||||
| /** Layer transforms. */ | /** Layer transforms. */ | ||||
| float location[3], rotation[3], scale[3]; | float location[3], rotation[3], scale[3]; | ||||
| float layer_mat[4][4], layer_invmat[4][4]; | float layer_mat[4][4], layer_invmat[4][4]; | ||||
| char _pad3[4]; | char _pad3[4]; | ||||
| /* NOTE: When adding new members, make sure to add them to BKE_gpencil_layer_copy_settings as well! */ | |||||
| 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 85 Lines • ▼ Show 20 Lines | typedef struct bGPdata_Runtime { | ||||
| int tot_cp_points; | int tot_cp_points; | ||||
| char _pad2[4]; | char _pad2[4]; | ||||
| /** Array of control-points for stroke. */ | /** Array of control-points for stroke. */ | ||||
| bGPDcontrolpoint *cp_points; | bGPDcontrolpoint *cp_points; | ||||
| /** Brush pointer */ | /** Brush pointer */ | ||||
| Brush *sbuffer_brush; | Brush *sbuffer_brush; | ||||
| struct GpencilBatchCache *gpencil_cache; | struct GpencilBatchCache *gpencil_cache; | ||||
| struct LineartCache *lineart_cache; | struct LineartCache *lineart_cache; | ||||
| struct GPencilUpdateCache *update_cache; | |||||
| } bGPdata_Runtime; | } bGPdata_Runtime; | ||||
| /* grid configuration */ | /* grid configuration */ | ||||
| typedef struct bGPgrid { | typedef struct bGPgrid { | ||||
| float color[3]; | float color[3]; | ||||
| float scale[2]; | float scale[2]; | ||||
| float offset[2]; | float offset[2]; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| ▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | typedef struct bGPdata { | ||||
| /** Stroke selection last index. Used to generate a unique selection index. */ | /** Stroke selection last index. Used to generate a unique selection index. */ | ||||
| int select_last_index; | int select_last_index; | ||||
| int vertex_group_active_index; | int vertex_group_active_index; | ||||
| bGPgrid grid; | bGPgrid grid; | ||||
| /* NOTE: When adding new members, make sure to add them to BKE_gpencil_data_copy_settings as well! */ | |||||
| bGPdata_Runtime runtime; | bGPdata_Runtime runtime; | ||||
| } bGPdata; | } bGPdata; | ||||
| /** | /** | ||||
| * #bGPdata.flag | * #bGPdata.flag | ||||
| * | * | ||||
| * NOTE: A few flags have been deprecated since early 2.5, | * NOTE: A few flags have been deprecated since early 2.5, | ||||
| * since they have been made redundant by interaction | * since they have been made redundant by interaction | ||||
| ▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines | |||||