62 glMatrixMode(GL_MODELVIEW);
72 glGetIntegerv(GL_VIEWPORT, viewport);
73 unsigned int width = viewport[2];
74 unsigned int height = viewport[3];
76 glMatrixMode(GL_PROJECTION);
79 glOrtho(0, width, 0.0, height, 0.0, 1.0);
82 glMatrixMode(GL_MODELVIEW);
90 glMatrixMode(GL_PROJECTION);
94 glMatrixMode(GL_MODELVIEW);
virtual ~OGLGridElement()
void setColor(const OColor &oColor)
OGLGrid * m_pOGLGridToDisplay
void drawGrid(const float gridDimX, const float gridDimY, const float gridStep, const OColor &oColor, bool bShowGridXY, bool showGridXZ, bool showGridZY) const