From 2a87246be478e5ddd2bef4080f36382a889e02dd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 27 Jan 2011 12:36:26 +0000 Subject: Moved material loading from render to core, make sure the dedicated server reads materials.ini, removed unnecessary CollisionMesh::translate() method. --- src/render/render.cc | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/render/render.cc') diff --git a/src/render/render.cc b/src/render/render.cc index f24eb83..3d538da 100644 --- a/src/render/render.cc +++ b/src/render/render.cc @@ -50,11 +50,6 @@ void func_list_textures(std::string const &args) Textures::list(); } -void func_list_materials(std::string const &args) -{ - model::Material::list(); -} - void func_list_particles(std::string const &args) { ParticleScript::list(); @@ -141,23 +136,15 @@ void init(int width, int height) Dust::init(); - // read materials - model::Material::init(); - // engine functions core::Func *func = core::Func::add("list_textures", func_list_textures); func->set_info("list registered textures"); - func = core::Func::add("list_materials", func_list_materials); - func->set_info("list registered materials"); - func = core::Func::add("list_particles", func_list_particles); func->set_info("list registered particle scripts"); func = core::Func::add("r_loadmodels", func_load_info_models); func->set_info("load all models referenced by info record"); - - load(); } // unload game assets (zone change) @@ -212,12 +199,6 @@ void clear() } } - // clear model registry - model::Model::clear(); - - // clear materials - model::Material::clear(); - // clear particle system scripts ParticleScript::clear(); } @@ -272,8 +253,6 @@ void reset() Textures::init(); Dust::reset(); - - model::Material::init(); } void resize(int width, int height) @@ -285,7 +264,6 @@ void shutdown() { con_print << "^BShutting down renderer..." << std::endl; - core::Func::remove("list_materials"); core::Func::remove("list_particles"); core::Func::remove("list_textures"); core::Func::remove("r_loadmodels"); -- cgit v1.2.3