Open CASCADE Technology
7.3.0
|
This class generates primitive array required for rendering textured text using OpenGl_Font instance. More...
#include <OpenGl_TextBuilder.hxx>
Public Member Functions | |
OpenGl_TextBuilder () | |
Creates empty object. More... | |
void | Perform (const Font_TextFormatter &theFormatter, const Handle< OpenGl_Context > &theContext, OpenGl_Font &theFont, NCollection_Vector< GLuint > &theTextures, NCollection_Vector< Handle< OpenGl_VertexBuffer >> &theVertsPerTexture, NCollection_Vector< Handle< OpenGl_VertexBuffer >> &theTCrdsPerTexture) |
Creates texture quads for the given text. More... | |
Protected Member Functions | |
class auxillary methods | |
void | createGlyphs (const Font_TextFormatter &theFormatter, const Handle< OpenGl_Context > &theCtx, OpenGl_Font &theFont, NCollection_Vector< GLuint > &theTextures, NCollection_Vector< NCollection_Handle< NCollection_Vector< OpenGl_Vec2 > > > &theVertsPerTexture, NCollection_Vector< NCollection_Handle< NCollection_Vector< OpenGl_Vec2 > > > &theTCrdsPerTexture) |
Protected Attributes | |
class auxillary fields | |
NCollection_Vector< OpenGl_Font::Tile > | myTileRects |
OpenGl_VertexBufferEditor< OpenGl_Vec2 > | myVboEditor |
This class generates primitive array required for rendering textured text using OpenGl_Font instance.
OpenGl_TextBuilder::OpenGl_TextBuilder | ( | ) |
Creates empty object.
|
protected |
void OpenGl_TextBuilder::Perform | ( | const Font_TextFormatter & | theFormatter, |
const Handle< OpenGl_Context > & | theContext, | ||
OpenGl_Font & | theFont, | ||
NCollection_Vector< GLuint > & | theTextures, | ||
NCollection_Vector< Handle< OpenGl_VertexBuffer >> & | theVertsPerTexture, | ||
NCollection_Vector< Handle< OpenGl_VertexBuffer >> & | theTCrdsPerTexture | ||
) |
Creates texture quads for the given text.
|
protected |
|
protected |