Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_render.c
| Show First 20 Lines • Show All 752 Lines • ▼ Show 20 Lines | static void rna_def_render_engine(BlenderRNA *brna) | ||||
| func = RNA_def_function(srna, "get_preview_pixel_size", "engine_get_preview_pixel_size"); | func = RNA_def_function(srna, "get_preview_pixel_size", "engine_get_preview_pixel_size"); | ||||
| RNA_def_function_ui_description(func, | RNA_def_function_ui_description(func, | ||||
| "Get the pixel size that should be used for preview rendering"); | "Get the pixel size that should be used for preview rendering"); | ||||
| parm = RNA_def_pointer(func, "scene", "Scene", "", ""); | parm = RNA_def_pointer(func, "scene", "Scene", "", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| parm = RNA_def_int(func, "pixel_size", 0, 1, 8, "Pixel Size", "", 1, 8); | parm = RNA_def_int(func, "pixel_size", 0, 1, 8, "Pixel Size", "", 1, 8); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| RNA_def_function(srna, "free_blender_memory", "RE_engine_free_blender_memory"); | func = RNA_def_function(srna, "free_blender_memory", "RE_engine_free_blender_memory"); | ||||
| RNA_def_function_ui_description(func, "Free Blender side memory of render engine"); | RNA_def_function_ui_description(func, "Free Blender side memory of render engine"); | ||||
| RNA_define_verify_sdna(0); | RNA_define_verify_sdna(0); | ||||
| prop = RNA_def_property(srna, "is_animation", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_animation", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", RE_ENGINE_ANIMATION); | RNA_def_property_boolean_sdna(prop, NULL, "flag", RE_ENGINE_ANIMATION); | ||||
| prop = RNA_def_property(srna, "is_preview", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_preview", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 349 Lines • Show Last 20 Lines | |||||