com.jogamp.opengl.impl.macosx.cgl
Class CGLExtProcAddressTable
java.lang.Object
com.jogamp.gluegen.runtime.ProcAddressTable
com.jogamp.opengl.impl.macosx.cgl.CGLExtProcAddressTable
public class CGLExtProcAddressTable
- extends ProcAddressTable
This table is a cache of pointers to the dynamically-linkable C library.
- See Also:
ProcAddressTable
Method Summary |
long |
getAddressFor(String functionNameUsr)
This is a convenience method to get (by name) the native function
pointer for a given function. |
Methods inherited from class com.jogamp.gluegen.runtime.ProcAddressTable |
fieldForFunction, fieldToFunctionName, getDebugOutStream, getNullPointerFunctions, initEntry, isAddressField, isFunctionAvailable, reset, setEntry, toMap, toString |
_addressof_glMapBuffer
public long _addressof_glMapBuffer
CGLExtProcAddressTable
public CGLExtProcAddressTable()
CGLExtProcAddressTable
public CGLExtProcAddressTable(FunctionAddressResolver resolver)
getAddressFor
public long getAddressFor(String functionNameUsr)
- This is a convenience method to get (by name) the native function
pointer for a given function. It lets you avoid having to
manually compute the "_addressof_ +
<functionName>" member variable name and look it up via
reflection; it also will throw an exception if you try to get the
address of an unknown function, or one that is statically linked
and therefore does not have a function pointer in this table.
- Overrides:
getAddressFor
in class ProcAddressTable
- Throws:
RuntimeException
- if the function pointer was not found in
this table, either because the function was unknown or because
it was statically linked.
Copyright 2010 JogAmp Community.