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?
GL_SELECT is getting deprecated, try another method or you could experience some issues with recent drivers.
look for “color buffer” or “queries”.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.