com.sun.opengl.impl
Class StaticGLInfo

java.lang.Object
  extended by com.sun.opengl.impl.StaticGLInfo

public final class StaticGLInfo
extends java.lang.Object


Constructor Summary
StaticGLInfo()
           
 
Method Summary
static java.lang.String getFunctionAssociation(java.lang.String glFunctionName)
          Returns the OpenGL extension string or GL_VERSION string with which the given function is associated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticGLInfo

public StaticGLInfo()
Method Detail

getFunctionAssociation

public static java.lang.String getFunctionAssociation(java.lang.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.



Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.