* Add capability to switch single submeshes on and off for debug purposes

This commit is contained in:
Shlainn 2012-02-16 19:02:31 +01:00
parent 57e8d3e844
commit 26d4c36387
2 changed files with 11 additions and 0 deletions

View File

@ -1424,6 +1424,7 @@ void CM2Mesh::newAnimation(u32 id, s32 start, s32 end, f32 probability)
Animations.push_back(a);
}
// Switch Geosets on and off
void CM2Mesh::setGeoSetRender(u32 id, bool render)//this sets the render status for a geoset ID
{
for(u16 i = 0; i < GeoSetID.size(); i++)
@ -1435,6 +1436,15 @@ void CM2Mesh::setGeoSetRender(u32 id, bool render)//this sets the render status
}
};
//DEBUG FUNCTION: Switch submeshes on and off
void CM2Mesh::setMBRender(u32 id, bool render)//this sets the render status for a geoset ID
{
if(GeoSetRender.size()>id)
{
GeoSetRender[id]=render;
}
};
bool CM2Mesh::getGeoSetRender(u32 meshbufferNumber)//This gets the render status for a specific mesh buffer

View File

@ -153,6 +153,7 @@ namespace scene
void newAnimation(u32 id, s32 start, s32 end, f32 probability);
//Retrieve geoset rendering information
void setGeoSetRender(u32 id, bool render);
void setMBRender(u32 id, bool render);
bool getGeoSetRender(u32 meshbufferNumber);
private: