net.java.games.jogl.impl.x11

Class GLXProcAddressTable


public class GLXProcAddressTable
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_glXBindHyperpipeSGIX
long
_addressof_glXChooseFBConfig
long
_addressof_glXCreateNewContext
long
_addressof_glXCreatePbuffer
long
_addressof_glXCreatePixmap
long
_addressof_glXCreateWindow
long
_addressof_glXDestroyHyperpipeConfigSGIX
long
_addressof_glXDestroyPbuffer
long
_addressof_glXDestroyPixmap
long
_addressof_glXDestroyWindow
long
_addressof_glXGetAGPOffsetMESA
long
_addressof_glXGetCurrentDisplay
long
_addressof_glXGetCurrentReadDrawable
long
_addressof_glXGetFBConfigAttrib
long
_addressof_glXGetFBConfigs
long
_addressof_glXGetProcAddress
long
_addressof_glXGetSelectedEvent
long
_addressof_glXGetVisualFromFBConfig
long
_addressof_glXHyperpipeAttribSGIX
long
_addressof_glXHyperpipeConfigSGIX
long
_addressof_glXMakeContextCurrent
long
_addressof_glXQueryContext
long
_addressof_glXQueryDrawable
long
_addressof_glXQueryHyperpipeAttribSGIX
long
_addressof_glXQueryHyperpipeBestAttribSGIX
long
_addressof_glXQueryHyperpipeConfigSGIX
long
_addressof_glXQueryHyperpipeNetworkSGIX
long
_addressof_glXSelectEvent

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_glXBindHyperpipeSGIX

public long _addressof_glXBindHyperpipeSGIX

_addressof_glXChooseFBConfig

public long _addressof_glXChooseFBConfig

_addressof_glXCreateNewContext

public long _addressof_glXCreateNewContext

_addressof_glXCreatePbuffer

public long _addressof_glXCreatePbuffer

_addressof_glXCreatePixmap

public long _addressof_glXCreatePixmap

_addressof_glXCreateWindow

public long _addressof_glXCreateWindow

_addressof_glXDestroyHyperpipeConfigSGIX

public long _addressof_glXDestroyHyperpipeConfigSGIX

_addressof_glXDestroyPbuffer

public long _addressof_glXDestroyPbuffer

_addressof_glXDestroyPixmap

public long _addressof_glXDestroyPixmap

_addressof_glXDestroyWindow

public long _addressof_glXDestroyWindow

_addressof_glXGetAGPOffsetMESA

public long _addressof_glXGetAGPOffsetMESA

_addressof_glXGetCurrentDisplay

public long _addressof_glXGetCurrentDisplay

_addressof_glXGetCurrentReadDrawable

public long _addressof_glXGetCurrentReadDrawable

_addressof_glXGetFBConfigAttrib

public long _addressof_glXGetFBConfigAttrib

_addressof_glXGetFBConfigs

public long _addressof_glXGetFBConfigs

_addressof_glXGetProcAddress

public long _addressof_glXGetProcAddress

_addressof_glXGetSelectedEvent

public long _addressof_glXGetSelectedEvent

_addressof_glXGetVisualFromFBConfig

public long _addressof_glXGetVisualFromFBConfig

_addressof_glXHyperpipeAttribSGIX

public long _addressof_glXHyperpipeAttribSGIX

_addressof_glXHyperpipeConfigSGIX

public long _addressof_glXHyperpipeConfigSGIX

_addressof_glXMakeContextCurrent

public long _addressof_glXMakeContextCurrent

_addressof_glXQueryContext

public long _addressof_glXQueryContext

_addressof_glXQueryDrawable

public long _addressof_glXQueryDrawable

_addressof_glXQueryHyperpipeAttribSGIX

public long _addressof_glXQueryHyperpipeAttribSGIX

_addressof_glXQueryHyperpipeBestAttribSGIX

public long _addressof_glXQueryHyperpipeBestAttribSGIX

_addressof_glXQueryHyperpipeConfigSGIX

public long _addressof_glXQueryHyperpipeConfigSGIX

_addressof_glXQueryHyperpipeNetworkSGIX

public long _addressof_glXQueryHyperpipeNetworkSGIX

_addressof_glXSelectEvent

public long _addressof_glXSelectEvent

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.