diff options
Diffstat (limited to 'src/render/render.cc')
-rw-r--r-- | src/render/render.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/render/render.cc b/src/render/render.cc index 12445a6..03c5c87 100644 --- a/src/render/render.cc +++ b/src/render/render.cc @@ -1,7 +1,7 @@ /* render/render.cc - This file is part of the Osirion project and is distributed under - the terms of the GNU General Public License version 2 + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 */ #include <iostream> @@ -24,7 +24,8 @@ #include "render/textures.h" #include "sys/sys.h" -namespace render { +namespace render +{ core::Cvar *r_axis = 0; core::Cvar *r_bbox = 0; @@ -53,7 +54,7 @@ void func_list_particles(std::string const &args) ParticleScript::list(); } -void init(int width, int height) +void init(int width, int height) { con_print << "^BInitializing renderer..." << std::endl; @@ -148,8 +149,8 @@ void unload() for (core::Entity::Registry::iterator it = core::Entity::registry().begin(); it != core::Entity::registry().end(); it++) { core:: Entity *entity = (*it).second; - - if (entity->type() == core::Entity::Globe) { + + if (entity->type() == core::Entity::Globe) { core::EntityGlobe *globe = static_cast<core::EntityGlobe *>(entity); if (globe->render_texture) { render::Textures::unload(globe->render_texture); @@ -179,7 +180,7 @@ void clear() if (entity->model()) entity->set_model(0); - if (entity->type() == core::Entity::Globe) { + if (entity->type() == core::Entity::Globe) { core::EntityGlobe *globe = static_cast<core::EntityGlobe *>(entity); globe->render_texture = 0; } |