summaryrefslogtreecommitdiffstats
path: root/Project/WorkspaceDC.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project/WorkspaceDC.h')
-rw-r--r--Project/WorkspaceDC.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/Project/WorkspaceDC.h b/Project/WorkspaceDC.h
index 609663a..7eaf419 100644
--- a/Project/WorkspaceDC.h
+++ b/Project/WorkspaceDC.h
@@ -4,15 +4,35 @@
#include <wx/graphics.h>
//#include <wx/dcclient.h>
#include <wx/dcbuffer.h>
-
+/**
+ * @brief A Workspace class that draws using Device Context.
+*/
class WorkspaceDC : public Workspace
{
public:
+ /**
+ * @brief Default constructor
+ */
WorkspaceDC();
+ /**
+ * @brief WorkspaceDC constructor
+ * @param parent Parent window
+ * @param name Project name (displayed at the tabs)
+ * @param statusBar Status bar to show useful info
+ * @return
+ */
WorkspaceDC(wxWindow* parent, wxString name = wxEmptyString, wxStatusBar* statusBar = nullptr);
~WorkspaceDC();
+ /**
+ * @brief Redraws the screen
+ */
virtual void Redraw() { this->Refresh(); }
+ /**
+ * @brief Get shared OpenGL context. This method prevents to share any OpenGL context when use DC.
+ * @return Aways nullptr
+ */
+ virtual wxGLContext* GetSharedGLContext() const { return nullptr; } // Prevent share any OpenGL context when use DC
protected:
virtual void OnPaint(wxPaintEvent& event);