Is anyone using [GLSL] under OS X? Is it even supposed to work?
a) search the archives
b) search the web
this question gets answered over and over again.
You make it sound easy but searching the archives all I see is a lot
of hopefully dated complaining about GLSL not being available.
GLSL is still not available.
There are four extensions that must be present for GLSL support to
work. Mac OS X 10.3.4 and later export ARB_shader_objects,
ARB_vertex_shader and ARB_fragment_shader from all renderers.
I see where the driver is returning these values but I do NOT see
where the header files have the functions defined. My:
Where's everyone getting their header file extensions from?
Apple hasn't yet updated the headers, presumably since the extensions
are still useless. You could use GLEW or similar (recommended for
cross-platform work anyway) to get access to them if you liked, but it
wouldn't do you any good since...
The fourth extension, ARB_shading_language_100, is not (yet) exported
by any renderers.
To really show my ignorance, why do I need this 4th if I already have
the first three. I need to check but I don't think the PC where we
have our shaders working has this language symbol defined.
Check again. It'll be there (and if it's not, you shouldn't be
assuming your shaders will work). This is the extension that asserts
that the functions defined by the other three extensions accept GLSL
1.0.0 code. Without it, no such guarantee is made. On the Mac, the
lack of support means "everything fails silently" (or did in 10.3.4 or
so, haven't checked recently...).
-Keith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden