PDA

View Full Version : mac extensions question



tod
07-19-2005, 11:58 PM
hi there.

im a newbie working on a g4 powerbook
GeForce FX Go5200 32MB

according to my extension viewer,
i have GL_ARB_texture_rectangle available.

but im having difficulty finding tutorials, besides
the usual windows proc address tooth pulling, on how to use extensions on the mac. Is there a particular header I need to include, or something similar to the windows routine?

in apples glext.h, i noted this define
#define GL_ARB_texture_rectangle 1
but including it did not allow me to use
GL_TEXTURE_RECTANGLE_ARB

any help or pointers to docs are appreciated
tod

arekkusu
07-20-2005, 05:04 PM
Unlike other platforms, you do not need to locate extension entry points on Mac OS X. All you need to do is
#include <OpenGL/glext.h>

What specifically are you having trouble with? Remember that the rectangle texture extension (http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_rectangle.txt) merely adds a new texture target with different behavior from TEXTURE_2D etc. It doesn't add any new API.

tod
07-22-2005, 08:43 AM
Thanks for confirming that.
Im pleased that I dont need that windows stuff.

I wasnt getting access to apples glext.h because
elsewhere in my project I used

#include "SDL_opengl.h"

to avoid crossplatform differences in gl includes.
Once I removed those I was fine.