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?
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".