| 76 | extern bool g_level_shadows; |
| 77 | |
| 78 | void LoadTerrain(SceneGraph& s, const TerrainInfo& ti) { |
| 79 | AddLoadingText("Loading terrain object..."); |
| 80 | |
| 81 | TerrainObject* terrain_object = NULL; |
| 82 | { |
| 83 | PROFILER_ZONE(g_profiler_ctx, "Creating terrain object"); |
| 84 | terrain_object = new TerrainObject(ti); |
| 85 | } |
| 86 | terrain_object->SetID(0); |
| 87 | { |
| 88 | PROFILER_ZONE(g_profiler_ctx, "Adding terrain object to scenegraph"); |
| 89 | s.addObject(terrain_object); |
| 90 | } |
| 91 | s.terrain_object_ = terrain_object; |
| 92 | { |
| 93 | PROFILER_ZONE(g_profiler_ctx, "Preparing terrain physics"); |
| 94 | terrain_object->PreparePhysicsMesh(); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | void AddCamera(SceneGraph& s) { |
| 99 | EditorCameraObject* new_object = new EditorCameraObject(); |
no test coverage detected