Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Missing methods in Win32 version of GLCtrl
Missing methods in Win32 version of GLCtrl [message #18627] |
Sun, 12 October 2008 21:52 |
cas_
Messages: 20 Registered: July 2008 Location: Poland
|
Promising Member |
|
|
Hi!
X11 version of GLCtrl has two useful virtual methods, which are not present in GLCtrl's Win32 counterpart. I propose following changes:
On the bottom of Win32's GLCtrl class definition:
-- cut here --
protected:
virtual void GLInit() {};
virtual void GLDone() {};
-- cut here --
Now, on the bottom of void GLCtrl::OpenGL() in Win32GlCtrl.cpp:
-- cut here --
wglMakeCurrent(hDC, hRC);
GLInit();
-- cut here --
and on the top of void GLCtrl::CloseGL():
-- cut here --
GLDone();
-- cut here --
|
|
|
Goto Forum:
Current Time: Mon May 13 08:10:18 CEST 2024
Total time taken to generate the page: 0.02497 seconds
|