Text rendering.  
 More...
#include <OpenGl_Text.hxx>
|  | 
|  | OpenGl_Text () | 
|  | Empty constructor.  More... 
 | 
|  | 
| void | Render (const Handle< OpenGl_Context > &theCtx, const OpenGl_Aspects &theTextAspect, unsigned int theResolution=Graphic3d_RenderingParams::THE_DEFAULT_RESOLUTION, Font_Hinting theFontHinting=Font_Hinting_Off) const | 
|  | Perform rendering.  More... 
 | 
|  | 
| virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const override | 
|  | Dumps the content of me into the stream.  More... 
 | 
|  | 
| static TCollection_AsciiString | FontKey (const OpenGl_Aspects &theAspect, Standard_Integer theHeight, unsigned int theResolution, Font_Hinting theFontHinting) | 
|  | Create key for shared resource.  More... 
 | 
|  | 
| static Handle< OpenGl_Font > | FindFont (const Handle< OpenGl_Context > &theCtx, const OpenGl_Aspects &theAspect, Standard_Integer theHeight, unsigned int theResolution, Font_Hinting theFontHinting, const TCollection_AsciiString &theKey) | 
|  | Find shared resource for specified font or initialize new one.  More... 
 | 
|  | 
| static void | StringSize (const Handle< OpenGl_Context > &theCtx, const NCollection_String &theText, const OpenGl_Aspects &theTextAspect, const Standard_ShortReal theHeight, const unsigned int theResolution, const Font_Hinting theFontHinting, Standard_ShortReal &theWidth, Standard_ShortReal &theAscent, Standard_ShortReal &theDescent) | 
|  | Compute text width.  More... 
 | 
|  | 
|  | 
| template<typename theResource_t > | 
| static void | Destroy (OpenGl_Context *theContext, theResource_t *&theElement) | 
|  | Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe.  More... 
 | 
|  | 
| virtual | ~OpenGl_Element () | 
|  | 
◆ OpenGl_Text() [1/2]
Creates new text in 3D space. 
 
 
◆ ~OpenGl_Text()
  
  | 
        
          | virtual OpenGl_Text::~OpenGl_Text | ( |  | ) |  |  | virtual | 
 
 
◆ OpenGl_Text() [2/2]
      
        
          | OpenGl_Text::OpenGl_Text | ( |  | ) |  | 
      
 
 
◆ DumpJson()
Dumps the content of me into the stream. 
Reimplemented from OpenGl_Element.
 
 
◆ EstimatedDataSize()
Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules. 
Reimplemented from OpenGl_Element.
 
 
◆ FindFont()
Find shared resource for specified font or initialize new one. 
 
 
◆ FontKey()
Create key for shared resource. 
 
 
◆ Init()
Setup new string and position. 
- Deprecated:
- ("Deprecated method Init() with obsolete arguments, use Init() and Text() instead of it") 
 
 
◆ Is2D()
Return true if text is 2D. 
 
 
◆ Release()
Release GPU resources. Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe. 
Implements OpenGl_Element.
 
 
◆ releaseVbos()
Release cached VBO resources. 
 
 
◆ Render() [1/2]
◆ Render() [2/2]
◆ Reset()
Release cached VBO resources and the previous font if height changed. Cached structures will be refilled by the next render. Call Reset after modifying text parameters. 
 
 
◆ Set2D()
◆ SetFontSize()
◆ SetPosition()
      
        
          | void OpenGl_Text::SetPosition | ( | const OpenGl_Vec3 & | thePoint | ) |  | 
      
 
Setup new position. 
- Deprecated:
- ("Deprecated method SetPosition(), use Graphic3d_Text for it") 
 
 
◆ SetText()
Sets text parameters. 
- See also
- Reset() 
 
 
◆ StringSize()
◆ Text()
Returns text parameters. 
- See also
- Reset() 
 
 
◆ UpdateDrawStats()
◆ myBndBox
◆ myBndVertsVbo
VBOs of vertices for bounding box. 
 
 
◆ myFont
◆ myIs2d
◆ myModelMatrix
◆ myOrientationMatrix
◆ myProjMatrix
◆ myScaleHeight
◆ myTCrdsVbo
VBOs of texture coordinates. 
 
 
◆ myText
◆ myTextures
◆ myVertsVbo
◆ myWinXYZ
The documentation for this class was generated from the following file: