Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_dynamicpaint_types.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| enum { | enum { | ||||
| MOD_DPAINT_ACTIVE = 1 << 0, /* Is surface enabled */ | MOD_DPAINT_ACTIVE = 1 << 0, /* Is surface enabled */ | ||||
| MOD_DPAINT_ANTIALIAS = 1 << 1, /* do antialiasing */ | MOD_DPAINT_ANTIALIAS = 1 << 1, /* do antialiasing */ | ||||
| MOD_DPAINT_DISSOLVE = 1 << 2, /* do dissolve */ | MOD_DPAINT_DISSOLVE = 1 << 2, /* do dissolve */ | ||||
| MOD_DPAINT_MULALPHA = 1 << 3, /* Multiply color by alpha when saving image */ | MOD_DPAINT_MULALPHA = 1 << 3, /* Multiply color by alpha when saving image */ | ||||
| MOD_DPAINT_DISSOLVE_LOG = 1 << 4, /* Use 1/x for surface dissolve */ | MOD_DPAINT_DISSOLVE_LOG = 1 << 4, /* Use 1/x for surface dissolve */ | ||||
| MOD_DPAINT_DRY_LOG = 1 << 5, /* Use 1/x for drying paint */ | MOD_DPAINT_DRY_LOG = 1 << 5, /* Use 1/x for drying paint */ | ||||
| MOD_DPAINT_PREVIEW = 1 << 6, /* preview this surface on viewport*/ | |||||
| MOD_DPAINT_WAVE_OPEN_BORDERS = 1 << 7, /* passes waves through mesh edges */ | MOD_DPAINT_WAVE_OPEN_BORDERS = 1 << 7, /* passes waves through mesh edges */ | ||||
| MOD_DPAINT_DISP_INCREMENTAL = 1 << 8, /* builds displace on top of earlier values */ | MOD_DPAINT_DISP_INCREMENTAL = 1 << 8, /* builds displace on top of earlier values */ | ||||
| MOD_DPAINT_USE_DRYING = 1 << 9, /* use drying */ | MOD_DPAINT_USE_DRYING = 1 << 9, /* use drying */ | ||||
| MOD_DPAINT_OUT1 = 1 << 10, /* output primary surface */ | MOD_DPAINT_OUT1 = 1 << 10, /* output primary surface */ | ||||
| MOD_DPAINT_OUT2 = 1 << 11, /* output secondary surface */ | MOD_DPAINT_OUT2 = 1 << 11, /* output secondary surface */ | ||||
| }; | }; | ||||
| Show All 12 Lines | |||||
| /* effect */ | /* effect */ | ||||
| enum { | enum { | ||||
| MOD_DPAINT_EFFECT_DO_SPREAD = 1 << 0, /* do spread effect */ | MOD_DPAINT_EFFECT_DO_SPREAD = 1 << 0, /* do spread effect */ | ||||
| MOD_DPAINT_EFFECT_DO_DRIP = 1 << 1, /* do drip effect */ | MOD_DPAINT_EFFECT_DO_DRIP = 1 << 1, /* do drip effect */ | ||||
| MOD_DPAINT_EFFECT_DO_SHRINK = 1 << 2, /* do shrink effect */ | MOD_DPAINT_EFFECT_DO_SHRINK = 1 << 2, /* do shrink effect */ | ||||
| }; | }; | ||||
| /* preview_id */ | |||||
| enum { | |||||
| MOD_DPAINT_SURFACE_PREV_PAINT = 0, | |||||
| MOD_DPAINT_SURFACE_PREV_WETMAP = 1, | |||||
| }; | |||||
| /* init_color_type */ | /* init_color_type */ | ||||
| enum { | enum { | ||||
| MOD_DPAINT_INITIAL_NONE = 0, | MOD_DPAINT_INITIAL_NONE = 0, | ||||
| MOD_DPAINT_INITIAL_COLOR = 1, | MOD_DPAINT_INITIAL_COLOR = 1, | ||||
| MOD_DPAINT_INITIAL_TEXTURE = 2, | MOD_DPAINT_INITIAL_TEXTURE = 2, | ||||
| MOD_DPAINT_INITIAL_VERTEXCOLOR = 3, | MOD_DPAINT_INITIAL_VERTEXCOLOR = 3, | ||||
| }; | }; | ||||
| Show All 21 Lines | typedef struct DynamicPaintSurface { | ||||
| int current_frame; | int current_frame; | ||||
| /* surface */ | /* surface */ | ||||
| char name[64]; | char name[64]; | ||||
| short format, type; | short format, type; | ||||
| short disp_type, image_fileformat; | short disp_type, image_fileformat; | ||||
| /** Ui selection box. */ | /** Ui selection box. */ | ||||
| short effect_ui; | short effect_ui; | ||||
| /** Surface output id to preview. */ | |||||
| short preview_id; | |||||
| short init_color_type; | short init_color_type; | ||||
| char _pad0[2]; | |||||
| int flags, effect; | int flags, effect; | ||||
| int image_resolution, substeps; | int image_resolution, substeps; | ||||
| int start_frame, end_frame; | int start_frame, end_frame; | ||||
| char _pad[4]; | |||||
| /* initial color */ | /* initial color */ | ||||
| float init_color[4]; | float init_color[4]; | ||||
| struct Tex *init_texture; | struct Tex *init_texture; | ||||
| /** MAX_CUSTOMDATA_LAYER_NAME. */ | /** MAX_CUSTOMDATA_LAYER_NAME. */ | ||||
| char init_layername[64]; | char init_layername[64]; | ||||
| int dry_speed, diss_speed; | int dry_speed, diss_speed; | ||||
| Show All 18 Lines | typedef struct DynamicPaintSurface { | ||||
| char output_name[64]; | char output_name[64]; | ||||
| /** MAX_CUSTOMDATA_LAYER_NAME */ /* some surfaces have 2 outputs. */ | /** MAX_CUSTOMDATA_LAYER_NAME */ /* some surfaces have 2 outputs. */ | ||||
| char output_name2[64]; | char output_name2[64]; | ||||
| } DynamicPaintSurface; | } DynamicPaintSurface; | ||||
| /* canvas flags */ | /* canvas flags */ | ||||
| enum { | enum { | ||||
| /* This should not be needed, having a valid WEIGHT_MCOL layer should be enough. | |||||
| * And if not, should be a general flag. But seems unnecessary for now... */ | |||||
| #if 0 | |||||
| /** if viewport preview is ready */ | |||||
| MOD_DPAINT_PREVIEW_READY = 1 << 0, | |||||
| #endif | |||||
| /** surface is already baking, so it wont get updated (loop) */ | /** surface is already baking, so it wont get updated (loop) */ | ||||
| MOD_DPAINT_BAKING = 1 << 1, | MOD_DPAINT_BAKING = 1 << 1, | ||||
| }; | }; | ||||
| /* Canvas settings */ | /* Canvas settings */ | ||||
| typedef struct DynamicPaintCanvasSettings { | typedef struct DynamicPaintCanvasSettings { | ||||
| /** For fast RNA access. */ | /** For fast RNA access. */ | ||||
| struct DynamicPaintModifierData *pmd; | struct DynamicPaintModifierData *pmd; | ||||
| ▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines | |||||