public final class FunctionAvailabilityCache extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
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 integersGLException
- if the glFunctionName passed in is
not the name of any known OpenGL extension function.protected static String getExtensionCorrespondingToFunction(String glFunctionName)
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.