View Full Version : open gl red book (files needed?)

10-31-2007, 03:13 PM
Hello I just read through the first two chapters of the open gl red book and it dosent say what libery files I need to include and header files I need to downloadf for it to work. If anyone knows what I need and whare I can obtain it to work with dev-c++ could you please help me.

10-31-2007, 06:47 PM
within dev-c++, use the package manager to download community devpaks, there are several good ones for starting OpenGL : some with glut/freeglut, or SDL, or pure win32...
Very easy to start.

10-31-2007, 08:34 PM
MS Developers Studio?

I was able to just start calling OpenGL functions from a blank project.
The MSDN help description for any OpenGL function tells you which header files you need to include.

To get the extensions to work, I had to download a sample project off the internet. I forget what package it used, but it included a file named extsetup.cpp. Which contained code that would go out and grab the extension functions that were available.

10-31-2007, 09:19 PM
Just use glew for extentions. One call to glewInit() and you're golden.

However, you'll have to make sure you have the latest drivers from NVIDIA or ATI if you want to ensure you have all possible extensions for your card.