summaryrefslogtreecommitdiff
path: root/common/glwindow.h
diff options
context:
space:
mode:
authorleo2001-01-25 23:06:11 +0000
committerleo2001-01-25 23:06:11 +0000
commitfdaeae206f67ce36fcc58e72897a731489691768 (patch)
treebbc33ffb413ceca9a42fbf75e9695a695eedc939 /common/glwindow.h
parent789d7a2a8eabb75bdc7d13d34b07bc219252b084 (diff)
Multiple project views
git-svn-id: http://svn.leocad.org/trunk@227 c7d43263-9d01-0410-8a33-9dba5d9f93d6
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)