Power System Platform  2018w15a
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenGLText Class Reference

Class to draw text on OpenGL using wxWidgets. More...

#include <OpenGLText.h>

Public Member Functions

 OpenGLText (wxString text)
 
virtual void Draw (wxPoint2DDouble position, double angle=0.0) const
 
virtual OpenGLTextGetCopy ()
 
virtual void SetText (wxString text)
 
virtual wxString GetText () const
 
virtual int GetWidth () const
 
virtual int GetHeight () const
 
virtual void SetFontSize (int fontSize)
 
virtual void SetFontWeight (wxFontWeight fontWeight)
 
virtual void SetFontStyle (wxFontStyle fontStyle)
 
virtual void SetFontFamily (wxFontFamily fontFamily)
 
virtual bool IsTextureOK ()
 

Protected Member Functions

void Init ()
 
int RoundToPowerOfTwo (int value, int min=32)
 
void TextToBitmap ()
 
void LoadTextTexture ()
 

Protected Attributes

wxString m_text = _("Text")
 
int m_fontSize = 10
 
wxFontWeight m_fontWeight = wxFONTWEIGHT_NORMAL
 
wxFontStyle m_fontStyle = wxFONTSTYLE_NORMAL
 
wxFontFamily m_fontFamily = wxFONTFAMILY_DEFAULT
 
wxBitmap m_bitmap = wxNullBitmap
 
wxSize m_bitmapSize = wxSize(0, 0)
 
wxPoint2DDouble * m_textCoord = NULL
 
GLuint * m_textureID = NULL
 

Detailed Description

Class to draw text on OpenGL using wxWidgets.

Author
Thales Lima Oliveira thale.nosp@m.s@uf.nosp@m.u.br
Date
24/10/2017

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