Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/external_engine.c
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
| #include "render_types.h" | #include "render_types.h" | ||||
| #include "render_result.h" | #include "render_result.h" | ||||
| /* Render Engine Types */ | /* Render Engine Types */ | ||||
| static RenderEngineType internal_render_type = { | static RenderEngineType internal_render_type = { | ||||
| NULL, NULL, | NULL, NULL, | ||||
| "BLENDER_RENDER", N_("Blender Render"), RE_INTERNAL, | "BLENDER_RENDER", N_("Blender Render"), RE_INTERNAL, | ||||
| NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | ||||
| {NULL, NULL, NULL} | {NULL, NULL, NULL} | ||||
| }; | }; | ||||
| #ifdef WITH_GAMEENGINE | #ifdef WITH_GAMEENGINE | ||||
| static RenderEngineType internal_game_type = { | static RenderEngineType internal_game_type = { | ||||
| NULL, NULL, | NULL, NULL, | ||||
| "BLENDER_GAME", N_("Blender Game"), RE_INTERNAL | RE_GAME, | "BLENDER_GAME", N_("Blender Game"), RE_INTERNAL | RE_GAME, | ||||
| NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | ||||
| {NULL, NULL, NULL} | {NULL, NULL, NULL} | ||||
| }; | }; | ||||
| #endif | #endif | ||||
| ListBase R_engines = {NULL, NULL}; | ListBase R_engines = {NULL, NULL}; | ||||
| void RE_engines_init(void) | void RE_engines_init(void) | ||||
| Show All 13 Lines | void RE_engines_exit(void) | ||||
| BKE_layer_collection_engine_settings_callback_free(); | BKE_layer_collection_engine_settings_callback_free(); | ||||
| for (type = R_engines.first; type; type = next) { | for (type = R_engines.first; type; type = next) { | ||||
| next = type->next; | next = type->next; | ||||
| BLI_remlink(&R_engines, type); | BLI_remlink(&R_engines, type); | ||||
| if (type->gpu_lib) | |||||
| BLI_ghash_free(type->gpu_lib, NULL, MEM_freeN); | |||||
| if (type->gpu_lib_text) | |||||
| MEM_freeN(type->gpu_lib_text); | |||||
| if (!(type->flag & RE_INTERNAL)) { | if (!(type->flag & RE_INTERNAL)) { | ||||
| if (type->ext.free) | if (type->ext.free) | ||||
| type->ext.free(type->ext.data); | type->ext.free(type->ext.data); | ||||
| MEM_freeN(type); | MEM_freeN(type); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 633 Lines • Show Last 20 Lines | |||||