Skip to content
Snippets Groups Projects
Commit 6c5940fd authored by Maxime Graulich's avatar Maxime Graulich
Browse files

mobile: draw axes and scale over everything else

parent 523ee4bc
No related branches found
No related tags found
No related merge requests found
...@@ -573,12 +573,6 @@ void drawContext::drawView() ...@@ -573,12 +573,6 @@ void drawContext::drawView()
checkGlError("Initialize position"); checkGlError("Initialize position");
// //
this->drawAxes(this->_right - (this->_top - this->_bottom)/15.0,
this->_bottom + (this->_top - this->_bottom)/15.0,
0, (this->_top - this->_bottom)/20.);
checkGlError("Draw axes");
this->drawScale();
checkGlError("Draw scales");
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
this->drawMesh(); this->drawMesh();
checkGlError("Draw mesh"); checkGlError("Draw mesh");
...@@ -587,6 +581,12 @@ void drawContext::drawView() ...@@ -587,6 +581,12 @@ void drawContext::drawView()
this->drawPost(); this->drawPost();
checkGlError("Draw post-pro"); checkGlError("Draw post-pro");
glDisable(GL_DEPTH_TEST); glDisable(GL_DEPTH_TEST);
this->drawScale();
checkGlError("Draw scales");
this->drawAxes(this->_right - (this->_top - this->_bottom)/15.0,
this->_bottom + (this->_top - this->_bottom)/15.0,
0, (this->_top - this->_bottom)/20.);
checkGlError("Draw axes");
} }
std::vector<std::string> commandToVector(const std::string cmd) std::vector<std::string> commandToVector(const std::string cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment