Removed unused code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6492 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
448fda73e8
commit
60ac3f8491
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user