com.sun.opengl.impl.x11

Class GLXProcAddressTable


public class GLXProcAddressTable
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_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 functionName)
This is a convenience method to get (by name) the native function pointer for a given 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 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.