summaryrefslogtreecommitdiffstats
path: root/Project/WorkspaceDC.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-10 09:35:32 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-10 09:35:32 -0300
commit196389a70ef3a03aa8764b9532812a17dd55014b (patch)
tree5fd95e9295ccb9e92a660e7864ce332480716009 /Project/WorkspaceDC.h
parent4fdcfe16959a610a928064df73281f509425cbbf (diff)
downloadPSP.git-196389a70ef3a03aa8764b9532812a17dd55014b.tar.gz
PSP.git-196389a70ef3a03aa8764b9532812a17dd55014b.tar.xz
PSP.git-196389a70ef3a03aa8764b9532812a17dd55014b.zip
Control editor DC fixes
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);