A text object: displays text messages as textures in 3D objects.
void setFont(QFont *font)
void setText(const std::string &)
virtual void glSetChanged(glPart, bool=true) const
const std::string & text() const
virtual unsigned glTexCoordSize(const ViewState &, unsigned tex=0) const
texture array size (must be >= numVertex to work), defalut=0
void setPosition(const Point3df &)
virtual unsigned glDimTex(const ViewState &, unsigned tex=0) const
texture dimension (1, 2 [or 3])
TextObject(const std::string &text="", const Point3df &pos=Point3df(0, 0, 0), float fontSize=30.)
const QFont * font() const
virtual const GLfloat * glTexCoordArray(const ViewState &, unsigned tex=0) const
virtual bool savable() const
void setFontSize(float x)
Point3df position() const
virtual bool isTransparent() const
virtual bool glMakeTexImage(const ViewState &state, const GLTexture &gltex, unsigned tex) const
If you make non-standard textures (ie not from a palette), overload this function to fill gltex.