61 glMatrixMode(GL_MODELVIEW);
70 glGetIntegerv(GL_VIEWPORT, viewport);
71 unsigned int width = viewport[2];
72 unsigned int height = viewport[3];
74 glMatrixMode(GL_PROJECTION);
77 glOrtho(0, width, 0.0, height, 0.0, 1.0);
80 glMatrixMode(GL_MODELVIEW);
88 glMatrixMode(GL_PROJECTION);
92 glMatrixMode(GL_MODELVIEW);
OGLRectangle * m_pOGLRectangleToDisplay
void setColor(const OColor &oColor)
virtual ~OGLRectangleElement()
void drawRectangle(const QVector3D &point0, const QVector3D &point1, const QVector3D &point2, const QVector3D &point3, const OColor &oColor, bool bFalse=false) const