View Full Version : OpenGL, MFC and GLUT
03-26-2001, 10:44 PM
I am another fresher in OpenGL and going through the starting troubles on setting up OpenGl with MFC. Is it possible to integrate OpenGl applications with MFC and use GLUT.
How is it done. Thanks
03-27-2001, 06:45 AM
It's possible, but kind of ugly. You will only be able to use Glut OR MFC for your windowing functions. I'm not quite sure why you'd need both. If you want to use Glut for the windowing and just want MFC for stuff like CString, look at how the Appwizard sets up a console project with MFC support. If you want to use MFC for the windowing and Glut for stuff like glutSolidSphere, then create the MFC window to be initialized with OpenGL, and the glutSolidSphere, etc. should work. You cannot do something like create a window with MFC and use glut callback functions. Likewise, you cannot use glut to create the window and use MFC message handling.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.