summaryrefslogtreecommitdiff
path: root/common/glwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/glwindow.h')
-rw-r--r--common/glwindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/glwindow.h b/common/glwindow.h
index 837a9c2..3354884 100644
--- a/common/glwindow.h
+++ b/common/glwindow.h
@@ -7,12 +7,16 @@ class GLWindow
GLWindow (GLWindow *share);
virtual ~GLWindow ();
- void Create (void* data);
+ bool Create (void* data);
void DestroyContext ();
bool MakeCurrent ();
void SwapBuffers ();
void Redraw ();
+ int GetWidth () const
+ { return m_nWidth; }
+ int GetHeight () const
+ { return m_nHeight; }
virtual void OnDraw () { };
virtual void OnSize (int cx, int cy)