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/TransferFunction.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Project/TransferFunction.h') diff --git a/Project/TransferFunction.h b/Project/TransferFunction.h index f4ba344..e51de5a 100644 --- a/Project/TransferFunction.h +++ b/Project/TransferFunction.h @@ -46,6 +46,7 @@ class TransferFunction : public ControlElement ~TransferFunction(); virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext* gc) const; virtual bool Contains(wxPoint2DDouble position) const { return m_rect.Contains(position); } virtual bool Intersects(wxRect2DDouble rect) const { return m_rect.Intersects(rect); } virtual bool ShowForm(wxWindow* parent, Element* element); @@ -87,8 +88,8 @@ class TransferFunction : public ControlElement wchar_t m_supNumber[10]; - OpenGLText* m_glTextNum = NULL; - OpenGLText* m_glTextDen = NULL; + OpenGLText* m_glTextNum = nullptr; + OpenGLText* m_glTextDen = nullptr; int m_fontSize = 10; std::vector m_numerator; -- cgit