Hey, here is the deal. I just began tring out this OpenGL thing and i thinks its pretty sweet. The problem is i have no idea how to begin a opengl program. I have read a bunch of tutorials and even downloaded some samples but i still don''t know how to setup my own program. I''m using Visual C++ 6.0 and i opened a MFC AppWizard(exe), choose "single document", database support "none", i chose MFC Standard as my project type, and ''As a shared DLL. It then generated some code and then i went to "Project - Settings" and choose the LINK Tab. Under "Object\Library Modules" i typed in opengl32.lib glu32.lib glaux.lib and then hit ok. A lot of code got generated but i don''t know what to do next. when i compile i got a blank white "Untitle - MFC myprogramname" window. What do i do next to start drawing stuff in this window? Where is the Int Main of the program.? I need some help here.
Also, if I know nothing about opengl what book do you recommend?
First, OpenGL in MFC is a pain to setup.. Everything has to be just right for it to work. I would stick to Win32 for now.
Second, Win32 is a pain when you first start looking at it. However you never have to touch it one you get OpenGL started. NEHE''s tutorial one is a great way to cut through this "Hard" time in your life.
Third, Don''t try to program Doom 3 right off the bat. OpenGL is a shinny hammer and just cause you have it does not mean you should go around hitting everything with it.
Ok. First thing, you dont use MFC APP wizard you use win32 stationary, or whatever the VC++ 6 compiler uses, it will sday win32. Then, if you really want some good tutorials, www.winprog.org. The first 3 tutorials are the ones you should read. Notice I said read? You cant skim you have to read, word for word, and then type the code they tell you. Then, go to NeHe''s tutorial.
"I''''ve sparred with creatures from the nine hells themselves... I barely plan on breaking a sweat here, today."~Drizzt Do''''Urden