public final class FunctionAvailabilityCache
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
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 integersGLException
- 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)
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.