Skip to content
Snippets Groups Projects
Commit 4f68dcb9 authored by Alexis Girault's avatar Alexis Girault
Browse files

ENH: Implement setRenderFaces

This is to complete the use of renderFaces()
parent f2462fb5
No related branches found
No related tags found
No related merge requests found
......@@ -434,6 +434,19 @@ bool RenderDetail::renderWireframe() const
return this->renderType & SIMMEDTK_RENDER_WIREFRAME;
}
//---------------------------------------------------------------------------
void RenderDetail::setRenderFaces(bool value)
{
if(value)
{
this->renderType |= SIMMEDTK_RENDER_FACES;
}
else
{
this->renderType |= ~SIMMEDTK_RENDER_FACES;
}
}
//---------------------------------------------------------------------------
bool RenderDetail::renderFaces() const
{
......
......@@ -304,6 +304,11 @@ public:
///
void setRenderWireframe(bool value);
bool renderWireframe() const;
///
/// \brief Returns true if you want to draw faces
///
void setRenderFaces(bool value);
bool renderFaces() const;
///
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment