virtual const GLfloat * glTexCoordArray(const ViewState &, unsigned tex=0) const
void setText(const std::string &)
virtual bool isTransparent() const
void setFont(QFont *font)
const std::string & text() const
TextObject(const std::string &text="", const Point3df &pos=Point3df(0, 0, 0), float fontSize=30.)
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...
void setPosition(const Point3df &)
void setFontSize(float x)
virtual bool savable() const
virtual unsigned glDimTex(const ViewState &, unsigned tex=0) const
texture dimension (1, 2 [or 3])
virtual void glSetChanged(glPart, bool=true) const
Point3df position() const
A text object: displays text messages as textures in 3D objects.
virtual unsigned glTexCoordSize(const ViewState &, unsigned tex=0) const
texture array size (must be >= numVertex to work), defalut=0