|
|||||||||
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 String |
getExtensionCorrespondingToFunction(String glFunctionName)
Returns the extension name that corresponds to the given extension function. |
protected void |
initAvailableExtensions()
|
boolean |
isExtensionAvailable(String glExtensionName)
|
boolean |
isFunctionAvailable(String glFunctionName)
|
protected boolean |
isPartOfAvailableExtensions(String glFunctionName)
|
static boolean |
isPartOfGLCore(String glVersionString,
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(String glFunctionName)
public boolean isExtensionAvailable(String glExtensionName)
protected void initAvailableExtensions()
protected boolean isPartOfAvailableExtensions(String glFunctionName)
public static boolean isPartOfGLCore(String glVersionString, 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 String getExtensionCorrespondingToFunction(String glFunctionName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |