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 com.jogamp.gluegen.runtime.ProcAddressTable
This table is a cache of pointers to the dynamically-linkable C
functions this autogenerated Java binding has exposed. Some
libraries such as OpenGL, OpenAL and others define function pointer
signatures rather than statically linkable entry points for the
purposes of being able to query at run-time whether a particular
extension is available. This table acts as a cache of these
function pointers. Each function pointer is typically looked up at
run-time by a platform-dependent mechanism such as dlsym(),
wgl/glXGetProcAddress(), or alGetProcAddress(). The associated
autogenerated Java and C code accesses the fields in this table to
call the various functions. If the field containing the function
pointer is 0, the function is considered to be unavailable and can
not be called.
Fields inherited from class com.jogamp.gluegen.runtime.ProcAddressTable |
DEBUG, DEBUG_PREFIX, debugNum, PROCADDRESS_VAR_PREFIX |
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 |
getDebugOutStream, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_addressof_glMapBuffer
public long _addressof_glMapBuffer
CGLExtProcAddressTable
public CGLExtProcAddressTable()
CGLExtProcAddressTable
public CGLExtProcAddressTable(com.jogamp.gluegen.runtime.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.
- Specified by:
getAddressFor
in class com.jogamp.gluegen.runtime.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.