|
Blender V5.0
|
#include <cstdlib>#include <cstring>#include <optional>#include "MEM_guardedalloc.h"#include "DNA_defaults.h"#include "DNA_scene_types.h"#include "DNA_texture_types.h"#include "DNA_world_types.h"#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "BKE_icons.h"#include "BKE_idtype.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_node.hh"#include "BKE_preview_image.hh"#include "BKE_world.h"#include "BLT_translation.hh"#include "DRW_engine.hh"#include "DEG_depsgraph.hh"#include "GPU_material.hh"#include "BLO_read_write.hh"Go to the source code of this file.
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
Functions | |
| static void | world_free_data (ID *id) |
| static void | world_init_data (ID *id) |
| static void | world_copy_data (Main *bmain, std::optional< Library * > owner_library, ID *id_dst, const ID *id_src, const int flag) |
| static void | world_foreach_id (ID *id, LibraryForeachIDData *data) |
| static void | world_foreach_working_space_color (ID *id, const IDTypeForeachColorFunctionCallback &fn) |
| static void | world_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
| static void | world_blend_read_data (BlendDataReader *reader, ID *id) |
| World * | BKE_world_add (Main *bmain, const char *name) |
| void | BKE_world_eval (Depsgraph *depsgraph, World *world) |
Variables | |
| IDTypeInfo | IDType_ID_WO |
| #define DNA_DEPRECATED_ALLOW |
Definition at line 16 of file blenkernel/intern/world.cc.
Definition at line 216 of file blenkernel/intern/world.cc.
References BKE_id_new(), and name.
Referenced by ED_preview_prepare_world_simple(), and new_world_exec().
| void BKE_world_eval | ( | Depsgraph * | depsgraph, |
| World * | world ) |
Definition at line 225 of file blenkernel/intern/world.cc.
References DEG_debug_print_eval(), DEG_get_update_count(), depsgraph, GPU_material_free(), World::gpumaterial, World::id, World::last_update, and ID::name.
|
static |
Definition at line 174 of file blenkernel/intern/world.cc.
References BKE_previewimg_blend_read(), BLI_listbase_clear(), BLO_read_struct, World::gpumaterial, World::lightgroup, and World::preview.
|
static |
Definition at line 143 of file blenkernel/intern/world.cc.
References BKE_id_blend_write(), BKE_previewimg_blend_write(), BLI_listbase_clear(), BLO_write_id_struct, BLO_write_struct, BLO_write_struct_at_address, BLO_Write_IDBuffer::get(), World::gpumaterial, bNodeTree::id, World::id, World::last_update, World::lightgroup, blender::bke::node_tree_blend_write(), World::nodetree, and World::preview.
|
static |
Only copy internal data of World ID from source to already allocated/initialized destination. You probably never want to use that directly, use BKE_id_copy or BKE_id_copy_ex for typical needs.
WARNING! This function will not handle ID user count!
| flag | Copying options (see BKE_lib_id.hh's LIB_ID_COPY_... flags for more). |
Definition at line 82 of file blenkernel/intern/world.cc.
References BKE_id_copy_in_lib(), BKE_previewimg_id_copy(), BLI_listbase_clear(), flag, World::gpumaterial, bNodeTree::id, World::id, LIB_ID_COPY_NO_PREVIEW, LIB_ID_CREATE_LOCAL, LIB_ID_CREATE_NO_ALLOCATE, LIB_ID_CREATE_NO_USER_REFCOUNT, World::lightgroup, MEM_dupallocN(), blender::bke::node_tree_localize(), World::nodetree, and World::preview.
|
static |
Definition at line 125 of file blenkernel/intern/world.cc.
References BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_library_foreach_ID_embedded(), data, and World::nodetree.
|
static |
Definition at line 136 of file blenkernel/intern/world.cc.
References World::horr, and IDTypeForeachColorFunctionCallback::single.
|
static |
Free (or release) any data used by this world (does not free the world itself).
Definition at line 45 of file blenkernel/intern/world.cc.
References BKE_icon_id_delete(), BKE_previewimg_free(), GPU_material_free(), World::gpumaterial, World::lightgroup, MEM_freeN(), MEM_SAFE_FREE, blender::bke::node_tree_free_embedded_tree(), World::nodetree, and World::preview.
|
static |
Definition at line 64 of file blenkernel/intern/world.cc.
References BLI_assert, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
| IDTypeInfo IDType_ID_WO |
Definition at line 185 of file blenkernel/intern/world.cc.