From 6c0e98a2727d07e1fbb38b78c27d68e98ad09465 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 13 Jun 2020 00:01:53 -0300 Subject: Device context implemented --- Project/OpenGLText.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Project/OpenGLText.cpp') diff --git a/Project/OpenGLText.cpp b/Project/OpenGLText.cpp index 0dca4eb..3b8c276 100644 --- a/Project/OpenGLText.cpp +++ b/Project/OpenGLText.cpp @@ -71,9 +71,9 @@ void OpenGLText::Draw(wxPoint2DDouble position, double angle) const } } -void OpenGLText::DrawDC(wxPoint2DDouble position, wxGraphicsContext* gc, double angle) const +void OpenGLText::DrawDC(wxPoint2DDouble position, wxGraphicsContext* gc, double angle, wxColour colour) const { - gc->SetFont(wxFont(m_fontSize, m_fontFamily, m_fontStyle, m_fontWeight), wxColour(0, 0 , 0 , 255)); + gc->SetFont(wxFont(m_fontSize, m_fontFamily, m_fontStyle, m_fontWeight), colour); gc->DrawText(m_text, position.m_x, position.m_y, angle); } @@ -182,7 +182,7 @@ OpenGLText* OpenGLText::GetCopy() { OpenGLText* copy = new OpenGLText(); *copy = *this; - copy->m_textureID = NULL; + copy->m_textureID = nullptr; copy->m_bitmapSize = wxSize(0, 0); copy->m_bitmap = wxNullBitmap; copy->SetText(copy->m_text); -- cgit