com.sun.opengl.impl.x11
Class GLXExtProcAddressTable

java.lang.Object
  extended by com.sun.opengl.impl.x11.GLXExtProcAddressTable

public class GLXExtProcAddressTable
extends java.lang.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_glXBindSwapBarrierNV
           
 long _addressof_glXBindSwapBarrierSGIX
           
 long _addressof_glXBindTexImageEXT
           
 long _addressof_glXBindVideoImageNV
           
 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_glXGetMscRateOML
           
 long _addressof_glXGetProcAddressARB
           
 long _addressof_glXGetSyncValuesOML
           
 long _addressof_glXGetTransparentIndexSUN
           
 long _addressof_glXGetVideoDeviceNV
           
 long _addressof_glXGetVideoInfoNV
           
 long _addressof_glXGetVideoSyncSGI
           
 long _addressof_glXImportContextEXT
           
 long _addressof_glXJoinSwapGroupNV
           
 long _addressof_glXJoinSwapGroupSGIX
           
 long _addressof_glXMakeCurrentReadSGI
           
 long _addressof_glXQueryChannelDeltasSGIX
           
 long _addressof_glXQueryChannelRectSGIX
           
 long _addressof_glXQueryContextInfoEXT
           
 long _addressof_glXQueryFrameCountNV
           
 long _addressof_glXQueryMaxSwapBarriersSGIX
           
 long _addressof_glXQueryMaxSwapGroupsNV
           
 long _addressof_glXQuerySwapGroupNV
           
 long _addressof_glXReleaseBuffersMESA
           
 long _addressof_glXReleaseTexImageEXT
           
 long _addressof_glXReleaseVideoDeviceNV
           
 long _addressof_glXReleaseVideoImageNV
           
 long _addressof_glXResetFrameCountNV
           
 long _addressof_glXSendPbufferToVideoNV
           
 long _addressof_glXSet3DfxModeMESA
           
 long _addressof_glXSwapBuffersMscOML
           
 long _addressof_glXSwapIntervalSGI
           
 long _addressof_glXWaitForMscOML
           
 long _addressof_glXWaitForSbcOML
           
 long _addressof_glXWaitVideoSyncSGI
           
 
Constructor Summary
GLXExtProcAddressTable()
           
 
Method Summary
 long getAddressFor(java.lang.String functionName)
          This is a convenience method to get (by name) the native function pointer for a given function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_addressof_glXAllocateMemoryNV

public long _addressof_glXAllocateMemoryNV

_addressof_glXBindChannelToWindowSGIX

public long _addressof_glXBindChannelToWindowSGIX

_addressof_glXBindSwapBarrierNV

public long _addressof_glXBindSwapBarrierNV

_addressof_glXBindSwapBarrierSGIX

public long _addressof_glXBindSwapBarrierSGIX

_addressof_glXBindTexImageEXT

public long _addressof_glXBindTexImageEXT

_addressof_glXBindVideoImageNV

public long _addressof_glXBindVideoImageNV

_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_glXGetMscRateOML

public long _addressof_glXGetMscRateOML

_addressof_glXGetProcAddressARB

public long _addressof_glXGetProcAddressARB

_addressof_glXGetSyncValuesOML

public long _addressof_glXGetSyncValuesOML

_addressof_glXGetTransparentIndexSUN

public long _addressof_glXGetTransparentIndexSUN

_addressof_glXGetVideoDeviceNV

public long _addressof_glXGetVideoDeviceNV

_addressof_glXGetVideoInfoNV

public long _addressof_glXGetVideoInfoNV

_addressof_glXGetVideoSyncSGI

public long _addressof_glXGetVideoSyncSGI

_addressof_glXImportContextEXT

public long _addressof_glXImportContextEXT

_addressof_glXJoinSwapGroupNV

public long _addressof_glXJoinSwapGroupNV

_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_glXQueryFrameCountNV

public long _addressof_glXQueryFrameCountNV

_addressof_glXQueryMaxSwapBarriersSGIX

public long _addressof_glXQueryMaxSwapBarriersSGIX

_addressof_glXQueryMaxSwapGroupsNV

public long _addressof_glXQueryMaxSwapGroupsNV

_addressof_glXQuerySwapGroupNV

public long _addressof_glXQuerySwapGroupNV

_addressof_glXReleaseBuffersMESA

public long _addressof_glXReleaseBuffersMESA

_addressof_glXReleaseTexImageEXT

public long _addressof_glXReleaseTexImageEXT

_addressof_glXReleaseVideoDeviceNV

public long _addressof_glXReleaseVideoDeviceNV

_addressof_glXReleaseVideoImageNV

public long _addressof_glXReleaseVideoImageNV

_addressof_glXResetFrameCountNV

public long _addressof_glXResetFrameCountNV

_addressof_glXSendPbufferToVideoNV

public long _addressof_glXSendPbufferToVideoNV

_addressof_glXSet3DfxModeMESA

public long _addressof_glXSet3DfxModeMESA

_addressof_glXSwapBuffersMscOML

public long _addressof_glXSwapBuffersMscOML

_addressof_glXSwapIntervalSGI

public long _addressof_glXSwapIntervalSGI

_addressof_glXWaitForMscOML

public long _addressof_glXWaitForMscOML

_addressof_glXWaitForSbcOML

public long _addressof_glXWaitForSbcOML

_addressof_glXWaitVideoSyncSGI

public long _addressof_glXWaitVideoSyncSGI
Constructor Detail

GLXExtProcAddressTable

public GLXExtProcAddressTable()
Method Detail

getAddressFor

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

Throws:
java.lang.RuntimeException - if the function pointer was not found in this table, either because the function was unknown or because it was statically linked.


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