Good day. I try to learn Multi-Texturing in Jogl. Like in the Win32 tutorial http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg2.htm
I’m new to OpenGL and extensions. Like the tutorial, my program should ask at runtime if the extension “glActiveTextureARB” is available. So I’ve to use the gl.isExtensionAvailable(…), but how?
Are the Jogl extension names different to the OpenGL ones? I read the Jogl Javadoc (javadoc_public.tar.gz) which says the ARB or EXT is in front of the name, but I don’t understand it. Which extension name do I have to use for glActiveTextureARB when I call gl.isExtenionsAvailable(…) ? The Jogl demos just use the function without asking if it’s available.
JOGL does report this:
gl.isExtensionAvailable("GL_EXT_texture_lod"). . . . . . -> true
gl.isExtensionAvailable("GL_ARB_vertex_buffer_object") . -> true
gl.isExtensionAvailable("GL_EXT_abgr") . . . . . . . . . -> true
gl.isExtensionAvailable("GL_ARB_multitexture") . . . . . -> true
gl.isExtensionAvailable("GL_activetexture"). . . . . . . -> false
gl.isExtensionAvailable("GL_ARB_activetexture"). . . . . -> false
By the way the extension glActiveTextureARB can be found in the GlExt.h file here http://oss.sgi.com/projects/ogl-sample/ABI/glext.h but not in the OpenGL registry http://oss.sgi.com/projects/ogl-sample/registry/ . Why is this?