Open CASCADE Technology  7.4.0
Public Member Functions
OpenGl_TextBuilder Class Reference

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::TilemyTileRects
 
OpenGl_VertexBufferEditor< OpenGl_Vec2myVboEditor
 

Detailed Description

This class generates primitive array required for rendering textured text using OpenGl_Font instance.

Constructor & Destructor Documentation

◆ OpenGl_TextBuilder()

OpenGl_TextBuilder::OpenGl_TextBuilder ( )

Creates empty object.

Member Function Documentation

◆ createGlyphs()

void OpenGl_TextBuilder::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

◆ Perform()

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.

Field Documentation

◆ myTileRects

NCollection_Vector<OpenGl_Font::Tile> OpenGl_TextBuilder::myTileRects
protected

◆ myVboEditor

OpenGl_VertexBufferEditor<OpenGl_Vec2> OpenGl_TextBuilder::myVboEditor
protected

The documentation for this class was generated from the following file: