View Full Version : OpenGL Headers and Libraries
Jesse
2003.10.14, 10:46 AM
What's the difference between OpenGL/gl.h, GL/gl.h, gl.h, AGL/agl.h, agl.h, etc.? I'm rebuilding my graphics engine project from the ground up, trying to get everything right, and I'm not quite clear on which headers I should be using.
I'm using Codewarrior, and developing in Carbon in OS 9.2.2 (I plan to tackle OS X later).
Thanks.
Originally posted by Jesse
What's the difference between OpenGL/gl.h, GL/gl.h, gl.h, AGL/agl.h, agl.h, etc.? I'm rebuilding my graphics engine project from the ground up, trying to get everything right, and I'm not quite clear on which headers I should be using.
I'm using Codewarrior, and developing in Carbon in OS 9.2.2 (I plan to tackle OS X later).
Thanks. OpenGL/gl.h would be the Mac OS X header file for gl* commands. GL/gl.h I believe is for Windows and *nix platforms and gl.h is Mac OS 9? AGL/agl.h is the header for all agl* commands in Mac OS X and agl.h is the Mac OS 9 version.
kelvin
2003.10.15, 02:11 AM
You don't even need AGL.
#import <OpenGL/OpenGL.h>
#import <OpenGL/gl.h>
#import <OpenGL/glu.h>
#import <OpenGL/glext.h>
is all I use.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.