21 #include <qvector3d.h>
61 glMatrixMode(GL_MODELVIEW);
71 glGetIntegerv(GL_VIEWPORT, viewport);
72 unsigned int width = viewport[2];
73 unsigned int height = viewport[3];
75 glMatrixMode(GL_PROJECTION);
78 glOrtho(0, width, 0.0, height, 0.0, 1.0);
81 glMatrixMode(GL_MODELVIEW);
88 glMatrixMode(GL_PROJECTION);
92 glMatrixMode(GL_MODELVIEW);
static const OColor BLACK
void setColor(const OColor &oColor)
OGLLine * m_pOGLLineToDisplay
virtual ~OGLLineElement()
void drawLine(const QVector3D &point1, const QVector3D &point2, const OColor &oColor, float lineWidth) const