summaryrefslogtreecommitdiff
path: root/common/glwindow.h
diff options
context:
space:
mode:
authorleo2001-01-29 23:40:20 +0000
committerleo2001-01-29 23:40:20 +0000
commit284ee630366231f6a0c893c9b3d3ce1d62b925d6 (patch)
tree73474cfa4884260b75d942c9e3847c4663dbde28 /common/glwindow.h
parent07636fc79aa7bcc76746e742925593ff085f076e (diff)
Minifig Wizard fixes
git-svn-id: http://svn.leocad.org/trunk@235 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/glwindow.h')
-rw-r--r--common/glwindow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/glwindow.h b/common/glwindow.h
index 8559c4b..caba367 100644
--- a/common/glwindow.h
+++ b/common/glwindow.h
@@ -7,6 +7,11 @@ class GLWindow
GLWindow (GLWindow *share);
virtual ~GLWindow ();
+ void IncRef ()
+ { m_nRef++; }
+ void DecRef ()
+ { m_nRef--; if (m_nRef == 0) delete this; }
+
bool Create (void* data);
void DestroyContext ();
@@ -38,6 +43,7 @@ class GLWindow
private:
void *m_pData;
GLWindow *m_pShare;
+ int m_nRef;
};
#endif // _GLWINDOW_H_