Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpencil_types.h
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | typedef struct bGPDcontrolpoint { | ||||
| /** X and y coordinates of control point. */ | /** X and y coordinates of control point. */ | ||||
| float x, y, z; | float x, y, z; | ||||
| /** Point color. */ | /** Point color. */ | ||||
| float color[4]; | float color[4]; | ||||
| /** Radius. */ | /** Radius. */ | ||||
| int size; | int size; | ||||
| } bGPDcontrolpoint; | } bGPDcontrolpoint; | ||||
| typedef struct bGPDspoint_Runtime { | |||||
| /** Original point (used to dereference evaluated data) */ | |||||
| struct bGPDspoint *pt_orig; | |||||
| /** Original index array position */ | |||||
| int idx_orig; | |||||
| char _pad0[4]; | |||||
| } bGPDspoint_Runtime; | |||||
| /* Grease-Pencil Annotations - 'Stroke Point' | /* Grease-Pencil Annotations - 'Stroke Point' | ||||
| * -> Coordinates may either be 2d or 3d depending on settings at the time | * -> Coordinates may either be 2d or 3d depending on settings at the time | ||||
| * -> Coordinates of point on stroke, in proportions of window size | * -> Coordinates of point on stroke, in proportions of window size | ||||
| * This assumes that the bottom-left corner is (0,0) | * This assumes that the bottom-left corner is (0,0) | ||||
| */ | */ | ||||
| typedef struct bGPDspoint { | typedef struct bGPDspoint { | ||||
| /** Co-ordinates of point (usually 2d, but can be 3d as well). */ | /** Co-ordinates of point (usually 2d, but can be 3d as well). */ | ||||
| float x, y, z; | float x, y, z; | ||||
| /** Pressure of input device (from 0 to 1) at this point. */ | /** Pressure of input device (from 0 to 1) at this point. */ | ||||
| float pressure; | float pressure; | ||||
| /** Color strength (used for alpha factor). */ | /** Color strength (used for alpha factor). */ | ||||
| float strength; | float strength; | ||||
| /** Seconds since start of stroke. */ | /** Seconds since start of stroke. */ | ||||
| float time; | float time; | ||||
| /** Additional options. */ | /** Additional options. */ | ||||
| int flag; | int flag; | ||||
| /** Factor of uv along the stroke. */ | /** Factor of uv along the stroke. */ | ||||
| float uv_fac; | float uv_fac; | ||||
| /** Uv rotation for dot mode. */ | /** Uv rotation for dot mode. */ | ||||
| float uv_rot; | float uv_rot; | ||||
| /** Runtime data */ | |||||
| char _pad2[4]; | |||||
| bGPDspoint_Runtime runtime; | |||||
| } bGPDspoint; | } bGPDspoint; | ||||
| /* bGPDspoint->flag */ | /* bGPDspoint->flag */ | ||||
| typedef enum eGPDspoint_Flag { | typedef enum eGPDspoint_Flag { | ||||
| /* stroke point is selected (for editing) */ | /* stroke point is selected (for editing) */ | ||||
| GP_SPOINT_SELECT = (1 << 0), | GP_SPOINT_SELECT = (1 << 0), | ||||
| /* stroke point is tagged (for some editing operation) */ | /* stroke point is tagged (for some editing operation) */ | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | typedef enum eGPDpalette_Flag { | ||||
| PL_PALETTE_ACTIVE = (1 << 0), | PL_PALETTE_ACTIVE = (1 << 0), | ||||
| } eGPDpalette_Flag; | } eGPDpalette_Flag; | ||||
| /* ***************************************** */ | /* ***************************************** */ | ||||
| /* GP Strokes */ | /* GP Strokes */ | ||||
| /* Runtime temp data for bGPDstroke */ | /* Runtime temp data for bGPDstroke */ | ||||
| typedef struct bGPDstroke_Runtime { | typedef struct bGPDstroke_Runtime { | ||||
| /* runtime final colors (result of original colors and modifiers) */ | /** runtime final colors (result of original colors and modifiers) */ | ||||
| float tmp_stroke_rgba[4]; | float tmp_stroke_rgba[4]; | ||||
| /** runtime final fill colors (result of original colors and modifiers) */ | |||||
| float tmp_fill_rgba[4]; | float tmp_fill_rgba[4]; | ||||
| /* temporary layer name only used during copy/paste to put the stroke in the original layer */ | /** temporary layer name only used during copy/paste to put the stroke in the original layer */ | ||||
| char tmp_layerinfo[128]; | char tmp_layerinfo[128]; | ||||
| /** Runtime falloff factor (only for transform). */ | /** Runtime falloff factor (only for transform). */ | ||||
| float multi_frame_falloff; | float multi_frame_falloff; | ||||
| char _pad[4]; | |||||
| /** Original stroke (used to dereference evaluated data) */ | |||||
| struct bGPDstroke *gps_orig; | |||||
| } bGPDstroke_Runtime; | } bGPDstroke_Runtime; | ||||
| /* Grease-Pencil Annotations - 'Stroke' | /* Grease-Pencil Annotations - 'Stroke' | ||||
| * -> A stroke represents a (simplified version) of the curve | * -> A stroke represents a (simplified version) of the curve | ||||
| * drawn by the user in one 'mouse-down'->'mouse-up' operation | * drawn by the user in one 'mouse-down'->'mouse-up' operation | ||||
| */ | */ | ||||
| typedef struct bGPDstroke { | typedef struct bGPDstroke { | ||||
| struct bGPDstroke *next, *prev; | struct bGPDstroke *next, *prev; | ||||
| Show All 29 Lines | typedef struct bGPDstroke { | ||||
| float gradient_s[2]; | float gradient_s[2]; | ||||
| char _pad_3[4]; | char _pad_3[4]; | ||||
| /** Vertex weight data. */ | /** Vertex weight data. */ | ||||
| struct MDeformVert *dvert; | struct MDeformVert *dvert; | ||||
| void *_pad3; | void *_pad3; | ||||
| bGPDstroke_Runtime runtime; | bGPDstroke_Runtime runtime; | ||||
| char _pad2[4]; | |||||
| } 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), | ||||
| /* stroke is in 2d-space */ | /* stroke is in 2d-space */ | ||||
| GP_STROKE_2DSPACE = (1 << 1), | GP_STROKE_2DSPACE = (1 << 1), | ||||
| ▲ Show 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | typedef struct bGPdata { | ||||
| /** Animation data - for animating draw settings. */ | /** Animation data - for animating draw settings. */ | ||||
| struct AnimData *adt; | struct AnimData *adt; | ||||
| /* Grease-Pencil data */ | /* Grease-Pencil data */ | ||||
| /** BGPDlayers. */ | /** BGPDlayers. */ | ||||
| ListBase layers; | ListBase layers; | ||||
| /** Settings for this data-block. */ | /** Settings for this data-block. */ | ||||
| int flag; | int flag; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| /* Palettes */ | /* Palettes */ | ||||
| /** List of bGPDpalette's - Deprecated (2.78 - 2.79 only). */ | /** List of bGPDpalette's - Deprecated (2.78 - 2.79 only). */ | ||||
| ListBase palettes DNA_DEPRECATED; | ListBase palettes DNA_DEPRECATED; | ||||
| /* 3D Viewport/Appearance Settings */ | /* 3D Viewport/Appearance Settings */ | ||||
| /** Factor to define pixel size conversion. */ | /** Factor to define pixel size conversion. */ | ||||
| ▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines | |||||