com.sun.opengl.impl.x11

Class GLXExtProcAddressTable


public class GLXExtProcAddressTable
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_glXAllocateMemoryNV
long
_addressof_glXBindChannelToWindowSGIX
long
_addressof_glXBindSwapBarrierSGIX
long
_addressof_glXChannelRectSGIX
long
_addressof_glXChannelRectSyncSGIX
long
_addressof_glXCopySubBufferMESA
long
_addressof_glXCushionSGI
long
_addressof_glXFreeContextEXT
long
_addressof_glXFreeMemoryNV
long
_addressof_glXGetAGPOffsetMESA
long
_addressof_glXGetContextIDEXT
long
_addressof_glXGetCurrentDisplayEXT
long
_addressof_glXGetCurrentReadDrawableSGI
long
_addressof_glXGetProcAddressARB
long
_addressof_glXGetTransparentIndexSUN
long
_addressof_glXGetVideoSyncSGI
long
_addressof_glXImportContextEXT
long
_addressof_glXJoinSwapGroupSGIX
long
_addressof_glXMakeCurrentReadSGI
long
_addressof_glXQueryChannelDeltasSGIX
long
_addressof_glXQueryChannelRectSGIX
long
_addressof_glXQueryContextInfoEXT
long
_addressof_glXQueryMaxSwapBarriersSGIX
long
_addressof_glXReleaseBuffersMESA
long
_addressof_glXSet3DfxModeMESA
long
_addressof_glXSwapIntervalSGI
long
_addressof_glXWaitVideoSyncSGI

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_glXAllocateMemoryNV

public long _addressof_glXAllocateMemoryNV

_addressof_glXBindChannelToWindowSGIX

public long _addressof_glXBindChannelToWindowSGIX

_addressof_glXBindSwapBarrierSGIX

public long _addressof_glXBindSwapBarrierSGIX

_addressof_glXChannelRectSGIX

public long _addressof_glXChannelRectSGIX

_addressof_glXChannelRectSyncSGIX

public long _addressof_glXChannelRectSyncSGIX

_addressof_glXCopySubBufferMESA

public long _addressof_glXCopySubBufferMESA

_addressof_glXCushionSGI

public long _addressof_glXCushionSGI

_addressof_glXFreeContextEXT

public long _addressof_glXFreeContextEXT

_addressof_glXFreeMemoryNV

public long _addressof_glXFreeMemoryNV

_addressof_glXGetAGPOffsetMESA

public long _addressof_glXGetAGPOffsetMESA

_addressof_glXGetContextIDEXT

public long _addressof_glXGetContextIDEXT

_addressof_glXGetCurrentDisplayEXT

public long _addressof_glXGetCurrentDisplayEXT

_addressof_glXGetCurrentReadDrawableSGI

public long _addressof_glXGetCurrentReadDrawableSGI

_addressof_glXGetProcAddressARB

public long _addressof_glXGetProcAddressARB

_addressof_glXGetTransparentIndexSUN

public long _addressof_glXGetTransparentIndexSUN

_addressof_glXGetVideoSyncSGI

public long _addressof_glXGetVideoSyncSGI

_addressof_glXImportContextEXT

public long _addressof_glXImportContextEXT

_addressof_glXJoinSwapGroupSGIX

public long _addressof_glXJoinSwapGroupSGIX

_addressof_glXMakeCurrentReadSGI

public long _addressof_glXMakeCurrentReadSGI

_addressof_glXQueryChannelDeltasSGIX

public long _addressof_glXQueryChannelDeltasSGIX

_addressof_glXQueryChannelRectSGIX

public long _addressof_glXQueryChannelRectSGIX

_addressof_glXQueryContextInfoEXT

public long _addressof_glXQueryContextInfoEXT

_addressof_glXQueryMaxSwapBarriersSGIX

public long _addressof_glXQueryMaxSwapBarriersSGIX

_addressof_glXReleaseBuffersMESA

public long _addressof_glXReleaseBuffersMESA

_addressof_glXSet3DfxModeMESA

public long _addressof_glXSet3DfxModeMESA

_addressof_glXSwapIntervalSGI

public long _addressof_glXSwapIntervalSGI

_addressof_glXWaitVideoSyncSGI

public long _addressof_glXWaitVideoSyncSGI

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.