net.java.games.jogl.impl

Class GLUProcAddressTable


public class GLUProcAddressTable
extends java.lang.Object

This table is a cache of the native pointers to OpenGL extension functions, to be used for run-time linking of these extensions. These pointers are obtained by the OpenGL context via a platform-specific function (e.g., wglGetProcAddress() on Win32, glXGetProcAddress() on X11, etc). If the member variable _addressof_glFuncName is non-zero then function "glFuncName" can be called through the associated GLContext; if it is 0, then the extension is not available and cannot be called.

Field Summary

long
_addressof_gluBuild1DMipmapLevels
long
_addressof_gluBuild1DMipmaps
long
_addressof_gluBuild2DMipmapLevels
long
_addressof_gluBuild2DMipmaps
long
_addressof_gluBuild3DMipmapLevels
long
_addressof_gluBuild3DMipmaps
long
_addressof_gluCheckExtension
long
_addressof_gluCylinder
long
_addressof_gluDeleteQuadric
long
_addressof_gluDisk
long
_addressof_gluErrorString
long
_addressof_gluGetString
long
_addressof_gluLookAt
long
_addressof_gluNewQuadric
long
_addressof_gluOrtho2D
long
_addressof_gluPartialDisk
long
_addressof_gluPerspective
long
_addressof_gluPickMatrix
long
_addressof_gluQuadricDrawStyle
long
_addressof_gluQuadricNormals
long
_addressof_gluQuadricOrientation
long
_addressof_gluQuadricTexture
long
_addressof_gluScaleImage
long
_addressof_gluSphere

Method Summary

long
getAddressFor(String glFunctionName)
This is a convenience method to get (by name) the native function pointer for a given extension 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_gluCheckExtension

public long _addressof_gluCheckExtension

_addressof_gluCylinder

public long _addressof_gluCylinder

_addressof_gluDeleteQuadric

public long _addressof_gluDeleteQuadric

_addressof_gluDisk

public long _addressof_gluDisk

_addressof_gluErrorString

public long _addressof_gluErrorString

_addressof_gluGetString

public long _addressof_gluGetString

_addressof_gluLookAt

public long _addressof_gluLookAt

_addressof_gluNewQuadric

public long _addressof_gluNewQuadric

_addressof_gluOrtho2D

public long _addressof_gluOrtho2D

_addressof_gluPartialDisk

public long _addressof_gluPartialDisk

_addressof_gluPerspective

public long _addressof_gluPerspective

_addressof_gluPickMatrix

public long _addressof_gluPickMatrix

_addressof_gluQuadricDrawStyle

public long _addressof_gluQuadricDrawStyle

_addressof_gluQuadricNormals

public long _addressof_gluQuadricNormals

_addressof_gluQuadricOrientation

public long _addressof_gluQuadricOrientation

_addressof_gluQuadricTexture

public long _addressof_gluQuadricTexture

_addressof_gluScaleImage

public long _addressof_gluScaleImage

_addressof_gluSphere

public long _addressof_gluSphere

Method Details

getAddressFor

public long getAddressFor(String glFunctionName)
This is a convenience method to get (by name) the native function pointer for a given extension function. It lets you avoid having to manually compute the _addressof_ 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 GL extension, or one that is statically linked and therefore does not have a valid GL procedure address.