SLText creates a mesh using a textured font from SLTexFont.
void drawMesh(SLSceneView *sv) override
Draws the single mesh.
SLfloat _lineH
Line height factor for wrapped text.
SLbool hitRec(SLRay *ray) override
void drawText(SLSceneView *sv)
SLGLVertexArray _vao
Vertex array for rendering.
SLText(SLstring text, SLTexFont *font, SLCol4f txtCol=SLCol4f::WHITE, SLfloat maxWidth=0.0f, SLfloat lineHeightFactor=1.3f)
Construct a new SLText::SLText object.
void statsRec(SLNodeStats &stats) override
void preShade(SLRay *ray)
SLTexFont * _font
Font pointer of the preloaded font.
SLfloat _maxW
Max. width in pix. for wrapped text.
SLAABBox & updateAABBRec(SLbool updateAlsoAABBinOS) override