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 in MFC

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2008
    Posts
    2

    OpenGL in MFC

    Hi I'm developing a MFC application using OpenGL. I was able to render OpenGL in the picture control of MFC. The problems is I need to be able to select objects created in opengl. I found some code online and I know i need to use the select buffer and GL_SELECT. However, the last spot int he select buffer is the x coordiante of the mouse on the screen not of the window.Can i still use the glu mouse function since i used the HWND and the DC of the picture control to select the objects. Or is there anothe easy way that will allow me to select the objects?

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2006
    Posts
    20

    Re: OpenGL in MFC

    GL_SELECT is getting deprecated, try another method or you could experience some issues with recent drivers.

    look for "color buffer" or "queries".

Posting Permissions

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