summaryrefslogtreecommitdiffstats
path: root/Project/OpenGLText.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-19 22:00:05 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-19 22:00:05 -0200
commit54bb80251432ff49c967115f8401e7dafc5c57d6 (patch)
tree3de8eada5c3c601764f60734b71707e95260eeb7 /Project/OpenGLText.h
parentc8193665975686fb8a344bee3dc94914a3d3558a (diff)
downloadPSP.git-54bb80251432ff49c967115f8401e7dafc5c57d6.tar.gz
PSP.git-54bb80251432ff49c967115f8401e7dafc5c57d6.tar.xz
PSP.git-54bb80251432ff49c967115f8401e7dafc5c57d6.zip
Several implementations on math expression block
Diffstat (limited to 'Project/OpenGLText.h')
-rw-r--r--Project/OpenGLText.h10
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);