Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpencil_types.h
| Show All 13 Lines | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct AnimData; | struct AnimData; | ||||
| struct Curve; | struct Curve; | ||||
| struct Curve; | struct Curve; | ||||
| struct GPencilUpdateCache; | struct GPencilUpdateCache; | ||||
| struct MDeformVert; | struct MDeformVert; | ||||
campbellbarton: Redundant, can be removed. | |||||
| 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 591 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; | 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]; | ||||
| ▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | typedef enum eGPdata_Flag { | ||||
| /* Autolock not active layers */ | /* Autolock not active layers */ | ||||
| GP_DATA_AUTOLOCK_LAYERS = (1 << 20), | GP_DATA_AUTOLOCK_LAYERS = (1 << 20), | ||||
| /* Enable Bezier Editing Curve (a submode of Edit mode). */ | /* Enable Bezier Editing Curve (a submode of Edit mode). */ | ||||
| GP_DATA_CURVE_EDIT_MODE = (1 << 21), | GP_DATA_CURVE_EDIT_MODE = (1 << 21), | ||||
| /* Use adaptive curve resolution */ | /* Use adaptive curve resolution */ | ||||
| GP_DATA_CURVE_ADAPTIVE_RESOLUTION = (1 << 22), | GP_DATA_CURVE_ADAPTIVE_RESOLUTION = (1 << 22), | ||||
| /* Update cache was fully dealt with and is ready to be freed. In this state, it should no longer | |||||
| be written to (but still can be read). */ | |||||
campbellbartonUnsubmitted Not Done Inline Actionsprefix multi-line comment blocks with *. campbellbarton: prefix multi-line comment blocks with `*`. | |||||
| GP_DATA_UPDATE_CACHE_DISPOSABLE = (1 << 23), | |||||
| } eGPdata_Flag; | } eGPdata_Flag; | ||||
| /* gpd->onion_flag */ | /* gpd->onion_flag */ | ||||
| typedef enum eGPD_OnionFlag { | typedef enum eGPD_OnionFlag { | ||||
| /* use custom color for ghosts before current frame */ | /* use custom color for ghosts before current frame */ | ||||
| GP_ONION_GHOST_PREVCOL = (1 << 0), | GP_ONION_GHOST_PREVCOL = (1 << 0), | ||||
| /* use custom color for ghosts after current frame */ | /* use custom color for ghosts after current frame */ | ||||
| GP_ONION_GHOST_NEXTCOL = (1 << 1), | GP_ONION_GHOST_NEXTCOL = (1 << 1), | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||
Redundant, can be removed.