|
Blender V4.3
|
#include <cmath>#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_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 17 of file blenkernel/intern/world.cc.
Definition at line 220 of file blenkernel/intern/world.cc.
References BKE_id_new(), and ID_WO.
Referenced by new_world_exec().
| void BKE_world_eval | ( | Depsgraph * | depsgraph, |
| World * | world ) |
Definition at line 229 of file blenkernel/intern/world.cc.
References DEG_debug_print_eval(), DEG_get_update_count(), depsgraph, and GPU_material_free().
|
static |
Definition at line 179 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 145 of file blenkernel/intern/world.cc.
References BKE_id_blend_write(), BKE_previewimg_blend_write(), BLI_listbase_clear(), BLO_write_allocate_id_buffer(), BLO_write_destroy_id_buffer(), BLO_write_get_id_buffer_temp_id(), BLO_write_id_struct, BLO_write_init_id_buffer_from_id(), BLO_write_is_undo(), BLO_write_struct, BLO_write_struct_at_address, 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 85 of file blenkernel/intern/world.cc.
References BKE_id_copy_in_lib(), BKE_previewimg_id_copy(), BLI_listbase_clear(), World::drawdata, flag, World::gpumaterial, bNodeTree::id, World::id, LIB_ID_COPY_NO_PREVIEW, LIB_ID_CREATE_LOCAL, LIB_ID_CREATE_NO_USER_REFCOUNT, World::lightgroup, MEM_dupallocN, blender::bke::node_tree_localize(), World::nodetree, and World::preview.
|
static |
Definition at line 129 of file blenkernel/intern/world.cc.
References BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_LIB_FOREACHID_PROCESS_ID_NOCHECK, BKE_lib_query_foreachid_process_flags_get(), BKE_library_foreach_ID_embedded(), flag, IDWALK_CB_USER, and IDWALK_DO_DEPRECATED_POINTERS.
|
static |
Free (or release) any data used by this world (does not free the world itself).
Definition at line 46 of file blenkernel/intern/world.cc.
References BKE_icon_id_delete(), BKE_previewimg_free(), DRW_drawdata_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 67 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 190 of file blenkernel/intern/world.cc.