From 60ac3f8491caa62b61c16ba2dc484cc072fe3ebd Mon Sep 17 00:00:00 2001 From: auria Date: Wed, 10 Nov 2010 16:53:45 +0000 Subject: [PATCH] Removed unused code git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6492 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/material_manager.cpp | 24 ------------------------ src/graphics/material_manager.hpp | 1 - 2 files changed, 25 deletions(-) diff --git a/src/graphics/material_manager.cpp b/src/graphics/material_manager.cpp index 31507cce4..1f4327c82 100644 --- a/src/graphics/material_manager.cpp +++ b/src/graphics/material_manager.cpp @@ -53,30 +53,6 @@ MaterialManager::~MaterialManager() m_materials.clear(); } // ~MaterialManager -//----------------------------------------------------------------------------- - -void MaterialManager::setAllFlatMaterialFlags(scene::IMeshBuffer *mb) const -{ - video::SMaterial& material = mb->getMaterial(); - - //printf("=== I've got a flat material here! (%i, %i, %i) ==\n", - // material.AmbientColor.getRed(), material.AmbientColor.getGreen(), material.AmbientColor.getBlue()); - if (material.AmbientColor.getAlpha() < 255) - { - //printf("---> AND IT's TRANSLUSCENT!!\n"); - - //m->MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; - material.MaterialType = video::EMT_SOLID; - material.ZWriteEnable = false; - material.setFlag(video::EMF_ZWRITE_ENABLE, false); - material.ColorMaterial = video::ECM_DIFFUSE_AND_AMBIENT; - //material.setFlag(video::EMF_BACK_FACE_CULLING, false); - //material.Wireframe=true; - } - -// material.Shininess = 0.6f; -} - //----------------------------------------------------------------------------- /** Searches for the material in the given texture, and calls a function * in the material to set the irrlicht material flags. diff --git a/src/graphics/material_manager.hpp b/src/graphics/material_manager.hpp index 60ff3b41a..f2c8fe90f 100644 --- a/src/graphics/material_manager.hpp +++ b/src/graphics/material_manager.hpp @@ -51,7 +51,6 @@ public: scene::IMeshBuffer *mb) const; void setAllUntexturedMaterialFlags(scene::IMeshBuffer *mb) const; - void setAllFlatMaterialFlags(scene::IMeshBuffer *mb) const; int addEntity (Material *m); Material *getMaterial (const std::string& t, bool is_full_path=false,