OpenGL in MFC
For those who are looking for a tutorial on how to get OpenGL in MFC there is a really good site that has pictures and everything so you cant go wrong unlike others ive seen.
Lesson 1: http://www.arturmarques.com/tutorials/opengl/opengl_intro.htm
Lesson 2: http://arturmarques.com/tutorials/opengl/lesson2/opengl_lesson2.htm
Lesson3: http://arturmarques.com/tutorials/opengl/lesson3/opengl_lesson3.htm
Mind if I self-pimp? I have a demo along that line too.
It's actually not that hard, all you do is get the DC of the dialog or child window and pass it to wglCreateContext just like you do in all of NeHe's demos.
The only real "gotcha" I've encountered so far was if you have more than 1 rendering contexts you either have to separate textures between them or call wglShareLists.
Love means nothing to a tennis player
[edited by - DalTXColtsFan on July 10, 2003 10:18:08 AM]
It's actually not that hard, all you do is get the DC of the dialog or child window and pass it to wglCreateContext just like you do in all of NeHe's demos.
The only real "gotcha" I've encountered so far was if you have more than 1 rendering contexts you either have to separate textures between them or call wglShareLists.
Love means nothing to a tennis player
My nothing-to-write-home-about OpenGL webpage. (please pardon the popups!)
[edited by - DalTXColtsFan on July 10, 2003 10:18:08 AM]
Love means nothing to a tennis player
My nothing-to-write-home-about OpenGL webpage. (please pardon the popups!)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement