com.jogamp.opengl.impl.macosx.cgl
Class CGLExtProcAddressTable

java.lang.Object
  extended by com.jogamp.gluegen.runtime.ProcAddressTable
      extended by 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

Field Summary
 long _addressof_glMapBuffer
           
 
Fields inherited from class com.jogamp.gluegen.runtime.ProcAddressTable
DEBUG, DEBUG_PREFIX, debugNum, PROCADDRESS_VAR_PREFIX
 
Constructor Summary
CGLExtProcAddressTable()
           
CGLExtProcAddressTable(FunctionAddressResolver resolver)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_addressof_glMapBuffer

public long _addressof_glMapBuffer
Constructor Detail

CGLExtProcAddressTable

public CGLExtProcAddressTable()

CGLExtProcAddressTable

public CGLExtProcAddressTable(FunctionAddressResolver resolver)
Method Detail

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.