OpenGL in VisualC++6 DLL
Hi, I''m using OpenGL in a win32-DLL (Visual C++6) to create a window and display some polygons. I''m not using the glMainLoop because I have my own loop to draw (I repaint the polygons in the WndProc of the OpenGL window that I have created - with CreateWindowEx -). The problem is that is painted.
My Draw routine does like this:
ClearGLScene();
...
glBegin(GL_POLYGON);
....
glVertex3d(x,y,z);
...
glEnd();
glFlush();
SwapBuffers(hDC);
...
I''ve done it before in a different DLL but I don''t know why in this one doesn''t work. Please, if you have any idea, tell me before I throw the PC out of the window...
Thanx all,
guille
I don;t really understand what the problem is.. are the polygons not rendered?
It might be a bit massive, but you could check out the DemoGL sourcecode (www.demogl.com/sourcecode.asp) which renders opengl based effects from a dll on a window that is created by that DLL. But perhaps if you explain your problem a bit more I''m able to answer it right away
--
Get productive, Get DemoGL: http://www.demogl.com
It might be a bit massive, but you could check out the DemoGL sourcecode (www.demogl.com/sourcecode.asp) which renders opengl based effects from a dll on a window that is created by that DLL. But perhaps if you explain your problem a bit more I''m able to answer it right away
--
Get productive, Get DemoGL: http://www.demogl.com
--
Get productive, Get DemoGL: http://www.demogl.com
Get productive, Get DemoGL: http://www.demogl.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement