Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


OpenGL in VisualC++6 DLL

This topic is 6479 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post

Link to post
Share on other sites
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

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!