MCPcopy Create free account
hub / github.com/crownengine/crown / RenderWorld

Method RenderWorld

src/world/render_world.cpp:217–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217RenderWorld::RenderWorld(Allocator &a
218 , ResourceManager &rm
219 , ShaderManager &sm
220 , MaterialManager &mm
221 , UnitManager &um
222 , Pipeline &pl
223 , SceneGraph &sg
224 )
225 : _marker(RENDER_WORLD_MARKER)
226 , _resource_manager(&rm)
227 , _shader_manager(&sm)
228 , _material_manager(&mm)
229 , _unit_manager(&um)
230 , _pipeline(&pl)
231 , _scene_graph(&sg)
232 , _debug_drawing(false)
233 , _mesh_manager(a, this)
234 , _sprite_manager(a, this)
235 , _lod_group_manager(a, this)
236 , _light_manager(a, this)
237 , _cullable_objects(a)
238 , _cullable_shadow_casters(a)
239 , _cullable_lights(a)
240 , _selection(a)
241 , _fog_unit(UNIT_INVALID)
242 , _global_lighting_unit(UNIT_INVALID)
243 , _bloom_unit(UNIT_INVALID)
244{
245 _unit_destroy_callback.destroy = unit_destroyed_callback_bridge;
246 _unit_destroy_callback.user_data = this;
247 _unit_destroy_callback.node.next = NULL;
248 _unit_destroy_callback.node.prev = NULL;
249 um.register_destroy_callback(&_unit_destroy_callback);
250
251 // Fog.
252 memset(&_fog_desc, 0, sizeof(_fog_desc));
253
254 // Global lighting.
255 memset((void *)&_global_lighting_desc, 0, sizeof(_global_lighting_desc));
256
257 // Bloom.
258 memset((void *)&_bloom_desc, 0, sizeof(_bloom_desc));
259
260 // Tonemap.
261 memset((void *)&_tonemap_desc, 0, sizeof(_tonemap_desc));
262 _tonemap_desc.type = TonemapType::REINHARD;
263}
264
265RenderWorld::~RenderWorld()
266{

Callers

nothing calls this directly

Calls 2

memsetFunction · 0.85

Tested by

no test coverage detected