com.sun.opengl.impl
Class GLUProcAddressTable
java.lang.Object
com.sun.opengl.impl.GLUProcAddressTable
public class GLUProcAddressTable
- extends java.lang.Object
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.
Method Summary |
long |
getAddressFor(java.lang.String functionName)
This is a convenience method to get (by name) the native function
pointer for a given function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_addressof_gluBuild1DMipmapLevels
public long _addressof_gluBuild1DMipmapLevels
_addressof_gluBuild1DMipmaps
public long _addressof_gluBuild1DMipmaps
_addressof_gluBuild2DMipmapLevels
public long _addressof_gluBuild2DMipmapLevels
_addressof_gluBuild2DMipmaps
public long _addressof_gluBuild2DMipmaps
_addressof_gluBuild3DMipmapLevels
public long _addressof_gluBuild3DMipmapLevels
_addressof_gluBuild3DMipmaps
public long _addressof_gluBuild3DMipmaps
_addressof_gluScaleImage
public long _addressof_gluScaleImage
GLUProcAddressTable
public GLUProcAddressTable()
getAddressFor
public long getAddressFor(java.lang.String functionName)
- 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.
- Throws:
java.lang.RuntimeException
- if the function pointer was not found in
this table, either because the function was unknown or because
it was statically linked.
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.