Mac extensions question

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

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 merely adds a new texture target with different behavior from TEXTURE_2D etc. It doesn’t add any new API.

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.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.