|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.opengl.impl.FunctionAvailabilityCache
public final class FunctionAvailabilityCache
A utility object intended to be used by implementations to act as a cache of which OpenGL functions are currently available on both the host machine and display.
Method Summary | |
---|---|
void |
flush()
Flush the cache. |
protected static java.lang.String |
getExtensionCorrespondingToFunction(java.lang.String glFunctionName)
Returns the extension name that corresponds to the given extension function. |
protected void |
initAvailableExtensions()
|
boolean |
isExtensionAvailable(java.lang.String glExtensionName)
|
boolean |
isFunctionAvailable(java.lang.String glFunctionName)
|
protected boolean |
isPartOfAvailableExtensions(java.lang.String glFunctionName)
|
static boolean |
isPartOfGLCore(java.lang.String glVersionString,
java.lang.String glFunctionName)
Returns true if the given OpenGL function is part of the OpenGL core that corresponds to the give OpenGL version string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void flush()
isFunctionAvailable(String)
are received.
public boolean isFunctionAvailable(java.lang.String glFunctionName)
public boolean isExtensionAvailable(java.lang.String glExtensionName)
protected void initAvailableExtensions()
protected boolean isPartOfAvailableExtensions(java.lang.String glFunctionName)
public static boolean isPartOfGLCore(java.lang.String glVersionString, java.lang.String glFunctionName)
glVersionString
- must be of the form "X" or "X.Y" or "X.Y.Z", where
X, Y, and Z are integers
GLException
- if the glFunctionName passed in is
not the name of any known OpenGL extension function.protected static java.lang.String getExtensionCorrespondingToFunction(java.lang.String glFunctionName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |