Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: OpenGL, MFC and GLUT

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2001
    Location
    India
    Posts
    17

    OpenGL, MFC and GLUT

    Hello,
    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

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: OpenGL, MFC and GLUT

    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.
    Deiussum
    Software Engineer and OpenGL enthusiast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •