Skip to content
Snippets Groups Projects
Commit 029f4476 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

cleanup

parent d177ff58
Branches
Tags
No related merge requests found
......@@ -63,9 +63,6 @@ drawContext::drawContext(float fontFactor, bool retina)
_scale[i] = 1.;
}
setQuaternion(0., 0., 0., 1.);
_fillMesh = false;
_gradiant = true;
_fontFactor = fontFactor;
_retina = retina;
}
......@@ -598,7 +595,7 @@ void drawContext::drawView()
glMatrixMode(GL_MODELVIEW);
// fill the background
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
if(_gradiant){
if(CTX::instance()->bgGradient){
glPushMatrix();
glLoadIdentity();
const GLfloat squareVertices[] = {
......@@ -760,7 +757,6 @@ int onelab_cb(std::string action)
} while(action == "compute" && !onelabStop && (onelabUtils::incrementLoop("3") ||
onelabUtils::incrementLoop("2") ||
onelabUtils::incrementLoop("1")));
locked = false;
return redraw;
}
......
......@@ -37,8 +37,6 @@ private:
int _width, _height; // size of OpenGL context in pixel
float _left, _right, _top, _bottom, _far; // value of "border"
float _fontFactor;
bool _gradiant; // show the background gradiant
bool _fillMesh; // fill the Mesh
bool _retina; // retina display
void OrthofFromGModel(void);
......@@ -63,7 +61,6 @@ public:
void drawMesh();
void drawPost();
void drawScale();
void useGradiant(bool gradiant=true) {_gradiant = gradiant;}
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment