* Add capability to switch single submeshes on and off for debug purposes
This commit is contained in:
parent
57e8d3e844
commit
26d4c36387
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user