diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-12-31 18:00:25 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 18:00:25 -0200 |
commit | 0c0280cfcf540f943fd2dbfdf7ac0304ea96a465 (patch) | |
tree | 51c89fc8155dcc447743dc89a1ab5ce36acc72cf /Project/OpenGLText.h | |
parent | c8193665975686fb8a344bee3dc94914a3d3558a (diff) | |
parent | dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded (diff) | |
download | PSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.tar.gz PSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.tar.xz PSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.zip |
Merge pull request #43 from Thales1330/wip/math-expr-control-block
Wip math expr control block
Diffstat (limited to 'Project/OpenGLText.h')
-rw-r--r-- | Project/OpenGLText.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Project/OpenGLText.h b/Project/OpenGLText.h index 08da8f1..5417ad3 100644 --- a/Project/OpenGLText.h +++ b/Project/OpenGLText.h @@ -35,14 +35,19 @@ class OpenGLText OpenGLText(wxString text); virtual ~OpenGLText(); - virtual void Draw(wxPoint2DDouble position) const; + virtual void Draw(wxPoint2DDouble position, double angle = 0.0) const; virtual OpenGLText* GetCopy(); virtual void SetText(wxString text); virtual wxString GetText() const { return m_text; } virtual int GetWidth() const { return m_bitmapSize.GetWidth(); } virtual int GetHeight() const { return m_bitmapSize.GetHeight(); } + virtual void SetFontSize(int fontSize) { m_fontSize = fontSize; } + virtual void SetFontWeight(wxFontWeight fontWeight) { m_fontWeight = fontWeight; } + virtual void SetFontStyle(wxFontStyle fontStyle) { m_fontStyle = fontStyle; } + virtual void SetFontFamily(wxFontFamily fontFamily) { m_fontFamily = fontFamily; } virtual bool IsTextureOK(); + protected: void Init(); int RoundToPowerOfTwo(int value, int min = 32); @@ -51,6 +56,9 @@ class OpenGLText 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); |