GameClient exclude RB rendering from release
This commit is contained in:
parent
0876e5797a
commit
7414544774
|
@ -189,47 +189,49 @@ bool GameState::Render()
|
||||||
light->second->Render();
|
light->second->Render();
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
// RB DEBUG render wire frame
|
#ifdef _DEBUG
|
||||||
//if(this->privData->renderWhireframe)
|
//RB DEBUG render wire frame
|
||||||
//{
|
if(this->privData->renderWhireframe)
|
||||||
// Oyster::Graphics::API::StartRenderWireFrame();
|
{
|
||||||
//
|
Oyster::Graphics::API::StartRenderWireFrame();
|
||||||
// Oyster::Math3D::Float4x4 translation = Oyster::Math3D::TranslationMatrix(Float3( 0,132, 20));
|
|
||||||
// Oyster::Math3D::Float4x4 scale = Oyster::Math3D::ScalingMatrix(Float3( 0.5f, 0.5f, 0.5f));
|
Oyster::Math3D::Float4x4 translation = Oyster::Math3D::TranslationMatrix(Float3( 0,132, 20));
|
||||||
// Oyster::Math3D::Float4x4 world = translation * scale;
|
Oyster::Math3D::Float4x4 scale = Oyster::Math3D::ScalingMatrix(Float3( 0.5f, 0.5f, 0.5f));
|
||||||
// Oyster::Graphics::API::RenderDebugCube( world );
|
Oyster::Math3D::Float4x4 world = translation * scale;
|
||||||
// Oyster::Graphics::API::RenderDebugCube(this->privData->player.getRBWorld());
|
Oyster::Graphics::API::RenderDebugCube( world );
|
||||||
//
|
Oyster::Graphics::API::RenderDebugCube(this->privData->player.getRBWorld());
|
||||||
// staticObject = this->privData->staticObjects->begin();
|
|
||||||
// for( ; staticObject != this->privData->staticObjects->end(); ++staticObject )
|
staticObject = this->privData->staticObjects->begin();
|
||||||
// {
|
for( ; staticObject != this->privData->staticObjects->end(); ++staticObject )
|
||||||
// if( staticObject->second->getBRtype() == RB_Type_Cube)
|
{
|
||||||
// {
|
if( staticObject->second->getBRtype() == RB_Type_Cube)
|
||||||
// Oyster::Graphics::API::RenderDebugCube( staticObject->second->getRBWorld());
|
{
|
||||||
// }
|
Oyster::Graphics::API::RenderDebugCube( staticObject->second->getRBWorld());
|
||||||
// if( staticObject->second->getBRtype() == RB_Type_Sphere)
|
}
|
||||||
// {
|
if( staticObject->second->getBRtype() == RB_Type_Sphere)
|
||||||
// Oyster::Graphics::API::RenderDebugSphere( staticObject->second->getRBWorld());
|
{
|
||||||
// }
|
Oyster::Graphics::API::RenderDebugSphere( staticObject->second->getRBWorld());
|
||||||
// }
|
}
|
||||||
//
|
}
|
||||||
// dynamicObject = this->privData->dynamicObjects->begin();
|
|
||||||
// for( ; dynamicObject != this->privData->dynamicObjects->end(); ++dynamicObject )
|
dynamicObject = this->privData->dynamicObjects->begin();
|
||||||
// {
|
for( ; dynamicObject != this->privData->dynamicObjects->end(); ++dynamicObject )
|
||||||
// if( dynamicObject->second )
|
{
|
||||||
// {
|
if( dynamicObject->second )
|
||||||
// if( dynamicObject->second->getBRtype() == RB_Type_Cube)
|
{
|
||||||
// {
|
if( dynamicObject->second->getBRtype() == RB_Type_Cube)
|
||||||
// Oyster::Graphics::API::RenderDebugCube( dynamicObject->second->getRBWorld());
|
{
|
||||||
// }
|
Oyster::Graphics::API::RenderDebugCube( dynamicObject->second->getRBWorld());
|
||||||
// if( dynamicObject->second->getBRtype() == RB_Type_Sphere)
|
}
|
||||||
// {
|
if( dynamicObject->second->getBRtype() == RB_Type_Sphere)
|
||||||
// Oyster::Graphics::API::RenderDebugSphere( dynamicObject->second->getRBWorld());
|
{
|
||||||
// }
|
Oyster::Graphics::API::RenderDebugSphere( dynamicObject->second->getRBWorld());
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
// !RB DEBUG
|
}
|
||||||
|
//!RB DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
Oyster::Graphics::API::EndFrame();
|
Oyster::Graphics::API::EndFrame();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue