net.java.games.jogl.impl
Class StaticGLInfo
java.lang.Object
net.java.games.jogl.impl.StaticGLInfo
public final class StaticGLInfo
extends java.lang.Object
static String | getFunctionAssociation(String glFunctionName) - Returns the OpenGL extension string or GL_VERSION string with which the
given function is associated.
|
getFunctionAssociation
public static String getFunctionAssociation(String glFunctionName)
Returns the OpenGL extension string or GL_VERSION string with which the
given function is associated.
If the
function is part of the OpenGL core, the returned value will be
GL_VERSION_XXX where XXX represents the OpenGL version of which the
function is a member (XXX will be of the form "A" or "A_B" or "A_B_C";
e.g., GL_VERSION_1_2_1 for OpenGL version 1.2.1).
If the function is an extension function, the returned value will the
OpenGL extension string for the extension to which the function
corresponds. For example, if glLoadTransposeMatrixfARB is the argument,
GL_ARB_transpose_matrix will be the value returned.
Please see http://oss.sgi.com/projects/ogl-sample/registry/index.html for
a list of extension names and the functions they expose.
If the function specified is not part of any known OpenGL core version or
extension, then NULL will be returned.