PDA

View Full Version : OpenGL Files



09-01-2006, 08:39 PM
Excuse my lack of knoledge, especially if the answer is something that everyone already knows. I am beginning programming with C++ and OpenGL, but cannot find the actual OpenGL files anywhere on the internet. I am currently using the only one I could find, which is very old. Please direct me to any downloading source and correct my stupidity.

sqrt[-1]
09-01-2006, 10:51 PM
Most compilers (eg. Visual studio and Borland etc) on Windows only come with the necessary files for basic OpenGL 1.1 compiling. For anything above OpenGL 1.1 (on windows) you need to manually load the entry points or use a library to do it for you.
Recommended:
http://glew.sourceforge.net/
or
http://elf-stone.com/glee.php


Basic details on this:
http://www.opengl.org/wiki/index.php/Getting_started

Also if you are starting OpenGL, there are a few beginner tutorials on the web. A popular one is:
http://nehe.gamedev.net/

Rodrix
09-02-2006, 02:10 AM
I think you need these files:
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "glaux.lib")

Add those lines to your code, or include them under LInk if you are not using Visual C++ from Microsoft.

[Hey guys, everyone asks this question.
Can't we place a link to these files in the Wiki?
(or are they already there?)]


Hope it helps,
Rod

Zengar
09-02-2006, 03:08 AM
I bet it is in the wiki, but noone looks there :-/

plasmonster
09-02-2006, 03:10 AM
Sometimes the things right under your nose are the most difficult to see ;)

09-02-2006, 11:52 AM
Wow, that was a quick response. Thank you guys for your help, that should be enough.

-Richard