com.sun.opengl.impl

Class GLUProcAddressTable


public class GLUProcAddressTable
extends 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.

Field Summary

long
_addressof_gluBuild1DMipmapLevels
long
_addressof_gluBuild1DMipmaps
long
_addressof_gluBuild2DMipmapLevels
long
_addressof_gluBuild2DMipmaps
long
_addressof_gluBuild3DMipmapLevels
long
_addressof_gluBuild3DMipmaps
long
_addressof_gluScaleImage

Method Summary

long
getAddressFor(String functionName)
This is a convenience method to get (by name) the native function pointer for a given function.

Field Details

_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

Method Details

getAddressFor

public long getAddressFor(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.

Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.