Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_scene_types.h
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
| /* ************************************************************* */ | /* ************************************************************* */ | ||||
| /* Scene Data */ | /* Scene Data */ | ||||
| /* ************************************************************* */ | /* ************************************************************* */ | ||||
| /* Output Format Data */ | /* Output Format Data */ | ||||
| typedef struct AviCodecData { | typedef struct AviCodecData { | ||||
| void *lpFormat; /* save format */ | void *lpFormat; /* save format */ | ||||
| void *lpParms; /* compressor options */ | void *lpParms; /* compressor options */ | ||||
| unsigned int cbFormat; /* size of lpFormat buffer */ | unsigned int cbFormat; /* size of lpFormat buffer */ | ||||
| unsigned int cbParms; /* size of lpParms buffer */ | unsigned int cbParms; /* size of lpParms buffer */ | ||||
| unsigned int fccType; /* stream type, for consistency */ | unsigned int fccType; /* stream type, for consistency */ | ||||
| unsigned int fccHandler; /* compressor */ | unsigned int fccHandler; /* compressor */ | ||||
| unsigned int dwKeyFrameEvery; /* keyframe rate */ | unsigned int dwKeyFrameEvery; /* keyframe rate */ | ||||
| unsigned int dwQuality; /* compress quality 0-10,000 */ | unsigned int dwQuality; /* compress quality 0-10,000 */ | ||||
| unsigned int dwBytesPerSecond; /* bytes per second */ | unsigned int dwBytesPerSecond; /* bytes per second */ | ||||
| unsigned int dwFlags; /* flags... see below */ | unsigned int dwFlags; /* flags... see below */ | ||||
| unsigned int dwInterleaveEvery; /* for non-video streams only */ | unsigned int dwInterleaveEvery; /* for non-video streams only */ | ||||
| unsigned int pad; | unsigned int pad; | ||||
| char avicodecname[128]; | char avicodecname[128]; | ||||
| } AviCodecData; | } AviCodecData; | ||||
| typedef enum eFFMpegPreset { | typedef enum eFFMpegPreset { | ||||
| FFM_PRESET_NONE, | FFM_PRESET_NONE, | ||||
| #ifdef DNA_DEPRECATED | #ifdef DNA_DEPRECATED | ||||
| /* Previously used by h.264 to control encoding speed vs. file size. */ | /* Previously used by h.264 to control encoding speed vs. file size. */ | ||||
| FFM_PRESET_ULTRAFAST, /* DEPRECATED */ | FFM_PRESET_ULTRAFAST, /* DEPRECATED */ | ||||
| FFM_PRESET_SUPERFAST, /* DEPRECATED */ | FFM_PRESET_SUPERFAST, /* DEPRECATED */ | ||||
| FFM_PRESET_VERYFAST, /* DEPRECATED */ | FFM_PRESET_VERYFAST, /* DEPRECATED */ | ||||
| FFM_PRESET_FASTER, /* DEPRECATED */ | FFM_PRESET_FASTER, /* DEPRECATED */ | ||||
| FFM_PRESET_FAST, /* DEPRECATED */ | FFM_PRESET_FAST, /* DEPRECATED */ | ||||
| FFM_PRESET_MEDIUM, /* DEPRECATED */ | FFM_PRESET_MEDIUM, /* DEPRECATED */ | ||||
| FFM_PRESET_SLOW, /* DEPRECATED */ | FFM_PRESET_SLOW, /* DEPRECATED */ | ||||
| FFM_PRESET_SLOWER, /* DEPRECATED */ | FFM_PRESET_SLOWER, /* DEPRECATED */ | ||||
| FFM_PRESET_VERYSLOW, /* DEPRECATED */ | FFM_PRESET_VERYSLOW, /* DEPRECATED */ | ||||
| #endif | #endif | ||||
| /* Used by WEBM/VP9 and h.264 to control encoding speed vs. file size. | /* Used by WEBM/VP9 and h.264 to control encoding speed vs. file size. | ||||
| * WEBM/VP9 use these values directly, whereas h.264 map those to | * WEBM/VP9 use these values directly, whereas h.264 map those to | ||||
| * respectively the MEDIUM, SLOWER, and SUPERFAST presets. | * respectively the MEDIUM, SLOWER, and SUPERFAST presets. | ||||
| */ | */ | ||||
| FFM_PRESET_GOOD = 10, /* the default and recommended for most applications */ | FFM_PRESET_GOOD = 10, /* the default and recommended for most applications */ | ||||
| FFM_PRESET_BEST, /* recommended if you have lots of time and want the best compression efficiency */ | FFM_PRESET_BEST, /* recommended if you have lots of time and want the best compression efficiency */ | ||||
| FFM_PRESET_REALTIME, /* recommended for live / fast encoding */ | FFM_PRESET_REALTIME, /* recommended for live / fast encoding */ | ||||
| } eFFMpegPreset; | } eFFMpegPreset; | ||||
| /* Mapping from easily-understandable descriptions to CRF values. | /* Mapping from easily-understandable descriptions to CRF values. | ||||
| * Assumes we output 8-bit video. Needs to be remapped if 10-bit | * Assumes we output 8-bit video. Needs to be remapped if 10-bit | ||||
| * is output. | * is output. | ||||
| ▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
| /* *************************************************************** */ | /* *************************************************************** */ | ||||
| /* Render Layers */ | /* Render Layers */ | ||||
| /* Render Layer */ | /* Render Layer */ | ||||
| typedef struct SceneRenderLayer { | typedef struct SceneRenderLayer { | ||||
| struct SceneRenderLayer *next, *prev; | struct SceneRenderLayer *next, *prev; | ||||
| char name[64] DNA_DEPRECATED; /* MAX_NAME */ | char name[64] DNA_DEPRECATED; /* MAX_NAME */ | ||||
| struct Material *mat_override DNA_DEPRECATED; /* Converted to ViewLayer override. */ | struct Material *mat_override DNA_DEPRECATED; /* Converted to ViewLayer override. */ | ||||
| unsigned int lay DNA_DEPRECATED; /* Converted to LayerCollection cycles camera visibility override. */ | unsigned int lay DNA_DEPRECATED; /* Converted to LayerCollection cycles camera visibility override. */ | ||||
| unsigned int lay_zmask DNA_DEPRECATED; /* Converted to LayerCollection cycles holdout override. */ | unsigned int lay_zmask DNA_DEPRECATED; /* Converted to LayerCollection cycles holdout override. */ | ||||
| unsigned int lay_exclude DNA_DEPRECATED; | unsigned int lay_exclude DNA_DEPRECATED; | ||||
| int layflag DNA_DEPRECATED; /* Converted to ViewLayer layflag and flag. */ | int layflag DNA_DEPRECATED; /* Converted to ViewLayer layflag and flag. */ | ||||
| /* pass_xor has to be after passflag */ | /* pass_xor has to be after passflag */ | ||||
| int passflag DNA_DEPRECATED; /* pass_xor has to be after passflag */ | int passflag DNA_DEPRECATED; /* pass_xor has to be after passflag */ | ||||
| int pass_xor DNA_DEPRECATED; /* Converted to ViewLayer passflag and flag. */ | int pass_xor DNA_DEPRECATED; /* Converted to ViewLayer passflag and flag. */ | ||||
| int samples DNA_DEPRECATED; /* Converted to ViewLayer override. */ | int samples DNA_DEPRECATED; /* Converted to ViewLayer override. */ | ||||
| float pass_alpha_threshold DNA_DEPRECATED; /* Converted to ViewLayer pass_alpha_threshold. */ | float pass_alpha_threshold DNA_DEPRECATED; /* Converted to ViewLayer pass_alpha_threshold. */ | ||||
| IDProperty *prop DNA_DEPRECATED; /* Converted to ViewLayer id_properties. */ | IDProperty *prop DNA_DEPRECATED; /* Converted to ViewLayer id_properties. */ | ||||
| struct FreestyleConfig freestyleConfig DNA_DEPRECATED; /* Converted to ViewLayer freestyleConfig. */ | struct FreestyleConfig freestyleConfig DNA_DEPRECATED; /* Converted to ViewLayer freestyleConfig. */ | ||||
| } SceneRenderLayer; | } SceneRenderLayer; | ||||
| /* SceneRenderLayer.layflag */ | /* SceneRenderLayer.layflag */ | ||||
| #define SCE_LAY_SOLID 1 | #define SCE_LAY_SOLID 1 | ||||
| #define SCE_LAY_ZTRA 2 | #define SCE_LAY_ZTRA 2 | ||||
| #define SCE_LAY_HALO 4 | #define SCE_LAY_HALO 4 | ||||
| #define SCE_LAY_EDGE 8 | #define SCE_LAY_EDGE 8 | ||||
| #define SCE_LAY_SKY 16 | #define SCE_LAY_SKY 16 | ||||
| #define SCE_LAY_STRAND 32 | #define SCE_LAY_STRAND 32 | ||||
| #define SCE_LAY_FRS 64 | #define SCE_LAY_FRS 64 | ||||
| #define SCE_LAY_AO 128 | #define SCE_LAY_AO 128 | ||||
| /* flags between 256 and 0x8000 are set to 1 already, for future options */ | /* flags between 256 and 0x8000 are set to 1 already, for future options */ | ||||
| #define SCE_LAY_ALL_Z 0x8000 | #define SCE_LAY_ALL_Z 0x8000 | ||||
| #define SCE_LAY_XOR 0x10000 | #define SCE_LAY_XOR 0x10000 | ||||
| #define SCE_LAY_DISABLE 0x20000 | #define SCE_LAY_DISABLE 0x20000 | ||||
| #define SCE_LAY_ZMASK 0x40000 | #define SCE_LAY_ZMASK 0x40000 | ||||
| #define SCE_LAY_NEG_ZMASK 0x80000 | #define SCE_LAY_NEG_ZMASK 0x80000 | ||||
| /* SceneRenderLayer.passflag */ | /* SceneRenderLayer.passflag */ | ||||
| typedef enum eScenePassType { | typedef enum eScenePassType { | ||||
| SCE_PASS_COMBINED = (1 << 0), | SCE_PASS_COMBINED = (1 << 0), | ||||
| SCE_PASS_Z = (1 << 1), | SCE_PASS_Z = (1 << 1), | ||||
| SCE_PASS_RGBA = (1 << 2), | SCE_PASS_RGBA = (1 << 2), | ||||
| SCE_PASS_DIFFUSE = (1 << 3), | SCE_PASS_DIFFUSE = (1 << 3), | ||||
| SCE_PASS_SPEC = (1 << 4), | SCE_PASS_SPEC = (1 << 4), | ||||
| ▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
| #define RE_PASSNAME_SUBSURFACE_INDIRECT "SubsurfaceInd" | #define RE_PASSNAME_SUBSURFACE_INDIRECT "SubsurfaceInd" | ||||
| #define RE_PASSNAME_SUBSURFACE_COLOR "SubsurfaceCol" | #define RE_PASSNAME_SUBSURFACE_COLOR "SubsurfaceCol" | ||||
| /* View - MultiView */ | /* View - MultiView */ | ||||
| typedef struct SceneRenderView { | typedef struct SceneRenderView { | ||||
| struct SceneRenderView *next, *prev; | struct SceneRenderView *next, *prev; | ||||
| char name[64]; /* MAX_NAME */ | char name[64]; /* MAX_NAME */ | ||||
| char suffix[64]; /* MAX_NAME */ | char suffix[64]; /* MAX_NAME */ | ||||
| int viewflag; | int viewflag; | ||||
| int pad[2]; | int pad[2]; | ||||
| char pad2[4]; | char pad2[4]; | ||||
| } SceneRenderView; | } SceneRenderView; | ||||
| /* SceneRenderView.viewflag */ | /* SceneRenderView.viewflag */ | ||||
| #define SCE_VIEW_DISABLE (1<<0) | #define SCE_VIEW_DISABLE (1 << 0) | ||||
| /* RenderData.views_format */ | /* RenderData.views_format */ | ||||
| enum { | enum { | ||||
| SCE_VIEWS_FORMAT_STEREO_3D = 0, | SCE_VIEWS_FORMAT_STEREO_3D = 0, | ||||
| SCE_VIEWS_FORMAT_MULTIVIEW = 1, | SCE_VIEWS_FORMAT_MULTIVIEW = 1, | ||||
| }; | }; | ||||
| /* ImageFormatData.views_format (also used for Sequence.views_format) */ | /* ImageFormatData.views_format (also used for Sequence.views_format) */ | ||||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | typedef struct ImageFormatData { | ||||
| char quality; /* (0 - 100), eg: jpeg quality */ | char quality; /* (0 - 100), eg: jpeg quality */ | ||||
| char compress; /* (0 - 100), eg: png compression */ | char compress; /* (0 - 100), eg: png compression */ | ||||
| /* --- format specific --- */ | /* --- format specific --- */ | ||||
| /* OpenEXR */ | /* OpenEXR */ | ||||
| char exr_codec; | char exr_codec; | ||||
| /* Cineon */ | /* Cineon */ | ||||
| char cineon_flag; | char cineon_flag; | ||||
| short cineon_white, cineon_black; | short cineon_white, cineon_black; | ||||
| float cineon_gamma; | float cineon_gamma; | ||||
| /* Jpeg2000 */ | /* Jpeg2000 */ | ||||
| char jp2_flag; | char jp2_flag; | ||||
| char jp2_codec; | char jp2_codec; | ||||
| /* TIFF */ | /* TIFF */ | ||||
| char tiff_codec; | char tiff_codec; | ||||
| char pad[4]; | char pad[4]; | ||||
| /* Multiview */ | /* Multiview */ | ||||
| Show All 34 Lines | |||||
| #define R_IMF_IMTYPE_H264 31 | #define R_IMF_IMTYPE_H264 31 | ||||
| #define R_IMF_IMTYPE_XVID 32 | #define R_IMF_IMTYPE_XVID 32 | ||||
| #define R_IMF_IMTYPE_THEORA 33 | #define R_IMF_IMTYPE_THEORA 33 | ||||
| #define R_IMF_IMTYPE_PSD 34 | #define R_IMF_IMTYPE_PSD 34 | ||||
| #define R_IMF_IMTYPE_INVALID 255 | #define R_IMF_IMTYPE_INVALID 255 | ||||
| /* ImageFormatData.flag */ | /* ImageFormatData.flag */ | ||||
| #define R_IMF_FLAG_ZBUF (1<<0) /* was R_OPENEXR_ZBUF */ | #define R_IMF_FLAG_ZBUF (1 << 0) /* was R_OPENEXR_ZBUF */ | ||||
| #define R_IMF_FLAG_PREVIEW_JPG (1<<1) /* was R_PREVIEW_JPG */ | #define R_IMF_FLAG_PREVIEW_JPG (1 << 1) /* was R_PREVIEW_JPG */ | ||||
| /* return values from BKE_imtype_valid_depths, note this is depts per channel */ | /* return values from BKE_imtype_valid_depths, note this is depts per channel */ | ||||
| #define R_IMF_CHAN_DEPTH_1 (1<<0) /* 1bits (unused) */ | #define R_IMF_CHAN_DEPTH_1 (1 << 0) /* 1bits (unused) */ | ||||
| #define R_IMF_CHAN_DEPTH_8 (1<<1) /* 8bits (default) */ | #define R_IMF_CHAN_DEPTH_8 (1 << 1) /* 8bits (default) */ | ||||
| #define R_IMF_CHAN_DEPTH_10 (1<<2) /* 10bits (uncommon, Cineon/DPX support) */ | #define R_IMF_CHAN_DEPTH_10 (1 << 2) /* 10bits (uncommon, Cineon/DPX support) */ | ||||
| #define R_IMF_CHAN_DEPTH_12 (1<<3) /* 12bits (uncommon, jp2/DPX support) */ | #define R_IMF_CHAN_DEPTH_12 (1 << 3) /* 12bits (uncommon, jp2/DPX support) */ | ||||
| #define R_IMF_CHAN_DEPTH_16 (1<<4) /* 16bits (tiff, halff float exr) */ | #define R_IMF_CHAN_DEPTH_16 (1 << 4) /* 16bits (tiff, halff float exr) */ | ||||
| #define R_IMF_CHAN_DEPTH_24 (1<<5) /* 24bits (unused) */ | #define R_IMF_CHAN_DEPTH_24 (1 << 5) /* 24bits (unused) */ | ||||
| #define R_IMF_CHAN_DEPTH_32 (1<<6) /* 32bits (full float exr) */ | #define R_IMF_CHAN_DEPTH_32 (1 << 6) /* 32bits (full float exr) */ | ||||
| /* ImageFormatData.planes */ | /* ImageFormatData.planes */ | ||||
| #define R_IMF_PLANES_RGB 24 | #define R_IMF_PLANES_RGB 24 | ||||
| #define R_IMF_PLANES_RGBA 32 | #define R_IMF_PLANES_RGBA 32 | ||||
| #define R_IMF_PLANES_BW 8 | #define R_IMF_PLANES_BW 8 | ||||
| /* ImageFormatData.exr_codec */ | /* ImageFormatData.exr_codec */ | ||||
| #define R_IMF_EXR_CODEC_NONE 0 | #define R_IMF_EXR_CODEC_NONE 0 | ||||
| #define R_IMF_EXR_CODEC_PXR24 1 | #define R_IMF_EXR_CODEC_PXR24 1 | ||||
| #define R_IMF_EXR_CODEC_ZIP 2 | #define R_IMF_EXR_CODEC_ZIP 2 | ||||
| #define R_IMF_EXR_CODEC_PIZ 3 | #define R_IMF_EXR_CODEC_PIZ 3 | ||||
| #define R_IMF_EXR_CODEC_RLE 4 | #define R_IMF_EXR_CODEC_RLE 4 | ||||
| #define R_IMF_EXR_CODEC_ZIPS 5 | #define R_IMF_EXR_CODEC_ZIPS 5 | ||||
| #define R_IMF_EXR_CODEC_B44 6 | #define R_IMF_EXR_CODEC_B44 6 | ||||
| #define R_IMF_EXR_CODEC_B44A 7 | #define R_IMF_EXR_CODEC_B44A 7 | ||||
| #define R_IMF_EXR_CODEC_DWAA 8 | #define R_IMF_EXR_CODEC_DWAA 8 | ||||
| #define R_IMF_EXR_CODEC_DWAB 9 | #define R_IMF_EXR_CODEC_DWAB 9 | ||||
| #define R_IMF_EXR_CODEC_MAX 10 | #define R_IMF_EXR_CODEC_MAX 10 | ||||
| /* ImageFormatData.jp2_flag */ | /* ImageFormatData.jp2_flag */ | ||||
| #define R_IMF_JP2_FLAG_YCC (1<<0) /* when disabled use RGB */ /* was R_JPEG2K_YCC */ | #define R_IMF_JP2_FLAG_YCC (1 << 0) /* when disabled use RGB */ /* was R_JPEG2K_YCC */ | ||||
| #define R_IMF_JP2_FLAG_CINE_PRESET (1<<1) /* was R_JPEG2K_CINE_PRESET */ | #define R_IMF_JP2_FLAG_CINE_PRESET (1 << 1) /* was R_JPEG2K_CINE_PRESET */ | ||||
| #define R_IMF_JP2_FLAG_CINE_48 (1<<2) /* was R_JPEG2K_CINE_48FPS */ | #define R_IMF_JP2_FLAG_CINE_48 (1 << 2) /* was R_JPEG2K_CINE_48FPS */ | ||||
| /* ImageFormatData.jp2_codec */ | /* ImageFormatData.jp2_codec */ | ||||
| #define R_IMF_JP2_CODEC_JP2 0 | #define R_IMF_JP2_CODEC_JP2 0 | ||||
| #define R_IMF_JP2_CODEC_J2K 1 | #define R_IMF_JP2_CODEC_J2K 1 | ||||
| /* ImageFormatData.cineon_flag */ | /* ImageFormatData.cineon_flag */ | ||||
| #define R_IMF_CINEON_FLAG_LOG (1<<0) /* was R_CINEON_LOG */ | #define R_IMF_CINEON_FLAG_LOG (1 << 0) /* was R_CINEON_LOG */ | ||||
| /* ImageFormatData.tiff_codec */ | /* ImageFormatData.tiff_codec */ | ||||
| enum { | enum { | ||||
| R_IMF_TIFF_CODEC_DEFLATE = 0, | R_IMF_TIFF_CODEC_DEFLATE = 0, | ||||
| R_IMF_TIFF_CODEC_LZW = 1, | R_IMF_TIFF_CODEC_LZW = 1, | ||||
| R_IMF_TIFF_CODEC_PACKBITS = 2, | R_IMF_TIFF_CODEC_PACKBITS = 2, | ||||
| R_IMF_TIFF_CODEC_NONE = 3, | R_IMF_TIFF_CODEC_NONE = 3, | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
| /* Render Data */ | /* Render Data */ | ||||
| typedef struct RenderData { | typedef struct RenderData { | ||||
| struct ImageFormatData im_format; | struct ImageFormatData im_format; | ||||
| struct AviCodecData *avicodecdata; | struct AviCodecData *avicodecdata; | ||||
| struct FFMpegCodecData ffcodecdata; | struct FFMpegCodecData ffcodecdata; | ||||
| int cfra, sfra, efra; /* frames as in 'images' */ | int cfra, sfra, efra; /* frames as in 'images' */ | ||||
| float subframe; /* subframe offset from cfra, in 0.0-1.0 */ | float subframe; /* subframe offset from cfra, in 0.0-1.0 */ | ||||
| int psfra, pefra; /* start+end frames of preview range */ | int psfra, pefra; /* start+end frames of preview range */ | ||||
| int images, framapto; | int images, framapto; | ||||
| short flag, threads; | short flag, threads; | ||||
| float framelen, blurfac; | float framelen, blurfac; | ||||
| int frame_step; /* frames to jump during render/playback */ | int frame_step; /* frames to jump during render/playback */ | ||||
| short stereomode DNA_DEPRECATED; /* standalone player stereo settings */ // XXX deprecated since 2.5 | short stereomode DNA_DEPRECATED; /* standalone player stereo settings */ // XXX deprecated since 2.5 | ||||
| short dimensionspreset; /* for the dimensions presets menu */ | short dimensionspreset; /* for the dimensions presets menu */ | ||||
| short size; /* size in % */ | short size; /* size in % */ | ||||
| short pad6; | short pad6; | ||||
| /* from buttons: */ | /* from buttons: */ | ||||
| /** | /** | ||||
| * The desired number of pixels in the x direction | * The desired number of pixels in the x direction | ||||
| */ | */ | ||||
| int xsch; | int xsch; | ||||
| /** | /** | ||||
| * The desired number of pixels in the y direction | * The desired number of pixels in the y direction | ||||
| */ | */ | ||||
| int ysch; | int ysch; | ||||
| /** | /** | ||||
| * render tile dimensions | * render tile dimensions | ||||
| */ | */ | ||||
| int tilex, tiley; | int tilex, tiley; | ||||
| short planes DNA_DEPRECATED, imtype DNA_DEPRECATED, subimtype DNA_DEPRECATED, quality DNA_DEPRECATED; /*deprecated!*/ | short planes DNA_DEPRECATED, imtype DNA_DEPRECATED, subimtype DNA_DEPRECATED, quality DNA_DEPRECATED; /*deprecated!*/ | ||||
| /** | /** | ||||
| * Render to image editor, fullscreen or to new window. | * Render to image editor, fullscreen or to new window. | ||||
| */ | */ | ||||
| short displaymode; | short displaymode; | ||||
| char use_lock_interface; | char use_lock_interface; | ||||
| char pad7; | char pad7; | ||||
| Show All 40 Lines | typedef struct RenderData { | ||||
| /** | /** | ||||
| * Value used to define filter size for all filter options */ | * Value used to define filter size for all filter options */ | ||||
| float gauss; | float gauss; | ||||
| /* color management settings - color profiles, gamma correction, etc */ | /* color management settings - color profiles, gamma correction, etc */ | ||||
| int color_mgt_flag; | int color_mgt_flag; | ||||
| /* Dither noise intensity */ | /* Dither noise intensity */ | ||||
| float dither_intensity; | float dither_intensity; | ||||
| /* Bake Render options */ | /* Bake Render options */ | ||||
| short bake_mode, bake_flag; | short bake_mode, bake_flag; | ||||
| short bake_filter, bake_samples; | short bake_filter, bake_samples; | ||||
| float bake_biasdist, bake_user_scale; | float bake_biasdist, bake_user_scale; | ||||
| /* path to render output */ | /* path to render output */ | ||||
| ▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | typedef struct RenderProfile { | ||||
| short pad1; | short pad1; | ||||
| float ao_error, pad2; | float ao_error, pad2; | ||||
| } RenderProfile; | } RenderProfile; | ||||
| /* UV Paint */ | /* UV Paint */ | ||||
| /* ToolSettings.uv_sculpt_settings */ | /* ToolSettings.uv_sculpt_settings */ | ||||
| #define UV_SCULPT_LOCK_BORDERS 1 | #define UV_SCULPT_LOCK_BORDERS 1 | ||||
| #define UV_SCULPT_ALL_ISLANDS 2 | #define UV_SCULPT_ALL_ISLANDS 2 | ||||
| /* ToolSettings.uv_sculpt_tool */ | /* ToolSettings.uv_sculpt_tool */ | ||||
| #define UV_SCULPT_TOOL_PINCH 1 | #define UV_SCULPT_TOOL_PINCH 1 | ||||
| #define UV_SCULPT_TOOL_RELAX 2 | #define UV_SCULPT_TOOL_RELAX 2 | ||||
| #define UV_SCULPT_TOOL_GRAB 3 | #define UV_SCULPT_TOOL_GRAB 3 | ||||
| /* ToolSettings.uv_relax_method */ | /* ToolSettings.uv_relax_method */ | ||||
| #define UV_SCULPT_TOOL_RELAX_LAPLACIAN 1 | #define UV_SCULPT_TOOL_RELAX_LAPLACIAN 1 | ||||
| #define UV_SCULPT_TOOL_RELAX_HC 2 | #define UV_SCULPT_TOOL_RELAX_HC 2 | ||||
| /* Stereo Flags */ | /* Stereo Flags */ | ||||
| #define STEREO_RIGHT_NAME "right" | #define STEREO_RIGHT_NAME "right" | ||||
| #define STEREO_LEFT_NAME "left" | #define STEREO_LEFT_NAME "left" | ||||
| #define STEREO_RIGHT_SUFFIX "_R" | #define STEREO_RIGHT_SUFFIX "_R" | ||||
| #define STEREO_LEFT_SUFFIX "_L" | #define STEREO_LEFT_SUFFIX "_L" | ||||
| /* View3D.stereo3d_camera / View3D.multiview_eye / ImageUser.multiview_eye */ | /* View3D.stereo3d_camera / View3D.multiview_eye / ImageUser.multiview_eye */ | ||||
| ▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | typedef struct ImagePaintSettings { | ||||
| short flag, missing_data; | short flag, missing_data; | ||||
| /* for projection painting only */ | /* for projection painting only */ | ||||
| short seam_bleed, normal_angle; | short seam_bleed, normal_angle; | ||||
| short screen_grab_size[2]; /* capture size for re-projection */ | short screen_grab_size[2]; /* capture size for re-projection */ | ||||
| int mode; /* mode used for texture painting */ | int mode; /* mode used for texture painting */ | ||||
| void *paintcursor; /* wm handle */ | void *paintcursor; /* wm handle */ | ||||
| struct Image *stencil; /* workaround until we support true layer masks */ | struct Image *stencil; /* workaround until we support true layer masks */ | ||||
| struct Image *clone; /* clone layer for image mode for projective texture painting */ | struct Image *clone; /* clone layer for image mode for projective texture painting */ | ||||
| struct Image *canvas; /* canvas when the explicit system is used for painting */ | struct Image *canvas; /* canvas when the explicit system is used for painting */ | ||||
| float stencil_col[3]; | float stencil_col[3]; | ||||
| float dither; /* dither amount used when painting on byte images */ | float dither; /* dither amount used when painting on byte images */ | ||||
| } ImagePaintSettings; | } ImagePaintSettings; | ||||
| /* ------------------------------------------- */ | /* ------------------------------------------- */ | ||||
| /* Particle Edit */ | /* Particle Edit */ | ||||
| /* Settings for a Particle Editing Brush */ | /* Settings for a Particle Editing Brush */ | ||||
| typedef struct ParticleBrushData { | typedef struct ParticleBrushData { | ||||
| short size; /* common setting */ | short size; /* common setting */ | ||||
| short step, invert, count; /* for specific brushes only */ | short step, invert, count; /* for specific brushes only */ | ||||
| int flag; | int flag; | ||||
| float strength; | float strength; | ||||
| } ParticleBrushData; | } ParticleBrushData; | ||||
| /* Particle Edit Mode Settings */ | /* Particle Edit Mode Settings */ | ||||
| typedef struct ParticleEditSettings { | typedef struct ParticleEditSettings { | ||||
| short flag; | short flag; | ||||
| short totrekey; | short totrekey; | ||||
| short totaddkey; | short totaddkey; | ||||
| short brushtype; | short brushtype; | ||||
| ParticleBrushData brush[7]; | ParticleBrushData brush[7]; | ||||
| void *paintcursor; /* runtime */ | void *paintcursor; /* runtime */ | ||||
| float emitterdist, rt; | float emitterdist, rt; | ||||
| int selectmode; | int selectmode; | ||||
| int edittype; | int edittype; | ||||
| int draw_step, fade_frames; | int draw_step, fade_frames; | ||||
| ▲ Show 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | typedef struct UnifiedPaintSettings { | ||||
| float average_stroke_accum[3]; | float average_stroke_accum[3]; | ||||
| int average_stroke_counter; | int average_stroke_counter; | ||||
| float brush_rotation; | float brush_rotation; | ||||
| float brush_rotation_sec; | float brush_rotation_sec; | ||||
| /********************************************************************************* | /********************************************************************************* | ||||
| * all data below are used to communicate with cursor drawing and tex sampling * | * all data below are used to communicate with cursor drawing and tex sampling * | ||||
| *********************************************************************************/ | *********************************************************************************/ | ||||
| int anchored_size; | int anchored_size; | ||||
| float overlap_factor; /* normalization factor due to accumulated value of curve along spacing. | float overlap_factor; /* normalization factor due to accumulated value of curve along spacing. | ||||
| * Calculated when brush spacing changes to dampen strength of stroke | * Calculated when brush spacing changes to dampen strength of stroke | ||||
| * if space attenuation is used*/ | * if space attenuation is used*/ | ||||
| char draw_inverted; | char draw_inverted; | ||||
| /* check is there an ongoing stroke right now */ | /* check is there an ongoing stroke right now */ | ||||
| char stroke_active; | char stroke_active; | ||||
| ▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | |||||
| /* Stats */ | /* Stats */ | ||||
| /* Stats for Meshes */ | /* Stats for Meshes */ | ||||
| typedef struct MeshStatVis { | typedef struct MeshStatVis { | ||||
| char type; | char type; | ||||
| char _pad1[2]; | char _pad1[2]; | ||||
| /* overhang */ | /* overhang */ | ||||
| char overhang_axis; | char overhang_axis; | ||||
| float overhang_min, overhang_max; | float overhang_min, overhang_max; | ||||
| /* thickness */ | /* thickness */ | ||||
| float thickness_min, thickness_max; | float thickness_min, thickness_max; | ||||
| char thickness_samples; | char thickness_samples; | ||||
| char _pad2[3]; | char _pad2[3]; | ||||
| /* distort */ | /* distort */ | ||||
| float distort_min, distort_max; | float distort_min, distort_max; | ||||
| /* sharp */ | /* sharp */ | ||||
| float sharp_min, sharp_max; | float sharp_min, sharp_max; | ||||
| } MeshStatVis; | } MeshStatVis; | ||||
| /* *************************************************************** */ | /* *************************************************************** */ | ||||
| /* Tool Settings */ | /* Tool Settings */ | ||||
| typedef struct ToolSettings { | typedef struct ToolSettings { | ||||
| VPaint *vpaint; /* vertex paint */ | VPaint *vpaint; /* vertex paint */ | ||||
| VPaint *wpaint; /* weight paint */ | VPaint *wpaint; /* weight paint */ | ||||
| Sculpt *sculpt; | Sculpt *sculpt; | ||||
| UvSculpt *uvsculpt; /* uv smooth */ | UvSculpt *uvsculpt; /* uv smooth */ | ||||
| GpPaint *gp_paint; /* gpencil paint */ | GpPaint *gp_paint; /* gpencil paint */ | ||||
| /* Vertex group weight - used only for editmode, not weight | /* Vertex group weight - used only for editmode, not weight | ||||
| * paint */ | * paint */ | ||||
| float vgroup_weight; | float vgroup_weight; | ||||
| float doublimit; /* remove doubles limit */ | float doublimit; /* remove doubles limit */ | ||||
| char automerge; | char automerge; | ||||
| char object_flag; | char object_flag; | ||||
| /* Selection Mode for Mesh */ | /* Selection Mode for Mesh */ | ||||
| short selectmode; | short selectmode; | ||||
| /* UV Calculation */ | /* UV Calculation */ | ||||
| char unwrapper; | char unwrapper; | ||||
| char uvcalc_flag; | char uvcalc_flag; | ||||
| char uv_flag; | char uv_flag; | ||||
| char uv_selectmode; | char uv_selectmode; | ||||
| float uvcalc_margin; | float uvcalc_margin; | ||||
| /* Auto-IK */ | /* Auto-IK */ | ||||
| short autoik_chainlen; /* runtime only */ | short autoik_chainlen; /* runtime only */ | ||||
| /* Grease Pencil */ | /* Grease Pencil */ | ||||
| char gpencil_flags; /* flags/options for how the tool works */ | char gpencil_flags; /* flags/options for how the tool works */ | ||||
| char gpencil_v3d_align; /* stroke placement settings: 3D View */ | char gpencil_v3d_align; /* stroke placement settings: 3D View */ | ||||
| char gpencil_v2d_align; /* : General 2D Editor */ | char gpencil_v2d_align; /* : General 2D Editor */ | ||||
| char gpencil_seq_align; /* : Sequencer Preview */ | char gpencil_seq_align; /* : Sequencer Preview */ | ||||
| char gpencil_ima_align; /* : Image Editor */ | char gpencil_ima_align; /* : Image Editor */ | ||||
| /* Annotations */ | /* Annotations */ | ||||
| char annotate_v3d_align; /* stroke placement settings - 3D View */ | char annotate_v3d_align; /* stroke placement settings - 3D View */ | ||||
| Show All 15 Lines | typedef struct ToolSettings { | ||||
| /* Transform Proportional Area of Effect */ | /* Transform Proportional Area of Effect */ | ||||
| float proportional_size; | float proportional_size; | ||||
| /* Select Group Threshold */ | /* Select Group Threshold */ | ||||
| float select_thresh; | float select_thresh; | ||||
| /* Auto-Keying Mode */ | /* Auto-Keying Mode */ | ||||
| short autokey_mode, autokey_flag; /* defines in DNA_userdef_types.h */ | short autokey_mode, autokey_flag; /* defines in DNA_userdef_types.h */ | ||||
| char keyframe_type; /* keyframe type (see DNA_curve_types.h) */ | char keyframe_type; /* keyframe type (see DNA_curve_types.h) */ | ||||
| /* Multires */ | /* Multires */ | ||||
| char multires_subdiv_type; | char multires_subdiv_type; | ||||
| /* Alt+RMB option */ | /* Alt+RMB option */ | ||||
| char edge_mode; | char edge_mode; | ||||
| char edge_mode_live_unwrap; | char edge_mode_live_unwrap; | ||||
| Show All 24 Lines | typedef struct ToolSettings { | ||||
| /* UV painting */ | /* UV painting */ | ||||
| char _pad2[2]; | char _pad2[2]; | ||||
| char use_uv_sculpt; | char use_uv_sculpt; | ||||
| char uv_sculpt_settings; | char uv_sculpt_settings; | ||||
| char uv_sculpt_tool; | char uv_sculpt_tool; | ||||
| char uv_relax_method; | char uv_relax_method; | ||||
| /* XXX: these sculpt_paint_* fields are deprecated, use the | /* XXX: these sculpt_paint_* fields are deprecated, use the | ||||
| * unified_paint_settings field instead! */ | * unified_paint_settings field instead! */ | ||||
| short sculpt_paint_settings DNA_DEPRECATED; short pad5; | short sculpt_paint_settings DNA_DEPRECATED; short pad5; | ||||
| int sculpt_paint_unified_size DNA_DEPRECATED; | int sculpt_paint_unified_size DNA_DEPRECATED; | ||||
| float sculpt_paint_unified_unprojected_radius DNA_DEPRECATED; | float sculpt_paint_unified_unprojected_radius DNA_DEPRECATED; | ||||
| float sculpt_paint_unified_alpha DNA_DEPRECATED; | float sculpt_paint_unified_alpha DNA_DEPRECATED; | ||||
| /* Unified Paint Settings */ | /* Unified Paint Settings */ | ||||
| struct UnifiedPaintSettings unified_paint_settings; | struct UnifiedPaintSettings unified_paint_settings; | ||||
| struct CurvePaintSettings curve_paint_settings; | struct CurvePaintSettings curve_paint_settings; | ||||
| Show All 38 Lines | |||||
| /* ------------------------------------------- */ | /* ------------------------------------------- */ | ||||
| /* Safe Area options used in Camera View & VSE | /* Safe Area options used in Camera View & VSE | ||||
| */ | */ | ||||
| typedef struct DisplaySafeAreas { | typedef struct DisplaySafeAreas { | ||||
| /* each value represents the (x,y) margins as a multiplier. | /* each value represents the (x,y) margins as a multiplier. | ||||
| * 'center' in this context is just the name for a different kind of safe-area */ | * 'center' in this context is just the name for a different kind of safe-area */ | ||||
| float title[2]; /* Title Safe */ | float title[2]; /* Title Safe */ | ||||
| float action[2]; /* Image/Graphics Safe */ | float action[2]; /* Image/Graphics Safe */ | ||||
| /* use for alternate aspect ratio */ | /* use for alternate aspect ratio */ | ||||
| float title_center[2]; | float title_center[2]; | ||||
| float action_center[2]; | float action_center[2]; | ||||
| } DisplaySafeAreas; | } DisplaySafeAreas; | ||||
| /* ------------------------------------------- */ | /* ------------------------------------------- */ | ||||
| /* Scene Display - used for store scene specific display settings for the 3d view */ | /* Scene Display - used for store scene specific display settings for the 3d view */ | ||||
| ▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | typedef struct SceneEEVEE { | ||||
| int shadow_method; | int shadow_method; | ||||
| int shadow_cube_size; | int shadow_cube_size; | ||||
| int shadow_cascade_size; | int shadow_cascade_size; | ||||
| struct LightCache *light_cache; | struct LightCache *light_cache; | ||||
| char light_cache_info[64]; | char light_cache_info[64]; | ||||
| } SceneEEVEE; | } SceneEEVEE; | ||||
| /* LANPR Global Config */ | |||||
| struct LANPR_RenderBuffer; | |||||
| struct LANPR_LineLayer; | |||||
| typedef struct SceneLANPR { | |||||
| int master_mode; | |||||
| int enable_vector_trace; | |||||
| int display_thinning_result; | |||||
| //int SizeCompensate; | |||||
| float depth_clamp; | |||||
| float depth_strength; | |||||
| float normal_clamp; | |||||
| float normal_strength; | |||||
| float line_thickness; | |||||
| int use_same_taper; | |||||
| float taper_left_distance; | |||||
| float taper_left_strength; | |||||
| float taper_right_distance; | |||||
| float taper_right_strength; | |||||
| int enable_tip_extend; | |||||
| float extend_length; | |||||
| int snake_sensitivity; | |||||
| /* shared */ | |||||
| float contour_fade; /* for dpix contour fading,reserved for future usage */ | |||||
| float crease_threshold; /* 0-1 range for cosine angle */ | |||||
| float crease_fade_threshold; /* for dpix crease fading */ | |||||
| float line_color[4]; | |||||
| float background_color[4]; | |||||
| float depth_width_influence; | |||||
| float depth_width_curve; | |||||
| float depth_alpha_influence; | |||||
| float depth_alpha_curve; | |||||
| /* states (needs optimization) */ | |||||
| int reloaded; | |||||
aligorith: `snake_case` only | |||||
| /* offline render */ | |||||
| struct LANPR_RenderBuffer *render_buffer; /* created when needed. for offline rendering */ | |||||
| ListBase line_layers; /* now here!!! */ | |||||
| struct LANPR_LineLayer *active_layer; | |||||
| int enable_intersections; | |||||
| int enable_chaining; | |||||
| } SceneLANPR; | |||||
Not Done Inline ActionsUse another name for this.
aligorith: Use another name for this.
1) It may cause issues with the makesdna parser - Most likely it's… | |||||
| /* *************************************************************** */ | /* *************************************************************** */ | ||||
| /* Scene ID-Block */ | /* Scene ID-Block */ | ||||
| typedef struct Scene { | typedef struct Scene { | ||||
| ID id; | ID id; | ||||
| struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */ | struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */ | ||||
| struct Object *camera; | struct Object *camera; | ||||
| struct World *world; | struct World *world; | ||||
| struct Scene *set; | struct Scene *set; | ||||
| ListBase base DNA_DEPRECATED; | ListBase base DNA_DEPRECATED; | ||||
| struct Base *basact DNA_DEPRECATED; /* active base */ | struct Base *basact DNA_DEPRECATED; /* active base */ | ||||
| void *_pad1; | void *_pad1; | ||||
| View3DCursor cursor; /* 3d cursor location */ | View3DCursor cursor; /* 3d cursor location */ | ||||
| unsigned int lay; /* bitflags for layer visibility */ | unsigned int lay; /* bitflags for layer visibility */ | ||||
| int layact; /* active layer */ | int layact; /* active layer */ | ||||
| unsigned int lay_updated; /* runtime flag, has layer ever been updated since load? */ | unsigned int lay_updated; /* runtime flag, has layer ever been updated since load? */ | ||||
| short flag; /* various settings */ | short flag; /* various settings */ | ||||
| char use_nodes; | char use_nodes; | ||||
| char pad[1]; | char pad[1]; | ||||
| struct bNodeTree *nodetree; | struct bNodeTree *nodetree; | ||||
| struct Editing *ed; /* sequence editor data is allocated here */ | struct Editing *ed; /* sequence editor data is allocated here */ | ||||
| struct ToolSettings *toolsettings; /* default allocated now */ | struct ToolSettings *toolsettings; /* default allocated now */ | ||||
| void *pad2; | void *pad2; | ||||
| struct DisplaySafeAreas safe_areas; | struct DisplaySafeAreas safe_areas; | ||||
| /* migrate or replace? depends on some internal things... */ | /* migrate or replace? depends on some internal things... */ | ||||
| /* no, is on the right place (ton) */ | /* no, is on the right place (ton) */ | ||||
| struct RenderData r; | struct RenderData r; | ||||
| struct AudioData audio; | struct AudioData audio; | ||||
| ListBase markers; | ListBase markers; | ||||
| ListBase transform_spaces; | ListBase transform_spaces; | ||||
| int orientation_index_custom; | int orientation_index_custom; | ||||
| int orientation_type; | int orientation_type; | ||||
| void *sound_scene; | void *sound_scene; | ||||
| void *playback_handle; | void *playback_handle; | ||||
| void *sound_scrub_handle; | void *sound_scrub_handle; | ||||
| void *speaker_handles; | void *speaker_handles; | ||||
| void *fps_info; /* (runtime) info/cache used for presenting playback framerate info to the user */ | void *fps_info; /* (runtime) info/cache used for presenting playback framerate info to the user */ | ||||
| /* none of the dependency graph vars is mean to be saved */ | /* none of the dependency graph vars is mean to be saved */ | ||||
| struct GHash *depsgraph_hash; | struct GHash *depsgraph_hash; | ||||
| int pad7; | int pad7; | ||||
| /* User-Defined KeyingSets */ | /* User-Defined KeyingSets */ | ||||
| int active_keyingset; /* index of the active KeyingSet. first KeyingSet has index 1, 'none' active is 0, 'add new' is -1 */ | int active_keyingset; /* index of the active KeyingSet. first KeyingSet has index 1, 'none' active is 0, 'add new' is -1 */ | ||||
| ListBase keyingsets; /* KeyingSets for this scene */ | ListBase keyingsets; /* KeyingSets for this scene */ | ||||
| /* Units */ | /* Units */ | ||||
| struct UnitSettings unit; | struct UnitSettings unit; | ||||
| /* Grease Pencil - Annotations */ | /* Grease Pencil - Annotations */ | ||||
| struct bGPdata *gpd; | struct bGPdata *gpd; | ||||
| /* Movie Tracking */ | /* Movie Tracking */ | ||||
| struct MovieClip *clip; /* active movie clip */ | struct MovieClip *clip; /* active movie clip */ | ||||
| /* Physics simulation settings */ | /* Physics simulation settings */ | ||||
| struct PhysicsSettings physics_settings; | struct PhysicsSettings physics_settings; | ||||
| uint64_t customdata_mask; /* XXX. runtime flag for drawing, actually belongs in the window, only used by BKE_object_handle_update() */ | uint64_t customdata_mask; /* XXX. runtime flag for drawing, actually belongs in the window, only used by BKE_object_handle_update() */ | ||||
| uint64_t customdata_mask_modal; /* XXX. same as above but for temp operator use (gl renders) */ | uint64_t customdata_mask_modal; /* XXX. same as above but for temp operator use (gl renders) */ | ||||
| /* Color Management */ | /* Color Management */ | ||||
| ColorManagedViewSettings view_settings; | ColorManagedViewSettings view_settings; | ||||
| ColorManagedDisplaySettings display_settings; | ColorManagedDisplaySettings display_settings; | ||||
| ColorManagedColorspaceSettings sequencer_colorspace_settings; | ColorManagedColorspaceSettings sequencer_colorspace_settings; | ||||
| /* RigidBody simulation world+settings */ | /* RigidBody simulation world+settings */ | ||||
| struct RigidBodyWorld *rigidbody_world; | struct RigidBodyWorld *rigidbody_world; | ||||
| struct PreviewImage *preview; | struct PreviewImage *preview; | ||||
| ListBase view_layers; | ListBase view_layers; | ||||
| /* Not an actual datablock, but memory owned by scene. */ | /* Not an actual datablock, but memory owned by scene. */ | ||||
| Collection *master_collection; | Collection *master_collection; | ||||
| struct SceneCollection *collection DNA_DEPRECATED; | struct SceneCollection *collection DNA_DEPRECATED; | ||||
| IDProperty *layer_properties; /* settings to be override by workspaces */ | IDProperty *layer_properties; /* settings to be override by workspaces */ | ||||
| struct SceneDisplay display; | struct SceneDisplay display; | ||||
| struct SceneEEVEE eevee; | struct SceneEEVEE eevee; | ||||
| /* LANPR stuff */ | |||||
| struct SceneLANPR lanpr; | |||||
| } Scene; | } Scene; | ||||
| /* **************** RENDERDATA ********************* */ | /* **************** RENDERDATA ********************* */ | ||||
| /* RenderData.flag */ | /* RenderData.flag */ | ||||
| /* use preview range */ | /* use preview range */ | ||||
| #define SCER_PRV_RANGE (1<<0) | #define SCER_PRV_RANGE (1 << 0) | ||||
| #define SCER_LOCK_FRAME_SELECTION (1<<1) | #define SCER_LOCK_FRAME_SELECTION (1 << 1) | ||||
| /* show/use subframes (for checking motion blur) */ | /* show/use subframes (for checking motion blur) */ | ||||
| #define SCER_SHOW_SUBFRAME (1<<3) | #define SCER_SHOW_SUBFRAME (1 << 3) | ||||
| /* RenderData.mode */ | /* RenderData.mode */ | ||||
| #define R_OSA 0x0001 | #define R_OSA 0x0001 | ||||
| /* #define R_SHADOW 0x0002 */ | /* #define R_SHADOW 0x0002 */ | ||||
| /* #define R_GAMMA 0x0004 */ | /* #define R_GAMMA 0x0004 */ | ||||
| #define R_ORTHO 0x0008 | #define R_ORTHO 0x0008 | ||||
| /* #define R_ENVMAP 0x0010 */ | /* #define R_ENVMAP 0x0010 */ | ||||
| /* #define R_EDGE 0x0020 */ | /* #define R_EDGE 0x0020 */ | ||||
| /* #define R_FIELDS 0x0040 */ | /* #define R_FIELDS 0x0040 */ | ||||
| /*#define R_FIELDSTILL 0x0080 */ | /*#define R_FIELDSTILL 0x0080 */ | ||||
| /*#define R_RADIO 0x0100 */ /* deprecated */ | /*#define R_RADIO 0x0100 */ /* deprecated */ | ||||
| #define R_BORDER 0x0200 | #define R_BORDER 0x0200 | ||||
| #define R_PANORAMA 0x0400 | #define R_PANORAMA 0x0400 | ||||
| #define R_CROP 0x0800 | #define R_CROP 0x0800 | ||||
| /* Disable camera switching: runtime (DURIAN_CAMERA_SWITCH) */ | /* Disable camera switching: runtime (DURIAN_CAMERA_SWITCH) */ | ||||
| #define R_NO_CAMERA_SWITCH 0x1000 | #define R_NO_CAMERA_SWITCH 0x1000 | ||||
| /* #define R_ODDFIELD 0x2000 */ | /* #define R_ODDFIELD 0x2000 */ | ||||
| #define R_MBLUR 0x4000 | #define R_MBLUR 0x4000 | ||||
| /* unified was here */ | /* unified was here */ | ||||
| /* #define R_RAYTRACE 0x10000 */ | /* #define R_RAYTRACE 0x10000 */ | ||||
| /* R_GAUSS is obsolete, but used to retrieve setting from old files */ | /* R_GAUSS is obsolete, but used to retrieve setting from old files */ | ||||
| /* #define R_GAUSS 0x20000 */ | /* #define R_GAUSS 0x20000 */ | ||||
| /* fbuf obsolete... */ | /* fbuf obsolete... */ | ||||
| /*#define R_FBUF 0x40000*/ | /*#define R_FBUF 0x40000*/ | ||||
| /* threads obsolete... is there for old files, now use for autodetect threads */ | /* threads obsolete... is there for old files, now use for autodetect threads */ | ||||
| #define R_THREADS 0x80000 | #define R_THREADS 0x80000 | ||||
| /* Use the same flag for autothreads */ | /* Use the same flag for autothreads */ | ||||
| #define R_FIXED_THREADS 0x80000 | #define R_FIXED_THREADS 0x80000 | ||||
| /* #define R_SPEED 0x100000 */ | /* #define R_SPEED 0x100000 */ | ||||
| /* #define R_SSS 0x200000 */ | /* #define R_SSS 0x200000 */ | ||||
| #define R_NO_OVERWRITE 0x400000 /* skip existing files */ | #define R_NO_OVERWRITE 0x400000 /* skip existing files */ | ||||
| #define R_TOUCH 0x800000 /* touch files before rendering */ | #define R_TOUCH 0x800000 /* touch files before rendering */ | ||||
| #define R_SIMPLIFY 0x1000000 | #define R_SIMPLIFY 0x1000000 | ||||
| #define R_EDGE_FRS 0x2000000 /* R_EDGE reserved for Freestyle */ | #define R_EDGE_FRS 0x2000000 /* R_EDGE reserved for Freestyle */ | ||||
| #define R_PERSISTENT_DATA 0x4000000 /* keep data around for re-render */ | #define R_PERSISTENT_DATA 0x4000000 /* keep data around for re-render */ | ||||
| /* #define R_USE_WS_SHADING 0x8000000 */ /* use world space interpretation of lighting data */ | /* #define R_USE_WS_SHADING 0x8000000 */ /* use world space interpretation of lighting data */ | ||||
| /* RenderData.seq_flag */ | /* RenderData.seq_flag */ | ||||
| enum { | enum { | ||||
| // R_SEQ_GL_PREV = (1 << 1), // UNUSED, we just use setting from seq_prev_type now. | // R_SEQ_GL_PREV = (1 << 1), // UNUSED, we just use setting from seq_prev_type now. | ||||
| // R_SEQ_GL_REND = (1 << 2), // UNUSED, opengl render has its own operator now. | // R_SEQ_GL_REND = (1 << 2), // UNUSED, opengl render has its own operator now. | ||||
| R_SEQ_SOLID_TEX = (1 << 3), | R_SEQ_SOLID_TEX = (1 << 3), | ||||
| R_SEQ_CAMERA_DOF = (1 << 4), | R_SEQ_CAMERA_DOF = (1 << 4), | ||||
| }; | }; | ||||
| /* RenderData.displaymode */ | /* RenderData.displaymode */ | ||||
| #define R_OUTPUT_SCREEN 0 | #define R_OUTPUT_SCREEN 0 | ||||
| #define R_OUTPUT_AREA 1 | #define R_OUTPUT_AREA 1 | ||||
| #define R_OUTPUT_WINDOW 2 | #define R_OUTPUT_WINDOW 2 | ||||
| #define R_OUTPUT_NONE 3 | #define R_OUTPUT_NONE 3 | ||||
| /*#define R_OUTPUT_FORKED 4*/ | /*#define R_OUTPUT_FORKED 4*/ | ||||
| /* RenderData.filtertype (used for nodes) */ | /* RenderData.filtertype (used for nodes) */ | ||||
| #define R_FILTER_BOX 0 | #define R_FILTER_BOX 0 | ||||
| #define R_FILTER_TENT 1 | #define R_FILTER_TENT 1 | ||||
| #define R_FILTER_QUAD 2 | #define R_FILTER_QUAD 2 | ||||
| #define R_FILTER_CUBIC 3 | #define R_FILTER_CUBIC 3 | ||||
| #define R_FILTER_CATROM 4 | #define R_FILTER_CATROM 4 | ||||
| #define R_FILTER_GAUSS 5 | #define R_FILTER_GAUSS 5 | ||||
| #define R_FILTER_MITCH 6 | #define R_FILTER_MITCH 6 | ||||
| #define R_FILTER_FAST_GAUSS 7 | #define R_FILTER_FAST_GAUSS 7 | ||||
| /* RenderData.scemode (int now) */ | /* RenderData.scemode (int now) */ | ||||
| #define R_DOSEQ 0x0001 | #define R_DOSEQ 0x0001 | ||||
| #define R_BG_RENDER 0x0002 | #define R_BG_RENDER 0x0002 | ||||
| /* passepartout is camera option now, keep this for backward compatibility */ | /* passepartout is camera option now, keep this for backward compatibility */ | ||||
| #define R_PASSEPARTOUT 0x0004 | #define R_PASSEPARTOUT 0x0004 | ||||
| #define R_BUTS_PREVIEW 0x0008 | #define R_BUTS_PREVIEW 0x0008 | ||||
| #define R_EXTENSION 0x0010 | #define R_EXTENSION 0x0010 | ||||
| #define R_MATNODE_PREVIEW 0x0020 | #define R_MATNODE_PREVIEW 0x0020 | ||||
| #define R_DOCOMP 0x0040 | #define R_DOCOMP 0x0040 | ||||
| #define R_COMP_CROP 0x0080 | #define R_COMP_CROP 0x0080 | ||||
| /* #define R_FREE_IMAGE 0x0100 */ | /* #define R_FREE_IMAGE 0x0100 */ | ||||
| #define R_SINGLE_LAYER 0x0200 | #define R_SINGLE_LAYER 0x0200 | ||||
| #define R_EXR_TILE_FILE 0x0400 | #define R_EXR_TILE_FILE 0x0400 | ||||
| /* #define R_COMP_FREE 0x0800 */ | /* #define R_COMP_FREE 0x0800 */ | ||||
| #define R_NO_IMAGE_LOAD 0x1000 | #define R_NO_IMAGE_LOAD 0x1000 | ||||
| /* #define R_NO_TEX 0x2000 */ | /* #define R_NO_TEX 0x2000 */ | ||||
| #define R_NO_FRAME_UPDATE 0x4000 | #define R_NO_FRAME_UPDATE 0x4000 | ||||
| #define R_FULL_SAMPLE 0x8000 | #define R_FULL_SAMPLE 0x8000 | ||||
| /* #define R_DEPRECATED 0x10000 */ | /* #define R_DEPRECATED 0x10000 */ | ||||
| /* #define R_RECURS_PROTECTION 0x20000 */ | /* #define R_RECURS_PROTECTION 0x20000 */ | ||||
| #define R_TEXNODE_PREVIEW 0x40000 | #define R_TEXNODE_PREVIEW 0x40000 | ||||
| /* #define R_VIEWPORT_PREVIEW 0x80000 */ | /* #define R_VIEWPORT_PREVIEW 0x80000 */ | ||||
| #define R_EXR_CACHE_FILE 0x100000 | #define R_EXR_CACHE_FILE 0x100000 | ||||
| #define R_MULTIVIEW 0x200000 | #define R_MULTIVIEW 0x200000 | ||||
| /* RenderData.stamp */ | /* RenderData.stamp */ | ||||
| #define R_STAMP_TIME 0x0001 | #define R_STAMP_TIME 0x0001 | ||||
| #define R_STAMP_FRAME 0x0002 | #define R_STAMP_FRAME 0x0002 | ||||
| #define R_STAMP_DATE 0x0004 | #define R_STAMP_DATE 0x0004 | ||||
| #define R_STAMP_CAMERA 0x0008 | #define R_STAMP_CAMERA 0x0008 | ||||
| #define R_STAMP_SCENE 0x0010 | #define R_STAMP_SCENE 0x0010 | ||||
| #define R_STAMP_NOTE 0x0020 | #define R_STAMP_NOTE 0x0020 | ||||
| #define R_STAMP_DRAW 0x0040 /* draw in the image */ | #define R_STAMP_DRAW 0x0040 /* draw in the image */ | ||||
| #define R_STAMP_MARKER 0x0080 | #define R_STAMP_MARKER 0x0080 | ||||
| #define R_STAMP_FILENAME 0x0100 | #define R_STAMP_FILENAME 0x0100 | ||||
| #define R_STAMP_SEQSTRIP 0x0200 | #define R_STAMP_SEQSTRIP 0x0200 | ||||
| #define R_STAMP_RENDERTIME 0x0400 | #define R_STAMP_RENDERTIME 0x0400 | ||||
| #define R_STAMP_CAMERALENS 0x0800 | #define R_STAMP_CAMERALENS 0x0800 | ||||
| #define R_STAMP_STRIPMETA 0x1000 | #define R_STAMP_STRIPMETA 0x1000 | ||||
| #define R_STAMP_MEMORY 0x2000 | #define R_STAMP_MEMORY 0x2000 | ||||
| #define R_STAMP_HIDE_LABELS 0x4000 | #define R_STAMP_HIDE_LABELS 0x4000 | ||||
| #define R_STAMP_FRAME_RANGE 0x8000 | #define R_STAMP_FRAME_RANGE 0x8000 | ||||
| #define R_STAMP_ALL (R_STAMP_TIME|R_STAMP_FRAME|R_STAMP_DATE|R_STAMP_CAMERA|R_STAMP_SCENE| \ | #define R_STAMP_ALL (R_STAMP_TIME | R_STAMP_FRAME | R_STAMP_DATE | R_STAMP_CAMERA | R_STAMP_SCENE | \ | ||||
| R_STAMP_NOTE|R_STAMP_MARKER|R_STAMP_FILENAME|R_STAMP_SEQSTRIP| \ | R_STAMP_NOTE | R_STAMP_MARKER | R_STAMP_FILENAME | R_STAMP_SEQSTRIP | \ | ||||
| R_STAMP_RENDERTIME|R_STAMP_CAMERALENS|R_STAMP_MEMORY| \ | R_STAMP_RENDERTIME | R_STAMP_CAMERALENS | R_STAMP_MEMORY | \ | ||||
| R_STAMP_HIDE_LABELS|R_STAMP_FRAME_RANGE) | R_STAMP_HIDE_LABELS | R_STAMP_FRAME_RANGE) | ||||
| /* RenderData.alphamode */ | /* RenderData.alphamode */ | ||||
| #define R_ADDSKY 0 | #define R_ADDSKY 0 | ||||
| #define R_ALPHAPREMUL 1 | #define R_ALPHAPREMUL 1 | ||||
| /*#define R_ALPHAKEY 2*/ /* deprecated, shouldn't be used */ | /*#define R_ALPHAKEY 2*/ /* deprecated, shouldn't be used */ | ||||
| /* RenderData.color_mgt_flag */ | /* RenderData.color_mgt_flag */ | ||||
| enum { | enum { | ||||
| R_COLOR_MANAGEMENT = (1 << 0), /* deprecated, should only be used in versioning code only */ | R_COLOR_MANAGEMENT = (1 << 0), /* deprecated, should only be used in versioning code only */ | ||||
| /*R_COLOR_MANAGEMENT_PREDIVIDE = (1 << 1)*/ /* deprecated, shouldn't be used */ | /*R_COLOR_MANAGEMENT_PREDIVIDE = (1 << 1)*/ /* deprecated, shouldn't be used */ | ||||
| }; | }; | ||||
| #ifdef DNA_DEPRECATED | #ifdef DNA_DEPRECATED | ||||
| /* RenderData.subimtype flag options for imtype */ | /* RenderData.subimtype flag options for imtype */ | ||||
| enum { | enum { | ||||
| R_OPENEXR_HALF = 1, /*deprecated*/ | R_OPENEXR_HALF = 1, /*deprecated*/ | ||||
| R_OPENEXR_ZBUF = 2, /*deprecated*/ | R_OPENEXR_ZBUF = 2, /*deprecated*/ | ||||
| R_PREVIEW_JPG = 4, /*deprecated*/ | R_PREVIEW_JPG = 4, /*deprecated*/ | ||||
| R_CINEON_LOG = 8, /*deprecated*/ | R_CINEON_LOG = 8, /*deprecated*/ | ||||
| R_TIFF_16BIT = 16, /*deprecated*/ | R_TIFF_16BIT = 16, /*deprecated*/ | ||||
| R_JPEG2K_12BIT = 32, /* Jpeg2000 */ /*deprecated*/ | R_JPEG2K_12BIT = 32, /* Jpeg2000 */ /*deprecated*/ | ||||
| R_JPEG2K_16BIT = 64, /*deprecated*/ | R_JPEG2K_16BIT = 64, /*deprecated*/ | ||||
| R_JPEG2K_YCC = 128, /* when disabled use RGB */ /*deprecated*/ | R_JPEG2K_YCC = 128, /* when disabled use RGB */ /*deprecated*/ | ||||
| R_JPEG2K_CINE_PRESET = 256, /*deprecated*/ | R_JPEG2K_CINE_PRESET = 256, /*deprecated*/ | ||||
| R_JPEG2K_CINE_48FPS = 512, /*deprecated*/ | R_JPEG2K_CINE_48FPS = 512, /*deprecated*/ | ||||
| }; | }; | ||||
| #endif | #endif | ||||
| /* bake_mode: same as RE_BAKE_xxx defines */ | /* bake_mode: same as RE_BAKE_xxx defines */ | ||||
| /* RenderData.bake_flag */ | /* RenderData.bake_flag */ | ||||
| #define R_BAKE_CLEAR 1 | #define R_BAKE_CLEAR 1 | ||||
| /* #define R_BAKE_OSA 2 */ /* deprecated */ | /* #define R_BAKE_OSA 2 */ /* deprecated */ | ||||
| #define R_BAKE_TO_ACTIVE 4 | #define R_BAKE_TO_ACTIVE 4 | ||||
| /* #define R_BAKE_NORMALIZE 8 */ /* deprecated */ | /* #define R_BAKE_NORMALIZE 8 */ /* deprecated */ | ||||
| #define R_BAKE_MULTIRES 16 | #define R_BAKE_MULTIRES 16 | ||||
| #define R_BAKE_LORES_MESH 32 | #define R_BAKE_LORES_MESH 32 | ||||
| /* #define R_BAKE_VCOL 64 */ /* deprecated */ | /* #define R_BAKE_VCOL 64 */ /* deprecated */ | ||||
| #define R_BAKE_USERSCALE 128 | #define R_BAKE_USERSCALE 128 | ||||
| #define R_BAKE_CAGE 256 | #define R_BAKE_CAGE 256 | ||||
| #define R_BAKE_SPLIT_MAT 512 | #define R_BAKE_SPLIT_MAT 512 | ||||
| #define R_BAKE_AUTO_NAME 1024 | #define R_BAKE_AUTO_NAME 1024 | ||||
| /* RenderData.bake_normal_space */ | /* RenderData.bake_normal_space */ | ||||
| #define R_BAKE_SPACE_CAMERA 0 | #define R_BAKE_SPACE_CAMERA 0 | ||||
| #define R_BAKE_SPACE_WORLD 1 | #define R_BAKE_SPACE_WORLD 1 | ||||
| #define R_BAKE_SPACE_OBJECT 2 | #define R_BAKE_SPACE_OBJECT 2 | ||||
| #define R_BAKE_SPACE_TANGENT 3 | #define R_BAKE_SPACE_TANGENT 3 | ||||
| /* RenderData.line_thickness_mode */ | /* RenderData.line_thickness_mode */ | ||||
| #define R_LINE_THICKNESS_ABSOLUTE 1 | #define R_LINE_THICKNESS_ABSOLUTE 1 | ||||
| #define R_LINE_THICKNESS_RELATIVE 2 | #define R_LINE_THICKNESS_RELATIVE 2 | ||||
| /* sequencer seq_prev_type seq_rend_type */ | /* sequencer seq_prev_type seq_rend_type */ | ||||
| /* RenderData.engine (scene.c) */ | /* RenderData.engine (scene.c) */ | ||||
| extern const char *RE_engine_id_BLENDER_EEVEE; | extern const char *RE_engine_id_BLENDER_EEVEE; | ||||
| extern const char *RE_engine_id_BLENDER_OPENGL; | extern const char *RE_engine_id_BLENDER_OPENGL; | ||||
| extern const char *RE_engine_id_CYCLES; | extern const char *RE_engine_id_CYCLES; | ||||
| /* **************** SCENE ********************* */ | /* **************** SCENE ********************* */ | ||||
| /* note that much higher maxframes give imprecise sub-frames, see: T46859 */ | /* note that much higher maxframes give imprecise sub-frames, see: T46859 */ | ||||
| /* Current precision is 16 for the sub-frames closer to MAXFRAME. */ | /* Current precision is 16 for the sub-frames closer to MAXFRAME. */ | ||||
| /* for general use */ | /* for general use */ | ||||
| #define MAXFRAME 1048574 | #define MAXFRAME 1048574 | ||||
| #define MAXFRAMEF 1048574.0f | #define MAXFRAMEF 1048574.0f | ||||
| #define MINFRAME 0 | #define MINFRAME 0 | ||||
| #define MINFRAMEF 0.0f | #define MINFRAMEF 0.0f | ||||
| /* (minimum frame number for current-frame) */ | /* (minimum frame number for current-frame) */ | ||||
| #define MINAFRAME -1048574 | #define MINAFRAME -1048574 | ||||
| #define MINAFRAMEF -1048574.0f | #define MINAFRAMEF -1048574.0f | ||||
| /* deprecate this! */ | /* deprecate this! */ | ||||
| #define TESTBASE(base) ( \ | #define TESTBASE(base) ( \ | ||||
| (((base)->flag & BASE_SELECTED) != 0) && \ | (((base)->flag & BASE_SELECTED) != 0) && \ | ||||
| (((base)->flag & BASE_VISIBLE) != 0)) | (((base)->flag & BASE_VISIBLE) != 0)) | ||||
| #define TESTBASELIB(base) ( \ | #define TESTBASELIB(base) ( \ | ||||
| (((base)->flag & BASE_SELECTED) != 0) && \ | (((base)->flag & BASE_SELECTED) != 0) && \ | ||||
| ((base)->object->id.lib == NULL) && \ | ((base)->object->id.lib == NULL) && \ | ||||
| (((base)->flag & BASE_VISIBLE) != 0)) | (((base)->flag & BASE_VISIBLE) != 0)) | ||||
| #define TESTBASELIB_BGMODE(base) ( \ | #define TESTBASELIB_BGMODE(base) ( \ | ||||
| (((base)->flag & BASE_SELECTED) != 0) && \ | (((base)->flag & BASE_SELECTED) != 0) && \ | ||||
| ((base)->object->id.lib == NULL) && \ | ((base)->object->id.lib == NULL) && \ | ||||
| (((base)->flag & BASE_VISIBLE) != 0)) | (((base)->flag & BASE_VISIBLE) != 0)) | ||||
| #define BASE_EDITABLE_BGMODE(base) ( \ | #define BASE_EDITABLE_BGMODE(base) ( \ | ||||
| ((base)->object->id.lib == NULL) && \ | ((base)->object->id.lib == NULL) && \ | ||||
| (((base)->flag & BASE_VISIBLE) != 0)) | (((base)->flag & BASE_VISIBLE) != 0)) | ||||
| #define BASE_SELECTABLE(base) \ | #define BASE_SELECTABLE(base) \ | ||||
| (((base)->flag & BASE_SELECTABLE) != 0) | (((base)->flag & BASE_SELECTABLE) != 0) | ||||
| #define BASE_VISIBLE(base) ( \ | #define BASE_VISIBLE(base) ( \ | ||||
| ((base)->flag & BASE_VISIBLE) != 0) | ((base)->flag & BASE_VISIBLE) != 0) | ||||
| #define FIRSTBASE(_view_layer) ((_view_layer)->object_bases.first) | #define FIRSTBASE(_view_layer) ((_view_layer)->object_bases.first) | ||||
| #define LASTBASE(_view_layer) ((_view_layer)->object_bases.last) | #define LASTBASE(_view_layer) ((_view_layer)->object_bases.last) | ||||
| #define BASACT(_view_layer) ((_view_layer)->basact) | #define BASACT(_view_layer) ((_view_layer)->basact) | ||||
| #define OBACT(_view_layer) (BASACT(_view_layer) ? BASACT(_view_layer)->object: NULL) | #define OBACT(_view_layer) (BASACT(_view_layer) ? BASACT(_view_layer)->object : NULL) | ||||
| #define OBEDIT_FROM_WORKSPACE(workspace, _view_layer) \ | #define OBEDIT_FROM_WORKSPACE(workspace, _view_layer) \ | ||||
| (((workspace)->object_mode & OD_MODE_EDIT) ? OBACT(_view_layer) : NULL) | (((workspace)->object_mode & OD_MODE_EDIT) ? OBACT(_view_layer) : NULL) | ||||
| #define OBEDIT_FROM_OBACT(ob) \ | #define OBEDIT_FROM_OBACT(ob) \ | ||||
| ((ob) ? (((ob)->mode & OB_MODE_EDIT) ? ob : NULL) : NULL) | ((ob) ? (((ob)->mode & OB_MODE_EDIT) ? ob : NULL) : NULL) | ||||
| #define OBPOSE_FROM_OBACT(ob) \ | #define OBPOSE_FROM_OBACT(ob) \ | ||||
| ((ob) ? (((ob)->mode & OB_MODE_POSE) ? ob : NULL) : NULL) | ((ob) ? (((ob)->mode & OB_MODE_POSE) ? ob : NULL) : NULL) | ||||
| #define OBEDIT_FROM_VIEW_LAYER(view_layer) \ | #define OBEDIT_FROM_VIEW_LAYER(view_layer) \ | ||||
| OBEDIT_FROM_OBACT(OBACT(view_layer)) | OBEDIT_FROM_OBACT(OBACT(view_layer)) | ||||
| #define V3D_CAMERA_LOCAL(v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : NULL) | #define V3D_CAMERA_LOCAL(v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : NULL) | ||||
| #define V3D_CAMERA_SCENE(scene, v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : (scene)->camera) | #define V3D_CAMERA_SCENE(scene, v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : (scene)->camera) | ||||
| #define CFRA (scene->r.cfra) | #define CFRA (scene->r.cfra) | ||||
| #define SUBFRA (scene->r.subframe) | #define SUBFRA (scene->r.subframe) | ||||
| #define SFRA (scene->r.sfra) | #define SFRA (scene->r.sfra) | ||||
| #define EFRA (scene->r.efra) | #define EFRA (scene->r.efra) | ||||
| #define PRVRANGEON (scene->r.flag & SCER_PRV_RANGE) | #define PRVRANGEON (scene->r.flag & SCER_PRV_RANGE) | ||||
| #define PSFRA ((PRVRANGEON) ? (scene->r.psfra) : (scene->r.sfra)) | #define PSFRA ((PRVRANGEON) ? (scene->r.psfra) : (scene->r.sfra)) | ||||
| #define PEFRA ((PRVRANGEON) ? (scene->r.pefra) : (scene->r.efra)) | #define PEFRA ((PRVRANGEON) ? (scene->r.pefra) : (scene->r.efra)) | ||||
| #define FRA2TIME(a) ((((double) scene->r.frs_sec_base) * (double)(a)) / (double)scene->r.frs_sec) | #define FRA2TIME(a) ((((double)scene->r.frs_sec_base) * (double)(a)) / (double)scene->r.frs_sec) | ||||
| #define TIME2FRA(a) ((((double) scene->r.frs_sec) * (double)(a)) / (double)scene->r.frs_sec_base) | #define TIME2FRA(a) ((((double)scene->r.frs_sec) * (double)(a)) / (double)scene->r.frs_sec_base) | ||||
| #define FPS (((double) scene->r.frs_sec) / (double)scene->r.frs_sec_base) | #define FPS (((double)scene->r.frs_sec) / (double)scene->r.frs_sec_base) | ||||
| /* Base.flag is in DNA_object_types.h */ | /* Base.flag is in DNA_object_types.h */ | ||||
| /* ToolSettings.transform_flag */ | /* ToolSettings.transform_flag */ | ||||
| enum { | enum { | ||||
| SCE_XFORM_AXIS_ALIGN = (1 << 0), | SCE_XFORM_AXIS_ALIGN = (1 << 0), | ||||
| }; | }; | ||||
| /* ToolSettings.object_flag */ | /* ToolSettings.object_flag */ | ||||
| enum { | enum { | ||||
| SCE_OBJECT_MODE_LOCK = (1 << 0), | SCE_OBJECT_MODE_LOCK = (1 << 0), | ||||
| }; | }; | ||||
| /* ToolSettings.snap_flag */ | /* ToolSettings.snap_flag */ | ||||
| #define SCE_SNAP 1 | #define SCE_SNAP 1 | ||||
| #define SCE_SNAP_ROTATE 2 | #define SCE_SNAP_ROTATE 2 | ||||
| #define SCE_SNAP_PEEL_OBJECT 4 | #define SCE_SNAP_PEEL_OBJECT 4 | ||||
| #define SCE_SNAP_PROJECT 8 | #define SCE_SNAP_PROJECT 8 | ||||
| #define SCE_SNAP_NO_SELF 16 | #define SCE_SNAP_NO_SELF 16 | ||||
| #define SCE_SNAP_ABS_GRID 32 | #define SCE_SNAP_ABS_GRID 32 | ||||
| /* ToolSettings.snap_target */ | /* ToolSettings.snap_target */ | ||||
| #define SCE_SNAP_TARGET_CLOSEST 0 | #define SCE_SNAP_TARGET_CLOSEST 0 | ||||
| #define SCE_SNAP_TARGET_CENTER 1 | #define SCE_SNAP_TARGET_CENTER 1 | ||||
| #define SCE_SNAP_TARGET_MEDIAN 2 | #define SCE_SNAP_TARGET_MEDIAN 2 | ||||
| #define SCE_SNAP_TARGET_ACTIVE 3 | #define SCE_SNAP_TARGET_ACTIVE 3 | ||||
| /* ToolSettings.snap_mode */ | /* ToolSettings.snap_mode */ | ||||
| #define SCE_SNAP_MODE_VERTEX (1 << 0) | #define SCE_SNAP_MODE_VERTEX (1 << 0) | ||||
| #define SCE_SNAP_MODE_EDGE (1 << 1) | #define SCE_SNAP_MODE_EDGE (1 << 1) | ||||
| #define SCE_SNAP_MODE_FACE (1 << 2) | #define SCE_SNAP_MODE_FACE (1 << 2) | ||||
| #define SCE_SNAP_MODE_VOLUME (1 << 3) | #define SCE_SNAP_MODE_VOLUME (1 << 3) | ||||
| #define SCE_SNAP_MODE_INCREMENT (1 << 4) | #define SCE_SNAP_MODE_INCREMENT (1 << 4) | ||||
| /* ToolSettings.snap_node_mode */ | /* ToolSettings.snap_node_mode */ | ||||
| #define SCE_SNAP_MODE_GRID (1 << 5) | #define SCE_SNAP_MODE_GRID (1 << 5) | ||||
| #define SCE_SNAP_MODE_NODE_X (1 << 6) | #define SCE_SNAP_MODE_NODE_X (1 << 6) | ||||
| #define SCE_SNAP_MODE_NODE_Y (1 << 7) | #define SCE_SNAP_MODE_NODE_Y (1 << 7) | ||||
| /* ToolSettings.selectmode */ | /* ToolSettings.selectmode */ | ||||
| #define SCE_SELECT_VERTEX 1 /* for mesh */ | #define SCE_SELECT_VERTEX 1 /* for mesh */ | ||||
| #define SCE_SELECT_EDGE 2 | #define SCE_SELECT_EDGE 2 | ||||
| #define SCE_SELECT_FACE 4 | #define SCE_SELECT_FACE 4 | ||||
| /* MeshStatVis.type */ | /* MeshStatVis.type */ | ||||
| #define SCE_STATVIS_OVERHANG 0 | #define SCE_STATVIS_OVERHANG 0 | ||||
| #define SCE_STATVIS_THICKNESS 1 | #define SCE_STATVIS_THICKNESS 1 | ||||
| #define SCE_STATVIS_INTERSECT 2 | #define SCE_STATVIS_INTERSECT 2 | ||||
| #define SCE_STATVIS_DISTORT 3 | #define SCE_STATVIS_DISTORT 3 | ||||
| #define SCE_STATVIS_SHARP 4 | #define SCE_STATVIS_SHARP 4 | ||||
| /* ParticleEditSettings.selectmode for particles */ | /* ParticleEditSettings.selectmode for particles */ | ||||
| #define SCE_SELECT_PATH 1 | #define SCE_SELECT_PATH 1 | ||||
| #define SCE_SELECT_POINT 2 | #define SCE_SELECT_POINT 2 | ||||
| #define SCE_SELECT_END 4 | #define SCE_SELECT_END 4 | ||||
| /* ToolSettings.prop_mode (proportional falloff) */ | /* ToolSettings.prop_mode (proportional falloff) */ | ||||
| #define PROP_SMOOTH 0 | #define PROP_SMOOTH 0 | ||||
| #define PROP_SPHERE 1 | #define PROP_SPHERE 1 | ||||
| #define PROP_ROOT 2 | #define PROP_ROOT 2 | ||||
| #define PROP_SHARP 3 | #define PROP_SHARP 3 | ||||
| #define PROP_LIN 4 | #define PROP_LIN 4 | ||||
| #define PROP_CONST 5 | #define PROP_CONST 5 | ||||
| #define PROP_RANDOM 6 | #define PROP_RANDOM 6 | ||||
| #define PROP_INVSQUARE 7 | #define PROP_INVSQUARE 7 | ||||
| #define PROP_MODE_MAX 8 | #define PROP_MODE_MAX 8 | ||||
| /* ToolSettings.proportional */ | /* ToolSettings.proportional */ | ||||
| #define PROP_EDIT_OFF 0 | #define PROP_EDIT_OFF 0 | ||||
| #define PROP_EDIT_ON 1 | #define PROP_EDIT_ON 1 | ||||
| #define PROP_EDIT_CONNECTED 2 | #define PROP_EDIT_CONNECTED 2 | ||||
| #define PROP_EDIT_PROJECTED 3 | #define PROP_EDIT_PROJECTED 3 | ||||
| /* ToolSettings.weightuser */ | /* ToolSettings.weightuser */ | ||||
| enum { | enum { | ||||
| OB_DRAW_GROUPUSER_NONE = 0, | OB_DRAW_GROUPUSER_NONE = 0, | ||||
| OB_DRAW_GROUPUSER_ACTIVE = 1, | OB_DRAW_GROUPUSER_ACTIVE = 1, | ||||
| OB_DRAW_GROUPUSER_ALL = 2 | OB_DRAW_GROUPUSER_ALL = 2 | ||||
| }; | }; | ||||
| Show All 18 Lines | #define WT_VGROUP_MASK_ALL \ | ||||
| ((1 << WT_VGROUP_ACTIVE) | \ | ((1 << WT_VGROUP_ACTIVE) | \ | ||||
| (1 << WT_VGROUP_BONE_SELECT) | \ | (1 << WT_VGROUP_BONE_SELECT) | \ | ||||
| (1 << WT_VGROUP_BONE_DEFORM) | \ | (1 << WT_VGROUP_BONE_DEFORM) | \ | ||||
| (1 << WT_VGROUP_BONE_DEFORM_OFF) | \ | (1 << WT_VGROUP_BONE_DEFORM_OFF) | \ | ||||
| (1 << WT_VGROUP_ALL)) | (1 << WT_VGROUP_ALL)) | ||||
| /* Scene.flag */ | /* Scene.flag */ | ||||
| #define SCE_DS_SELECTED (1<<0) | #define SCE_DS_SELECTED (1 << 0) | ||||
| #define SCE_DS_COLLAPSED (1<<1) | #define SCE_DS_COLLAPSED (1 << 1) | ||||
| #define SCE_NLA_EDIT_ON (1<<2) | #define SCE_NLA_EDIT_ON (1 << 2) | ||||
| #define SCE_FRAME_DROP (1<<3) | #define SCE_FRAME_DROP (1 << 3) | ||||
| #define SCE_KEYS_NO_SELONLY (1<<4) | #define SCE_KEYS_NO_SELONLY (1 << 4) | ||||
| /* return flag BKE_scene_base_iter_next functions */ | /* return flag BKE_scene_base_iter_next functions */ | ||||
| /* #define F_ERROR -1 */ /* UNUSED */ | /* #define F_ERROR -1 */ /* UNUSED */ | ||||
| #define F_START 0 | #define F_START 0 | ||||
| #define F_SCENE 1 | #define F_SCENE 1 | ||||
| #define F_DUPLI 3 | #define F_DUPLI 3 | ||||
| /* AudioData.flag */ | /* AudioData.flag */ | ||||
| #define AUDIO_MUTE (1<<0) | #define AUDIO_MUTE (1 << 0) | ||||
| #define AUDIO_SYNC (1<<1) | #define AUDIO_SYNC (1 << 1) | ||||
| #define AUDIO_SCRUB (1<<2) | #define AUDIO_SCRUB (1 << 2) | ||||
| #define AUDIO_VOLUME_ANIMATED (1<<3) | #define AUDIO_VOLUME_ANIMATED (1 << 3) | ||||
| /* FFMpegCodecData.flags */ | /* FFMpegCodecData.flags */ | ||||
| enum { | enum { | ||||
| #ifdef DNA_DEPRECATED | #ifdef DNA_DEPRECATED | ||||
| FFMPEG_MULTIPLEX_AUDIO = 1, /* deprecated, you can choose none as audiocodec now */ | FFMPEG_MULTIPLEX_AUDIO = 1, /* deprecated, you can choose none as audiocodec now */ | ||||
| #endif | #endif | ||||
| FFMPEG_AUTOSPLIT_OUTPUT = 2, | FFMPEG_AUTOSPLIT_OUTPUT = 2, | ||||
| FFMPEG_LOSSLESS_OUTPUT = 4, | FFMPEG_LOSSLESS_OUTPUT = 4, | ||||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
| /* ImagePaintSettings.mode */ | /* ImagePaintSettings.mode */ | ||||
| typedef enum eImagePaintMode { | typedef enum eImagePaintMode { | ||||
| IMAGEPAINT_MODE_MATERIAL, /* detect texture paint slots from the material */ | IMAGEPAINT_MODE_MATERIAL, /* detect texture paint slots from the material */ | ||||
| IMAGEPAINT_MODE_IMAGE, /* select texture paint image directly */ | IMAGEPAINT_MODE_IMAGE, /* select texture paint image directly */ | ||||
| } eImagePaintMode; | } eImagePaintMode; | ||||
| /* ImagePaintSettings.flag */ | /* ImagePaintSettings.flag */ | ||||
| #define IMAGEPAINT_DRAWING 1 | #define IMAGEPAINT_DRAWING 1 | ||||
| // #define IMAGEPAINT_DRAW_TOOL 2 // deprecated | // #define IMAGEPAINT_DRAW_TOOL 2 // deprecated | ||||
| // #define IMAGEPAINT_DRAW_TOOL_DRAWING 4 // deprecated | // #define IMAGEPAINT_DRAW_TOOL_DRAWING 4 // deprecated | ||||
| /* projection painting only */ | /* projection painting only */ | ||||
| /* ImagePaintSettings.flag */ | /* ImagePaintSettings.flag */ | ||||
| #define IMAGEPAINT_PROJECT_XRAY (1 << 4) | #define IMAGEPAINT_PROJECT_XRAY (1 << 4) | ||||
| #define IMAGEPAINT_PROJECT_BACKFACE (1 << 5) | #define IMAGEPAINT_PROJECT_BACKFACE (1 << 5) | ||||
| #define IMAGEPAINT_PROJECT_FLAT (1 << 6) | #define IMAGEPAINT_PROJECT_FLAT (1 << 6) | ||||
| #define IMAGEPAINT_PROJECT_LAYER_CLONE (1 << 7) | #define IMAGEPAINT_PROJECT_LAYER_CLONE (1 << 7) | ||||
| #define IMAGEPAINT_PROJECT_LAYER_STENCIL (1 << 8) | #define IMAGEPAINT_PROJECT_LAYER_STENCIL (1 << 8) | ||||
| #define IMAGEPAINT_PROJECT_LAYER_STENCIL_INV (1 << 9) | #define IMAGEPAINT_PROJECT_LAYER_STENCIL_INV (1 << 9) | ||||
| /* ImagePaintSettings.missing_data */ | /* ImagePaintSettings.missing_data */ | ||||
| #define IMAGEPAINT_MISSING_UVS (1 << 0) | #define IMAGEPAINT_MISSING_UVS (1 << 0) | ||||
| #define IMAGEPAINT_MISSING_MATERIAL (1 << 1) | #define IMAGEPAINT_MISSING_MATERIAL (1 << 1) | ||||
| #define IMAGEPAINT_MISSING_TEX (1 << 2) | #define IMAGEPAINT_MISSING_TEX (1 << 2) | ||||
| #define IMAGEPAINT_MISSING_STENCIL (1 << 3) | #define IMAGEPAINT_MISSING_STENCIL (1 << 3) | ||||
| /* ToolSettings.uvcalc_flag */ | /* ToolSettings.uvcalc_flag */ | ||||
| #define UVCALC_FILLHOLES 1 | #define UVCALC_FILLHOLES 1 | ||||
| #define UVCALC_NO_ASPECT_CORRECT 2 /* would call this UVCALC_ASPECT_CORRECT, except it should be default with old file */ | #define UVCALC_NO_ASPECT_CORRECT 2 /* would call this UVCALC_ASPECT_CORRECT, except it should be default with old file */ | ||||
| #define UVCALC_TRANSFORM_CORRECT 4 /* adjust UV's while transforming to avoid distortion */ | #define UVCALC_TRANSFORM_CORRECT 4 /* adjust UV's while transforming to avoid distortion */ | ||||
| #define UVCALC_USESUBSURF 8 /* Use mesh data after subsurf to compute UVs*/ | #define UVCALC_USESUBSURF 8 /* Use mesh data after subsurf to compute UVs*/ | ||||
| /* ToolSettings.uv_flag */ | /* ToolSettings.uv_flag */ | ||||
| #define UV_SYNC_SELECTION 1 | #define UV_SYNC_SELECTION 1 | ||||
| #define UV_SHOW_SAME_IMAGE 2 | #define UV_SHOW_SAME_IMAGE 2 | ||||
| /* ToolSettings.uv_selectmode */ | /* ToolSettings.uv_selectmode */ | ||||
| #define UV_SELECT_VERTEX 1 | #define UV_SELECT_VERTEX 1 | ||||
| #define UV_SELECT_EDGE 2 | #define UV_SELECT_EDGE 2 | ||||
| #define UV_SELECT_FACE 4 | #define UV_SELECT_FACE 4 | ||||
| #define UV_SELECT_ISLAND 8 | #define UV_SELECT_ISLAND 8 | ||||
| /* ToolSettings.edge_mode */ | /* ToolSettings.edge_mode */ | ||||
| #define EDGE_MODE_SELECT 0 | #define EDGE_MODE_SELECT 0 | ||||
| #define EDGE_MODE_TAG_SEAM 1 | #define EDGE_MODE_TAG_SEAM 1 | ||||
| #define EDGE_MODE_TAG_SHARP 2 | #define EDGE_MODE_TAG_SHARP 2 | ||||
| #define EDGE_MODE_TAG_CREASE 3 | #define EDGE_MODE_TAG_CREASE 3 | ||||
| #define EDGE_MODE_TAG_BEVEL 4 | #define EDGE_MODE_TAG_BEVEL 4 | ||||
| #define EDGE_MODE_TAG_FREESTYLE 5 | #define EDGE_MODE_TAG_FREESTYLE 5 | ||||
| /* ToolSettings.gizmo_flag */ | /* ToolSettings.gizmo_flag */ | ||||
| #define SCE_MANIP_TRANSLATE 1 | #define SCE_MANIP_TRANSLATE 1 | ||||
| #define SCE_MANIP_ROTATE 2 | #define SCE_MANIP_ROTATE 2 | ||||
| #define SCE_MANIP_SCALE 4 | #define SCE_MANIP_SCALE 4 | ||||
| /* ToolSettings.gpencil_flags */ | /* ToolSettings.gpencil_flags */ | ||||
| typedef enum eGPencil_Flags { | typedef enum eGPencil_Flags { | ||||
| /* When creating new frames, the last frame gets used as the basis for the new one */ | /* When creating new frames, the last frame gets used as the basis for the new one */ | ||||
| GP_TOOL_FLAG_RETAIN_LAST = (1 << 1), | GP_TOOL_FLAG_RETAIN_LAST = (1 << 1), | ||||
| /* Add the strokes below all strokes in the layer */ | /* Add the strokes below all strokes in the layer */ | ||||
| GP_TOOL_FLAG_PAINT_ONBACK = (1 << 2), | GP_TOOL_FLAG_PAINT_ONBACK = (1 << 2), | ||||
| /* Show compact list of colors */ | /* Show compact list of colors */ | ||||
| Show All 20 Lines | |||||
| typedef enum eGPencil_Placement_Flags { | typedef enum eGPencil_Placement_Flags { | ||||
| /* New strokes are added in viewport/data space (i.e. not screen space) */ | /* New strokes are added in viewport/data space (i.e. not screen space) */ | ||||
| GP_PROJECT_VIEWSPACE = (1 << 0), | GP_PROJECT_VIEWSPACE = (1 << 0), | ||||
| /* Viewport space, but relative to render canvas (Sequencer Preview Only) */ | /* Viewport space, but relative to render canvas (Sequencer Preview Only) */ | ||||
| GP_PROJECT_CANVAS = (1 << 1), | GP_PROJECT_CANVAS = (1 << 1), | ||||
| /* Project into the screen's Z values */ | /* Project into the screen's Z values */ | ||||
| GP_PROJECT_DEPTH_VIEW = (1 << 2), | GP_PROJECT_DEPTH_VIEW = (1 << 2), | ||||
| GP_PROJECT_DEPTH_STROKE = (1 << 3), | GP_PROJECT_DEPTH_STROKE = (1 << 3), | ||||
| /* "Use Endpoints" */ | /* "Use Endpoints" */ | ||||
| GP_PROJECT_DEPTH_STROKE_ENDPOINTS = (1 << 4), | GP_PROJECT_DEPTH_STROKE_ENDPOINTS = (1 << 4), | ||||
| GP_PROJECT_CURSOR = (1 << 5), | GP_PROJECT_CURSOR = (1 << 5), | ||||
| } eGPencil_Placement_Flags; | } eGPencil_Placement_Flags; | ||||
| /* ToolSettings.particle flag */ | /* ToolSettings.particle flag */ | ||||
| #define PE_KEEP_LENGTHS 1 | #define PE_KEEP_LENGTHS 1 | ||||
| #define PE_LOCK_FIRST 2 | #define PE_LOCK_FIRST 2 | ||||
| #define PE_DEFLECT_EMITTER 4 | #define PE_DEFLECT_EMITTER 4 | ||||
| #define PE_INTERPOLATE_ADDED 8 | #define PE_INTERPOLATE_ADDED 8 | ||||
| #define PE_DRAW_PART 16 | #define PE_DRAW_PART 16 | ||||
| /* #define PE_X_MIRROR 64 */ /* deprecated */ | /* #define PE_X_MIRROR 64 */ /* deprecated */ | ||||
| #define PE_FADE_TIME 128 | #define PE_FADE_TIME 128 | ||||
| #define PE_AUTO_VELOCITY 256 | #define PE_AUTO_VELOCITY 256 | ||||
| /* ParticleEditSettings.brushtype */ | /* ParticleEditSettings.brushtype */ | ||||
| #define PE_BRUSH_NONE -1 | #define PE_BRUSH_NONE -1 | ||||
| #define PE_BRUSH_COMB 0 | #define PE_BRUSH_COMB 0 | ||||
| #define PE_BRUSH_CUT 1 | #define PE_BRUSH_CUT 1 | ||||
| #define PE_BRUSH_LENGTH 2 | #define PE_BRUSH_LENGTH 2 | ||||
| #define PE_BRUSH_PUFF 3 | #define PE_BRUSH_PUFF 3 | ||||
| #define PE_BRUSH_ADD 4 | #define PE_BRUSH_ADD 4 | ||||
| #define PE_BRUSH_SMOOTH 5 | #define PE_BRUSH_SMOOTH 5 | ||||
| #define PE_BRUSH_WEIGHT 6 | #define PE_BRUSH_WEIGHT 6 | ||||
| /* ParticleBrushData.flag */ | /* ParticleBrushData.flag */ | ||||
| #define PE_BRUSH_DATA_PUFF_VOLUME 1 | #define PE_BRUSH_DATA_PUFF_VOLUME 1 | ||||
| /* ParticleBrushData.edittype */ | /* ParticleBrushData.edittype */ | ||||
| #define PE_TYPE_PARTICLES 0 | #define PE_TYPE_PARTICLES 0 | ||||
| #define PE_TYPE_SOFTBODY 1 | #define PE_TYPE_SOFTBODY 1 | ||||
| #define PE_TYPE_CLOTH 2 | #define PE_TYPE_CLOTH 2 | ||||
| /* PhysicsSettings.flag */ | /* PhysicsSettings.flag */ | ||||
| #define PHYS_GLOBAL_GRAVITY 1 | #define PHYS_GLOBAL_GRAVITY 1 | ||||
| /* UnitSettings */ | /* UnitSettings */ | ||||
| /* UnitSettings.system */ | /* UnitSettings.system */ | ||||
| #define USER_UNIT_NONE 0 | #define USER_UNIT_NONE 0 | ||||
| #define USER_UNIT_METRIC 1 | #define USER_UNIT_METRIC 1 | ||||
| #define USER_UNIT_IMPERIAL 2 | #define USER_UNIT_IMPERIAL 2 | ||||
| /* UnitSettings.flag */ | /* UnitSettings.flag */ | ||||
| #define USER_UNIT_OPT_SPLIT 1 | #define USER_UNIT_OPT_SPLIT 1 | ||||
| #define USER_UNIT_ROT_RADIANS 2 | #define USER_UNIT_ROT_RADIANS 2 | ||||
| /* SceneEEVEE->flag */ | /* SceneEEVEE->flag */ | ||||
| enum { | enum { | ||||
| SCE_EEVEE_VOLUMETRIC_ENABLED = (1 << 0), | SCE_EEVEE_VOLUMETRIC_ENABLED = (1 << 0), | ||||
| SCE_EEVEE_VOLUMETRIC_LIGHTS = (1 << 1), | SCE_EEVEE_VOLUMETRIC_LIGHTS = (1 << 1), | ||||
| SCE_EEVEE_VOLUMETRIC_SHADOWS = (1 << 2), | SCE_EEVEE_VOLUMETRIC_SHADOWS = (1 << 2), | ||||
| // SCE_EEVEE_VOLUMETRIC_COLORED = (1 << 3), /* Unused */ | // SCE_EEVEE_VOLUMETRIC_COLORED = (1 << 3), /* Unused */ | ||||
| SCE_EEVEE_GTAO_ENABLED = (1 << 4), | SCE_EEVEE_GTAO_ENABLED = (1 << 4), | ||||
| SCE_EEVEE_GTAO_BENT_NORMALS = (1 << 5), | SCE_EEVEE_GTAO_BENT_NORMALS = (1 << 5), | ||||
| SCE_EEVEE_GTAO_BOUNCE = (1 << 6), | SCE_EEVEE_GTAO_BOUNCE = (1 << 6), | ||||
| SCE_EEVEE_DOF_ENABLED = (1 << 7), | SCE_EEVEE_DOF_ENABLED = (1 << 7), | ||||
| SCE_EEVEE_BLOOM_ENABLED = (1 << 8), | SCE_EEVEE_BLOOM_ENABLED = (1 << 8), | ||||
| SCE_EEVEE_MOTION_BLUR_ENABLED = (1 << 9), | SCE_EEVEE_MOTION_BLUR_ENABLED = (1 << 9), | ||||
| SCE_EEVEE_SHADOW_HIGH_BITDEPTH = (1 << 10), | SCE_EEVEE_SHADOW_HIGH_BITDEPTH = (1 << 10), | ||||
| SCE_EEVEE_TAA_REPROJECTION = (1 << 11), | SCE_EEVEE_TAA_REPROJECTION = (1 << 11), | ||||
| SCE_EEVEE_SSS_ENABLED = (1 << 12), | SCE_EEVEE_SSS_ENABLED = (1 << 12), | ||||
| SCE_EEVEE_SSS_SEPARATE_ALBEDO = (1 << 13), | SCE_EEVEE_SSS_SEPARATE_ALBEDO = (1 << 13), | ||||
| SCE_EEVEE_SSR_ENABLED = (1 << 14), | SCE_EEVEE_SSR_ENABLED = (1 << 14), | ||||
| SCE_EEVEE_SSR_REFRACTION = (1 << 15), | SCE_EEVEE_SSR_REFRACTION = (1 << 15), | ||||
| SCE_EEVEE_SSR_HALF_RESOLUTION = (1 << 16), | SCE_EEVEE_SSR_HALF_RESOLUTION = (1 << 16), | ||||
| SCE_EEVEE_SHOW_IRRADIANCE = (1 << 17), | SCE_EEVEE_SHOW_IRRADIANCE = (1 << 17), | ||||
| SCE_EEVEE_SHOW_CUBEMAPS = (1 << 18), | SCE_EEVEE_SHOW_CUBEMAPS = (1 << 18), | ||||
| SCE_EEVEE_GI_AUTOBAKE = (1 << 19), | SCE_EEVEE_GI_AUTOBAKE = (1 << 19), | ||||
| }; | }; | ||||
| /* SceneEEVEE->shadow_method */ | /* SceneEEVEE->shadow_method */ | ||||
| enum { | enum { | ||||
| SHADOW_ESM = 1, | SHADOW_ESM = 1, | ||||
| SHADOW_VSM = 2, | SHADOW_VSM = 2, | ||||
| SHADOW_METHOD_MAX = 3, | SHADOW_METHOD_MAX = 3, | ||||
| }; | }; | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __DNA_SCENE_TYPES_H__ */ | #endif /* __DNA_SCENE_TYPES_H__ */ | ||||
snake_case only