2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * Contributor(s): Blender Foundation (2009)
20 * ***** END GPL LICENSE BLOCK *****
23 /** \file blender/makesrna/intern/rna_render.c
29 #include "DNA_scene_types.h"
31 #include "BLI_path_util.h"
33 #include "RNA_define.h"
34 #include "RNA_enum_types.h"
36 #include "rna_internal.h"
38 #include "RE_engine.h"
39 #include "RE_pipeline.h"
44 #include "MEM_guardedalloc.h"
46 #include "RNA_access.h"
48 #include "BKE_context.h"
49 #include "BKE_report.h"
51 /* RenderEngine Callbacks */
53 static void engine_tag_redraw(RenderEngine *engine)
55 engine->flag |= RE_ENGINE_DO_DRAW;
58 static void engine_tag_update(RenderEngine *engine)
60 engine->flag |= RE_ENGINE_DO_UPDATE;
63 static void engine_update(RenderEngine *engine, Main *bmain, Scene *scene)
65 extern FunctionRNA rna_RenderEngine_update_func;
70 RNA_pointer_create(NULL, engine->type->ext.srna, engine, &ptr);
71 func = &rna_RenderEngine_update_func;
73 RNA_parameter_list_create(&list, &ptr, func);
74 RNA_parameter_set_lookup(&list, "data", &bmain);
75 RNA_parameter_set_lookup(&list, "scene", &scene);
76 engine->type->ext.call(NULL, &ptr, func, &list);
78 RNA_parameter_list_free(&list);
81 static void engine_render(RenderEngine *engine, struct Scene *scene)
83 extern FunctionRNA rna_RenderEngine_render_func;
88 RNA_pointer_create(NULL, engine->type->ext.srna, engine, &ptr);
89 func = &rna_RenderEngine_render_func;
91 RNA_parameter_list_create(&list, &ptr, func);
92 RNA_parameter_set_lookup(&list, "scene", &scene);
93 engine->type->ext.call(NULL, &ptr, func, &list);
95 RNA_parameter_list_free(&list);
98 static void engine_view_update(RenderEngine *engine, const struct bContext *context)
100 extern FunctionRNA rna_RenderEngine_view_update_func;
105 RNA_pointer_create(NULL, engine->type->ext.srna, engine, &ptr);
106 func = &rna_RenderEngine_view_update_func;
108 RNA_parameter_list_create(&list, &ptr, func);
109 RNA_parameter_set_lookup(&list, "context", &context);
110 engine->type->ext.call(NULL, &ptr, func, &list);
112 RNA_parameter_list_free(&list);
115 static void engine_view_draw(RenderEngine *engine, const struct bContext *context)
117 extern FunctionRNA rna_RenderEngine_view_draw_func;
122 RNA_pointer_create(NULL, engine->type->ext.srna, engine, &ptr);
123 func = &rna_RenderEngine_view_draw_func;
125 RNA_parameter_list_create(&list, &ptr, func);
126 RNA_parameter_set_lookup(&list, "context", &context);
127 engine->type->ext.call(NULL, &ptr, func, &list);
129 RNA_parameter_list_free(&list);
132 /* RenderEngine registration */
134 static void rna_RenderEngine_unregister(Main *UNUSED(bmain), StructRNA *type)
136 RenderEngineType *et = RNA_struct_blender_type_get(type);
141 RNA_struct_free_extension(type, &et->ext);
142 BLI_freelinkN(&R_engines, et);
143 RNA_struct_free(&BLENDER_RNA, type);
146 static StructRNA *rna_RenderEngine_register(Main *bmain, ReportList *reports, void *data, const char *identifier,
147 StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free)
149 RenderEngineType *et, dummyet = {NULL};
150 RenderEngine dummyengine = {NULL};
152 int have_function[4];
154 /* setup dummy engine & engine type to store static properties in */
155 dummyengine.type = &dummyet;
156 RNA_pointer_create(NULL, &RNA_RenderEngine, &dummyengine, &dummyptr);
158 /* validate the python class */
159 if (validate(&dummyptr, data, have_function) != 0)
162 if (strlen(identifier) >= sizeof(dummyet.idname)) {
163 BKE_reportf(reports, RPT_ERROR, "registering render engine class: '%s' is too long, maximum length is %d",
164 identifier, (int)sizeof(dummyet.idname));
168 /* check if we have registered this engine type before, and remove it */
169 for (et = R_engines.first; et; et = et->next) {
170 if (strcmp(et->idname, dummyet.idname) == 0) {
172 rna_RenderEngine_unregister(bmain, et->ext.srna);
177 /* create a new engine type */
178 et = MEM_callocN(sizeof(RenderEngineType), "python render engine");
179 memcpy(et, &dummyet, sizeof(dummyet));
181 et->ext.srna = RNA_def_struct(&BLENDER_RNA, et->idname, "RenderEngine");
185 RNA_struct_blender_type_set(et->ext.srna, et);
187 et->update = (have_function[0]) ? engine_update : NULL;
188 et->render = (have_function[1]) ? engine_render : NULL;
189 et->view_update = (have_function[2]) ? engine_view_update : NULL;
190 et->view_draw = (have_function[3]) ? engine_view_draw : NULL;
192 BLI_addtail(&R_engines, et);
197 static void **rna_RenderEngine_instance(PointerRNA *ptr)
199 RenderEngine *engine = ptr->data;
200 return &engine->py_instance;
203 static StructRNA *rna_RenderEngine_refine(PointerRNA *ptr)
205 RenderEngine *engine = (RenderEngine *)ptr->data;
206 return (engine->type && engine->type->ext.srna) ? engine->type->ext.srna : &RNA_RenderEngine;
209 static void rna_RenderResult_layers_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
211 RenderResult *rr = (RenderResult *)ptr->data;
212 rna_iterator_listbase_begin(iter, &rr->layers, NULL);
215 static void rna_RenderLayer_passes_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
217 RenderLayer *rl = (RenderLayer *)ptr->data;
218 rna_iterator_listbase_begin(iter, &rl->passes, NULL);
221 static int rna_RenderLayer_rect_get_length(PointerRNA *ptr, int length[RNA_MAX_ARRAY_DIMENSION])
223 RenderLayer *rl = (RenderLayer *)ptr->data;
225 length[0] = rl->rectx * rl->recty;
228 return length[0] * length[1];
231 static void rna_RenderLayer_rect_get(PointerRNA *ptr, float *values)
233 RenderLayer *rl = (RenderLayer *)ptr->data;
234 memcpy(values, rl->rectf, sizeof(float) * rl->rectx * rl->recty * 4);
237 static void rna_RenderLayer_rect_set(PointerRNA *ptr, const float *values)
239 RenderLayer *rl = (RenderLayer *)ptr->data;
240 memcpy(rl->rectf, values, sizeof(float) * rl->rectx * rl->recty * 4);
243 static int rna_RenderPass_rect_get_length(PointerRNA *ptr, int length[RNA_MAX_ARRAY_DIMENSION])
245 RenderPass *rpass = (RenderPass *)ptr->data;
247 length[0] = rpass->rectx * rpass->recty;
248 length[1] = rpass->channels;
250 return length[0] * length[1];
253 static void rna_RenderPass_rect_get(PointerRNA *ptr, float *values)
255 RenderPass *rpass = (RenderPass *)ptr->data;
256 memcpy(values, rpass->rect, sizeof(float) * rpass->rectx * rpass->recty * rpass->channels);
259 static void rna_RenderPass_rect_set(PointerRNA *ptr, const float *values)
261 RenderPass *rpass = (RenderPass *)ptr->data;
262 memcpy(rpass->rect, values, sizeof(float) * rpass->rectx * rpass->recty * rpass->channels);
265 #else /* RNA_RUNTIME */
267 static void rna_def_render_engine(BlenderRNA *brna)
273 srna = RNA_def_struct(brna, "RenderEngine", NULL);
274 RNA_def_struct_sdna(srna, "RenderEngine");
275 RNA_def_struct_ui_text(srna, "Render Engine", "Render engine");
276 RNA_def_struct_refine_func(srna, "rna_RenderEngine_refine");
277 RNA_def_struct_register_funcs(srna, "rna_RenderEngine_register", "rna_RenderEngine_unregister",
278 "rna_RenderEngine_instance");
280 /* final render callbacks */
281 func = RNA_def_function(srna, "update", NULL);
282 RNA_def_function_ui_description(func, "Export scene data for render");
283 RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
284 RNA_def_pointer(func, "data", "BlendData", "", "");
285 RNA_def_pointer(func, "scene", "Scene", "", "");
287 func = RNA_def_function(srna, "render", NULL);
288 RNA_def_function_ui_description(func, "Render scene into an image");
289 RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
290 RNA_def_pointer(func, "scene", "Scene", "", "");
292 /* viewport render callbacks */
293 func = RNA_def_function(srna, "view_update", NULL);
294 RNA_def_function_ui_description(func, "Update on data changes for viewport render");
295 RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
296 RNA_def_pointer(func, "context", "Context", "", "");
298 func = RNA_def_function(srna, "view_draw", NULL);
299 RNA_def_function_ui_description(func, "Draw viewport render");
300 RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
301 RNA_def_pointer(func, "context", "Context", "", "");
304 RNA_def_function(srna, "tag_redraw", "engine_tag_redraw");
305 RNA_def_function_ui_description(func, "Request redraw for viewport rendering");
308 RNA_def_function(srna, "tag_update", "engine_tag_update");
309 RNA_def_function_ui_description(func, "Request update call for viewport rendering");
311 func = RNA_def_function(srna, "begin_result", "RE_engine_begin_result");
312 prop = RNA_def_int(func, "x", 0, 0, INT_MAX, "X", "", 0, INT_MAX);
313 RNA_def_property_flag(prop, PROP_REQUIRED);
314 prop = RNA_def_int(func, "y", 0, 0, INT_MAX, "Y", "", 0, INT_MAX);
315 RNA_def_property_flag(prop, PROP_REQUIRED);
316 prop = RNA_def_int(func, "w", 0, 0, INT_MAX, "Width", "", 0, INT_MAX);
317 RNA_def_property_flag(prop, PROP_REQUIRED);
318 prop = RNA_def_int(func, "h", 0, 0, INT_MAX, "Height", "", 0, INT_MAX);
319 RNA_def_property_flag(prop, PROP_REQUIRED);
320 RNA_def_string(func, "layer", "", 0, "Layer", "Single layer to get render result for"); /* NULL ok here */
321 prop = RNA_def_pointer(func, "result", "RenderResult", "Result", "");
322 RNA_def_function_return(func, prop);
324 func = RNA_def_function(srna, "update_result", "RE_engine_update_result");
325 prop = RNA_def_pointer(func, "result", "RenderResult", "Result", "");
326 RNA_def_property_flag(prop, PROP_REQUIRED);
328 func = RNA_def_function(srna, "end_result", "RE_engine_end_result");
329 prop = RNA_def_pointer(func, "result", "RenderResult", "Result", "");
330 RNA_def_property_flag(prop, PROP_REQUIRED);
331 prop = RNA_def_boolean(func, "cancel", 0, "Cancel", "Don't merge back results");
332 RNA_def_property_flag(prop, PROP_REQUIRED);
334 func = RNA_def_function(srna, "test_break", "RE_engine_test_break");
335 prop = RNA_def_boolean(func, "do_break", 0, "Break", "");
336 RNA_def_function_return(func, prop);
338 func = RNA_def_function(srna, "update_stats", "RE_engine_update_stats");
339 prop = RNA_def_string(func, "stats", "", 0, "Stats", "");
340 RNA_def_property_flag(prop, PROP_REQUIRED);
341 prop = RNA_def_string(func, "info", "", 0, "Info", "");
342 RNA_def_property_flag(prop, PROP_REQUIRED);
344 func = RNA_def_function(srna, "update_progress", "RE_engine_update_progress");
345 prop = RNA_def_float(func, "progress", 0, 0.0f, 1.0f, "", "Percentage of render that's done", 0.0f, 1.0f);
346 RNA_def_property_flag(prop, PROP_REQUIRED);
348 func = RNA_def_function(srna, "report", "RE_engine_report");
349 prop = RNA_def_enum_flag(func, "type", wm_report_items, 0, "Type", "");
350 RNA_def_property_flag(prop, PROP_REQUIRED);
351 prop = RNA_def_string(func, "message", "", 0, "Report Message", "");
352 RNA_def_property_flag(prop, PROP_REQUIRED);
354 RNA_define_verify_sdna(0);
356 prop = RNA_def_property(srna, "is_animation", PROP_BOOLEAN, PROP_NONE);
357 RNA_def_property_boolean_sdna(prop, NULL, "flag", RE_ENGINE_ANIMATION);
359 prop = RNA_def_property(srna, "is_preview", PROP_BOOLEAN, PROP_NONE);
360 RNA_def_property_boolean_sdna(prop, NULL, "flag", RE_ENGINE_PREVIEW);
362 prop = RNA_def_property(srna, "camera_override", PROP_POINTER, PROP_NONE);
363 RNA_def_property_pointer_sdna(prop, NULL, "camera_override");
364 RNA_def_property_struct_type(prop, "Object");
366 prop = RNA_def_property(srna, "tile_x", PROP_INT, PROP_UNSIGNED);
367 RNA_def_property_int_sdna(prop, NULL, "tile_x");
368 prop = RNA_def_property(srna, "tile_y", PROP_INT, PROP_UNSIGNED);
369 RNA_def_property_int_sdna(prop, NULL, "tile_y");
371 prop = RNA_def_property(srna, "resolution_x", PROP_INT, PROP_NONE);
372 RNA_def_property_int_sdna(prop, NULL, "resolution_x");
373 RNA_def_property_clear_flag(prop, PROP_EDITABLE);
375 prop = RNA_def_property(srna, "resolution_y", PROP_INT, PROP_NONE);
376 RNA_def_property_int_sdna(prop, NULL, "resolution_y");
377 RNA_def_property_clear_flag(prop, PROP_EDITABLE);
381 prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
382 RNA_def_property_string_sdna(prop, NULL, "type->idname");
383 RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
385 prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_TRANSLATE);
386 RNA_def_property_string_sdna(prop, NULL, "type->name");
387 RNA_def_property_flag(prop, PROP_REGISTER);
389 prop = RNA_def_property(srna, "bl_use_preview", PROP_BOOLEAN, PROP_NONE);
390 RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_PREVIEW);
391 RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
393 prop = RNA_def_property(srna, "bl_use_postprocess", PROP_BOOLEAN, PROP_NONE);
394 RNA_def_property_boolean_negative_sdna(prop, NULL, "type->flag", RE_USE_POSTPROCESS);
395 RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
397 prop = RNA_def_property(srna, "bl_use_shading_nodes", PROP_BOOLEAN, PROP_NONE);
398 RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_SHADING_NODES);
399 RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
401 RNA_define_verify_sdna(1);
404 static void rna_def_render_result(BlenderRNA *brna)
410 srna = RNA_def_struct(brna, "RenderResult", NULL);
411 RNA_def_struct_ui_text(srna, "Render Result", "Result of rendering, including all layers and passes");
413 func = RNA_def_function(srna, "load_from_file", "RE_result_load_from_file");
414 RNA_def_function_ui_description(func, "Copies the pixels of this render result from an image file");
415 RNA_def_function_flag(func, FUNC_USE_REPORTS);
416 parm = RNA_def_string_file_name(func, "filename", "", FILE_MAX, "File Name",
417 "Filename to load into this render tile, must be no smaller than "
418 "the render result");
419 RNA_def_property_flag(parm, PROP_REQUIRED);
421 RNA_define_verify_sdna(0);
423 parm = RNA_def_property(srna, "resolution_x", PROP_INT, PROP_NONE);
424 RNA_def_property_int_sdna(parm, NULL, "rectx");
425 RNA_def_property_clear_flag(parm, PROP_EDITABLE);
427 parm = RNA_def_property(srna, "resolution_y", PROP_INT, PROP_NONE);
428 RNA_def_property_int_sdna(parm, NULL, "recty");
429 RNA_def_property_clear_flag(parm, PROP_EDITABLE);
431 parm = RNA_def_property(srna, "layers", PROP_COLLECTION, PROP_NONE);
432 RNA_def_property_struct_type(parm, "RenderLayer");
433 RNA_def_property_collection_funcs(parm, "rna_RenderResult_layers_begin", "rna_iterator_listbase_next",
434 "rna_iterator_listbase_end", "rna_iterator_listbase_get",
435 NULL, NULL, NULL, NULL);
437 RNA_define_verify_sdna(1);
440 static void rna_def_render_layer(BlenderRNA *brna)
446 srna = RNA_def_struct(brna, "RenderLayer", NULL);
447 RNA_def_struct_ui_text(srna, "Render Layer", "");
449 func = RNA_def_function(srna, "load_from_file", "RE_layer_load_from_file");
450 RNA_def_function_ui_description(func, "Copies the pixels of this renderlayer from an image file");
451 RNA_def_function_flag(func, FUNC_USE_REPORTS);
452 prop = RNA_def_string(func, "filename", "", 0, "Filename",
453 "Filename to load into this render tile, must be no smaller than the renderlayer");
454 RNA_def_property_flag(prop, PROP_REQUIRED);
455 RNA_def_int(func, "x", 0, 0, INT_MAX, "Offset X",
456 "Offset the position to copy from if the image is larger than the render layer", 0, INT_MAX);
457 RNA_def_int(func, "y", 0, 0, INT_MAX, "Offset Y",
458 "Offset the position to copy from if the image is larger than the render layer", 0, INT_MAX);
460 RNA_define_verify_sdna(0);
462 rna_def_render_layer_common(srna, 0);
464 prop = RNA_def_property(srna, "passes", PROP_COLLECTION, PROP_NONE);
465 RNA_def_property_struct_type(prop, "RenderPass");
466 RNA_def_property_collection_funcs(prop, "rna_RenderLayer_passes_begin", "rna_iterator_listbase_next",
467 "rna_iterator_listbase_end", "rna_iterator_listbase_get",
468 NULL, NULL, NULL, NULL);
470 prop = RNA_def_property(srna, "rect", PROP_FLOAT, PROP_NONE);
471 RNA_def_property_flag(prop, PROP_DYNAMIC);
472 RNA_def_property_multi_array(prop, 2, NULL);
473 RNA_def_property_dynamic_array_funcs(prop, "rna_RenderLayer_rect_get_length");
474 RNA_def_property_float_funcs(prop, "rna_RenderLayer_rect_get", "rna_RenderLayer_rect_set", NULL);
476 RNA_define_verify_sdna(1);
479 static void rna_def_render_pass(BlenderRNA *brna)
484 static EnumPropertyItem pass_type_items[] = {
485 {SCE_PASS_COMBINED, "COMBINED", 0, "Combined", ""},
486 {SCE_PASS_Z, "Z", 0, "Z", ""},
487 {SCE_PASS_RGBA, "COLOR", 0, "Color", ""},
488 {SCE_PASS_DIFFUSE, "DIFFUSE", 0, "Diffuse", ""},
489 {SCE_PASS_SPEC, "SPECULAR", 0, "Specular", ""},
490 {SCE_PASS_SHADOW, "SHADOW", 0, "Shadow", ""},
491 {SCE_PASS_AO, "AO", 0, "AO", ""},
492 {SCE_PASS_REFLECT, "REFLECTION", 0, "Reflection", ""},
493 {SCE_PASS_NORMAL, "NORMAL", 0, "Normal", ""},
494 {SCE_PASS_VECTOR, "VECTOR", 0, "Vector", ""},
495 {SCE_PASS_REFRACT, "REFRACTION", 0, "Refraction", ""},
496 {SCE_PASS_INDEXOB, "OBJECT_INDEX", 0, "Object Index", ""},
497 {SCE_PASS_UV, "UV", 0, "UV", ""},
498 {SCE_PASS_MIST, "MIST", 0, "Mist", ""},
499 {SCE_PASS_EMIT, "EMIT", 0, "Emit", ""},
500 {SCE_PASS_ENVIRONMENT, "ENVIRONMENT", 0, "Environment", ""},
501 {SCE_PASS_INDEXMA, "MATERIAL_INDEX", 0, "Material Index", ""},
502 {SCE_PASS_DIFFUSE_DIRECT, "DIFFUSE_DIRECT", 0, "Diffuse Direct", ""},
503 {SCE_PASS_DIFFUSE_INDIRECT, "DIFFUSE_INDIRECT", 0, "Diffuse Indirect", ""},
504 {SCE_PASS_DIFFUSE_COLOR, "DIFFUSE_COLOR", 0, "Diffuse Color", ""},
505 {SCE_PASS_GLOSSY_DIRECT, "GLOSSY_DIRECT", 0, "Glossy Direct", ""},
506 {SCE_PASS_GLOSSY_INDIRECT, "GLOSSY_INDIRECT", 0, "Glossy Indirect", ""},
507 {SCE_PASS_GLOSSY_COLOR, "GLOSSY_COLOR", 0, "Glossy Color", ""},
508 {SCE_PASS_TRANSM_DIRECT, "TRANSMISSION_DIRECT", 0, "Transmission Direct", ""},
509 {SCE_PASS_TRANSM_INDIRECT, "TRANSMISSION_INDIRECT", 0, "Transmission Indirect", ""},
510 {SCE_PASS_TRANSM_COLOR, "TRANSMISSION_COLOR", 0, "Transmission Color", ""},
511 {0, NULL, 0, NULL, NULL}
514 srna = RNA_def_struct(brna, "RenderPass", NULL);
515 RNA_def_struct_ui_text(srna, "Render Pass", "");
517 RNA_define_verify_sdna(0);
519 prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
520 RNA_def_property_string_sdna(prop, NULL, "name");
521 RNA_def_property_clear_flag(prop, PROP_EDITABLE);
522 RNA_def_struct_name_property(srna, prop);
524 prop = RNA_def_property(srna, "channel_id", PROP_STRING, PROP_NONE);
525 RNA_def_property_string_sdna(prop, NULL, "chan_id");
526 RNA_def_property_clear_flag(prop, PROP_EDITABLE);
528 prop = RNA_def_property(srna, "channels", PROP_INT, PROP_NONE);
529 RNA_def_property_int_sdna(prop, NULL, "channels");
530 RNA_def_property_clear_flag(prop, PROP_EDITABLE);
532 prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
533 RNA_def_property_enum_sdna(prop, NULL, "passtype");
534 RNA_def_property_enum_items(prop, pass_type_items);
535 RNA_def_property_clear_flag(prop, PROP_EDITABLE);
537 prop = RNA_def_property(srna, "rect", PROP_FLOAT, PROP_NONE);
538 RNA_def_property_flag(prop, PROP_DYNAMIC);
539 RNA_def_property_multi_array(prop, 2, NULL);
540 RNA_def_property_dynamic_array_funcs(prop, "rna_RenderPass_rect_get_length");
541 RNA_def_property_float_funcs(prop, "rna_RenderPass_rect_get", "rna_RenderPass_rect_set", NULL);
543 RNA_define_verify_sdna(1);
546 void RNA_def_render(BlenderRNA *brna)
548 rna_def_render_engine(brna);
549 rna_def_render_result(brna);
550 rna_def_render_layer(brna);
551 rna_def_render_pass(brna);
554 #endif /* RNA_RUNTIME */