Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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.
 
void Perform (const occ::handle< Font_TextFormatter > &theFormatter, const occ::handle< OpenGl_Context > &theContext, OpenGl_Font &theFont, NCollection_DynamicArray< GLuint > &theTextures, NCollection_DynamicArray< occ::handle< OpenGl_VertexBuffer > > &theVertsPerTexture, NCollection_DynamicArray< occ::handle< OpenGl_VertexBuffer > > &theTCrdsPerTexture)
 Creates texture quads for the given text.
 

Protected Member Functions

class auxiliary methods
void createGlyphs (const occ::handle< Font_TextFormatter > &theFormatter, const occ::handle< OpenGl_Context > &theCtx, OpenGl_Font &theFont, NCollection_DynamicArray< GLuint > &theTextures, NCollection_DynamicArray< NCollection_Handle< NCollection_DynamicArray< NCollection_Vec2< float > > > > &theVertsPerTexture, NCollection_DynamicArray< NCollection_Handle< NCollection_DynamicArray< NCollection_Vec2< float > > > > &theTCrdsPerTexture)
 

Protected Attributes

class auxiliary fields
NCollection_DynamicArray< OpenGl_Font::TilemyTileRects
 
OpenGl_VertexBufferEditor< NCollection_Vec2< float > > myVboEditor
 

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 occ::handle< Font_TextFormatter > & theFormatter,
const occ::handle< OpenGl_Context > & theCtx,
OpenGl_Font & theFont,
NCollection_DynamicArray< GLuint > & theTextures,
NCollection_DynamicArray< NCollection_Handle< NCollection_DynamicArray< NCollection_Vec2< float > > > > & theVertsPerTexture,
NCollection_DynamicArray< NCollection_Handle< NCollection_DynamicArray< NCollection_Vec2< float > > > > & theTCrdsPerTexture )
protected

◆ Perform()

void OpenGl_TextBuilder::Perform ( const occ::handle< Font_TextFormatter > & theFormatter,
const occ::handle< OpenGl_Context > & theContext,
OpenGl_Font & theFont,
NCollection_DynamicArray< GLuint > & theTextures,
NCollection_DynamicArray< occ::handle< OpenGl_VertexBuffer > > & theVertsPerTexture,
NCollection_DynamicArray< occ::handle< OpenGl_VertexBuffer > > & theTCrdsPerTexture )

Creates texture quads for the given text.

Field Documentation

◆ myTileRects

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

◆ myVboEditor

OpenGl_VertexBufferEditor<NCollection_Vec2<float> > OpenGl_TextBuilder::myVboEditor
protected

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