59 glGetIntegerv(GL_VIEWPORT, viewport);
60 unsigned int width = viewport[2];
61 unsigned int height = viewport[3];
64 glMatrixMode(GL_PROJECTION);
67 glOrtho(0, width, 0.0, height, 0.0, 1.0);
70 glMatrixMode(GL_MODELVIEW);
81 std::string stdTxtToDraw;
82 #if defined TY_PLATFORM_LINUX
83 stdTxtToDraw =
m_qsText.toUtf8().constData();
85 stdTxtToDraw =
m_qsText.toLocal8Bit().constData();
93 glMatrixMode(GL_PROJECTION);
97 glMatrixMode(GL_MODELVIEW);
double m_DisplayPositionX
double m_DisplayPositionY
bool load(const char *filename)
void drawText(const std::string &msg, const OColor &color, double x, double y) const
void setColor(const OColor &oColor)
OGLFont * m_pOGLFontToDisplay
virtual ~OGLTextElement()
void setTextToDisplay(const QString &qsText)
void setFont(const QString &qsFontPath)