![]() |
Open CASCADE Technology Reference Manual 8.0.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. | |
| 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::Tile > | myTileRects |
| OpenGl_VertexBufferEditor< NCollection_Vec2< float > > | 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 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 |
|
protected |