Hi
Apologies if this is in the wrong forum.
Does anyone know of any good tutorials for setting up OpenGL in Visual c++ 9.0? I have found a couple but most of them are horrifically out of date.
Hi
Apologies if this is in the wrong forum.
Does anyone know of any good tutorials for setting up OpenGL in Visual c++ 9.0? I have found a couple but most of them are horrifically out of date.
In what respect do you think that which version of compiler (or visual studio) you use would make a difference. Yes, the configuration entries for a setup is probably moved around in the IDE, which you should probably be able to find out how to do using the built in help.
Or ask specific questions here.
No one is going to update a tutorial that "works" just because there is one or two newer versions of MS tools.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Check out http://nehe.gamedev.net. They include project files I believe, and your new version should be able to convert them upon loading.
Hi, thanks. These were the tutorials I was initially looking at. Written in '97 and updated in 2000. When I followed his instructions exact I was confronted with a host of code errors. Also he talks about GLaux no longer being supported which is fine and offers some replacement code. But it's just a c++ source file, so I wasn't sure what to do with it.
I looked around at some other tutorials, some which said I should download glut32. But then where they say to put the lib files don't exist as a directory in vc9.
I don't know enough about it to work out the problems or what I have to do myself, but maybe that should be a sign that I'm trying to run before I can walk anyway...
I actually don't recommend nehe. They program to Win32 code when using a framework like GLFW or GLUT is much better. I recommend looking to the OpenGL Programming Guide (The Red book).
Also Nehe uses some weird libraries that you can't download from their site for some reason which frameworks provide for you. If you have to learn from them, at least read the manual for an OpenGL framework.
You don't really need tutorials for specific IDEs. You know need to understand how the IDEs works.
For Visual Studio, if you have source file, create a project, then right-click on the project and select add and existing file.
Then you can compile and use the source.
For using an API, usually you have to:
Get the proper headers.
Set up an include path to where those headers reside.
Get the proper libraries.
Set up an include path to where those libraries are.
Include correct headers in code where you use them.
Include the correct libraries under additional linker libraries.
Getting the proper headers & libraries means downloading the SDK for the particular API.
Setting up include paths can be done under tools -> options -> projects and solution -> VC++ directories (select include files and library files in the combobox).
Including the correct headers is a non-brainer since it's part of the C++ language.
The correct linker libraries is done by adding it under project options -> Linker -> input.
I found this
http://www.mrmoen.com/2008/03/30/ope...press-edition/
this is the kind of idiot proof tutorial a guy like me needs! :P
It worked well. Perhaps I should've done a bit more digging before starting this thread so apologies, but thanks to all who replied
the first 5 NEHE guides were cool just to get a taste of OpenGL, now i want more! too bad all the glaux stuff doesn't work. Another book to add to the list i suppose!
Sorry, but i'm a Code::Blocks man now.