|
Blender
V2.59
|
#include <string.h>#include <math.h>#include "MEM_guardedalloc.h"#include "DNA_world_types.h"#include "DNA_scene_types.h"#include "DNA_texture_types.h"#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "BKE_world.h"#include "BKE_library.h"#include "BKE_animsys.h"#include "BKE_global.h"#include "BKE_main.h"#include "BKE_icons.h"Go to the source code of this file.
Functions | |
| void | free_world (World *wrld) |
| World * | add_world (const char *name) |
| World * | copy_world (World *wrld) |
| World * | localize_world (World *wrld) |
| void | make_local_world (World *wrld) |
Definition in file world.c.
| World* add_world | ( | const char * | name | ) | [read] |
Definition at line 75 of file world.c.
References alloc_libblock(), World::ao_approx_error, World::ao_env_energy, World::ao_indirect_bounces, World::ao_indirect_energy, World::ao_samp_method, World::aobias, World::aodist, World::aoenergy, World::aosamp, World::exp, World::exposure, G, World::horb, World::horg, World::horr, ID_WO, Global::main, World::mistdist, World::miststa, NULL, World::preview, World::range, World::skytype, World::stardist, World::starsize, WO_AOSAMP_HAMMERSLEY, Main::world, World::zenb, World::zeng, and World::zenr.
Referenced by new_world_exec().
Definition at line 112 of file world.c.
References BKE_previewimg_copy(), copy_libblock(), id_us_plus(), MAX_MTEX, MEM_mallocN(), World::mtex, World::preview, and MTex::tex.
Referenced by copy_scene(), id_copy(), make_local_world(), and new_world_exec().
| void free_world | ( | World * | wrld | ) |
Definition at line 56 of file world.c.
References BKE_free_animdata(), BKE_icon_delete(), BKE_previewimg_free(), ID::icon_id, Tex::id, MAX_MTEX, MEM_freeN(), World::mtex, World::preview, MTex::tex, and ID::us.
Referenced by free_libblock(), and shader_preview_free().
Definition at line 133 of file world.c.
References BLI_remlink(), copy_libblock(), G, id_us_plus(), Global::main, MAX_MTEX, MEM_mallocN(), World::mtex, NULL, World::preview, MTex::tex, and Main::world.
Referenced by preview_prepare_scene().
| void make_local_world | ( | World * | wrld | ) |
Definition at line 155 of file world.c.
References copy_world(), ELEM, ListBase::first, ID::flag, G, World::id, Scene::id, ID::lib, LIB_LOCAL, Global::main, new_id(), ID::next, NULL, Main::scene, ID::us, and Scene::world.
Referenced by id_make_local().