|
GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java (public API).
|
Superclass for all generated ProcAddressTables. More...
Public Member Functions | |
| ProcAddressTable () | |
| ProcAddressTable (final FunctionAddressResolver resolver) | |
| void | reset (final DynamicLookupHelper lookup) throws SecurityException, RuntimeException |
| Resets the complete table. More... | |
| void | initEntry (final String name, final DynamicLookupHelper lookup) throws SecurityException, IllegalArgumentException |
| Initializes the mapping for a single function. More... | |
| final boolean | isFunctionAvailable (final String functionName) |
| Returns true only if non null function pointer to this function exists. More... | |
| long | getAddressFor (final String functionName) throws SecurityException, IllegalArgumentException |
| This is a convenience method to query the native function handle by name. More... | |
| final Set< String > | getNullPointerFunctions () |
| Returns all functions pointing to null. More... | |
| final String | toString () |
Protected Member Functions | |
| boolean | isFunctionAvailableImpl (final String functionName) throws IllegalArgumentException |
| This is a convenience method to query the native function existence by name. More... | |
Static Protected Attributes | |
| static boolean | DEBUG |
| static String | DEBUG_PREFIX |
| static int | debugNum |
Superclass for all generated ProcAddressTables.
A ProcAddressTable 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(). If the field containing the function pointer is 0, the function is considered to be unavailable and can not be called.
Definition at line 79 of file ProcAddressTable.java.
| com.jogamp.gluegen.runtime.ProcAddressTable.ProcAddressTable | ( | ) |
Definition at line 103 of file ProcAddressTable.java.
| com.jogamp.gluegen.runtime.ProcAddressTable.ProcAddressTable | ( | final FunctionAddressResolver | resolver | ) |
Definition at line 107 of file ProcAddressTable.java.
| long com.jogamp.gluegen.runtime.ProcAddressTable.getAddressFor | ( | final String | functionName | ) | throws SecurityException, IllegalArgumentException |
This is a convenience method to query the native function handle by name.
It lets you avoid having to manually compute the "PROCADDRESS_VAR_PREFIX + <functionName>" member variable name and look it up via reflection.
If a SecurityManager is installed, user needs link permissions for all libraries, i.e. for new RuntimePermission("loadLibrary.*");!
| IllegalArgumentException | if this function is not in this table. |
| SecurityException | if user is not granted access for all libraries. |
Definition at line 313 of file ProcAddressTable.java.
| final Set< String > com.jogamp.gluegen.runtime.ProcAddressTable.getNullPointerFunctions | ( | ) |
Returns all functions pointing to null.
Definition at line 326 of file ProcAddressTable.java.
| void com.jogamp.gluegen.runtime.ProcAddressTable.initEntry | ( | final String | name, |
| final DynamicLookupHelper | lookup | ||
| ) | throws SecurityException, IllegalArgumentException |
Initializes the mapping for a single function.
If a SecurityManager is installed, user needs link permissions for all libraries, i.e. for new RuntimePermission("loadLibrary.*");!
| IllegalArgumentException | if this function is not in this table. |
| SecurityException | if user is not granted access for all libraries. |
Definition at line 168 of file ProcAddressTable.java.
| final boolean com.jogamp.gluegen.runtime.ProcAddressTable.isFunctionAvailable | ( | final String | functionName | ) |
Returns true only if non null function pointer to this function exists.
Definition at line 271 of file ProcAddressTable.java.
|
protected |
This is a convenience method to query the native function existence by name.
It lets you avoid having to manually compute the "PROCADDRESS_VAR_PREFIX + <functionName>" member variable name and look it up via reflection.
| IllegalArgumentException | if this function is not in this table. |
Definition at line 289 of file ProcAddressTable.java.
| void com.jogamp.gluegen.runtime.ProcAddressTable.reset | ( | final DynamicLookupHelper | lookup | ) | throws SecurityException, RuntimeException |
Resets the complete table.
If a SecurityManager is installed, user needs link permissions for all libraries, i.e. for new RuntimePermission("loadLibrary.*");!
| SecurityException | if user is not granted access for all libraries. |
Definition at line 120 of file ProcAddressTable.java.
| final String com.jogamp.gluegen.runtime.ProcAddressTable.toString | ( | ) |
Definition at line 340 of file ProcAddressTable.java.
|
staticprotected |
Definition at line 84 of file ProcAddressTable.java.
|
staticprotected |
Definition at line 85 of file ProcAddressTable.java.
|
staticprotected |
Definition at line 86 of file ProcAddressTable.java.