Jump to content
  • Advertisement
Sign in to follow this  
Elsenhans2

Need help with OpenGL and MFC

This topic is 5137 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi folks! I'm a total newbie in the field of OpenGL and MFC programming. I managed to run an OpenGL child window within a dialog window, added some controls to it and made some objects rotate by mouse. Now I have two problems: 1 - Where can I place OpenGL commands to set up the OpenGL scene and the camera? I tried to put them everywhere but nothing ever happened. 2 - Where can I create display lists? It's like with problem number one, I put them everywhere and nothing happened. I adapted my code from the tutorial "How to Create a CHILD OpenGL Window in a Dialog" by Marc Guy on www.codeguru.com I hope these questions are not too stupid and maybe someone can answer them. Thank you in advance, Elsenhans

Share this post


Link to post
Share on other sites
Advertisement
Actually, it's quite a bit, to tackle both (MFC _and_ OpenGL) in one shot (in my opinion at least).
So, maybe it would be easier to start off with either one of the two first.

Great OpenGL tutorials are the NeHe tutorials here on GameDev.net (doesn't know the link right now, but you shouldn't have any trouble finding them).

MFC actually is a mess (again: My opinion) and I don't know any good tutorials for them, but try MSDN and google.

As for your questions, you will find that they are both covered in the NeHe tutorials. Once you understand the architecture of OpenGL it will become easy---to understand the structure, read NeHe :-)

Have fun!! And good luck!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!