From 54bb80251432ff49c967115f8401e7dafc5c57d6 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 19 Dec 2017 22:00:05 -0200 Subject: Several implementations on math expression block --- Project/OpenGLText.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Project/OpenGLText.h') 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); -- cgit