27 #ifndef GLVIEWER_TEXT_H
28 #define GLVIEWER_TEXT_H
38 #include <OpenGL/gl.h>
48 #pragma warning( disable:4251 )
58 GLViewer_Text(
const QString&,
float xPos = 0.0,
float yPos = 0.0,
const QColor&
color = QColor( 0, 255, 0 ) );
59 GLViewer_Text(
const QString&,
float xPos,
float yPos,
const QColor& , QFont theFont,
int theSeparator);
63 void setText(
const QString& text ) { myText = text; }
65 QString
getText()
const {
return myText; }
68 void setPosition(
float xPos,
float yPos ) { myXPos = xPos; myYPos = yPos; }
70 void getPosition(
float& xPos,
float& yPos ) { xPos = myXPos; yPos = myYPos; }
78 void setFont(
const QFont theQFont) { myQFont = theQFont; }
94 QByteArray getByteCopy()
const;
116 #pragma warning ( default:4251 )