com.sun.opengl.impl.x11
Class GLXProcAddressTable

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

public class GLXProcAddressTable
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_glXBindHyperpipeSGIX
           
 long _addressof_glXBindSwapBarrierNV
           
 long _addressof_glXBindTexImageEXT
           
 long _addressof_glXBindVideoImageNV
           
 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_glXGetVideoDeviceNV
           
 long _addressof_glXGetVideoInfoNV
           
 long _addressof_glXGetVisualFromFBConfig
           
 long _addressof_glXHyperpipeAttribSGIX
           
 long _addressof_glXHyperpipeConfigSGIX
           
 long _addressof_glXJoinSwapGroupNV
           
 long _addressof_glXMakeContextCurrent
           
 long _addressof_glXQueryContext
           
 long _addressof_glXQueryDrawable
           
 long _addressof_glXQueryFrameCountNV
           
 long _addressof_glXQueryHyperpipeAttribSGIX
           
 long _addressof_glXQueryHyperpipeBestAttribSGIX
           
 long _addressof_glXQueryHyperpipeConfigSGIX
           
 long _addressof_glXQueryHyperpipeNetworkSGIX
           
 long _addressof_glXQueryMaxSwapGroupsNV
           
 long _addressof_glXQuerySwapGroupNV
           
 long _addressof_glXReleaseTexImageEXT
           
 long _addressof_glXReleaseVideoDeviceNV
           
 long _addressof_glXReleaseVideoImageNV
           
 long _addressof_glXResetFrameCountNV
           
 long _addressof_glXSelectEvent
           
 long _addressof_glXSendPbufferToVideoNV
           
 
Constructor Summary
GLXProcAddressTable()
           
 
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_glXBindHyperpipeSGIX

public long _addressof_glXBindHyperpipeSGIX

_addressof_glXBindSwapBarrierNV

public long _addressof_glXBindSwapBarrierNV

_addressof_glXBindTexImageEXT

public long _addressof_glXBindTexImageEXT

_addressof_glXBindVideoImageNV

public long _addressof_glXBindVideoImageNV

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

public long _addressof_glXGetVideoDeviceNV

_addressof_glXGetVideoInfoNV

public long _addressof_glXGetVideoInfoNV

_addressof_glXGetVisualFromFBConfig

public long _addressof_glXGetVisualFromFBConfig

_addressof_glXHyperpipeAttribSGIX

public long _addressof_glXHyperpipeAttribSGIX

_addressof_glXHyperpipeConfigSGIX

public long _addressof_glXHyperpipeConfigSGIX

_addressof_glXJoinSwapGroupNV

public long _addressof_glXJoinSwapGroupNV

_addressof_glXMakeContextCurrent

public long _addressof_glXMakeContextCurrent

_addressof_glXQueryContext

public long _addressof_glXQueryContext

_addressof_glXQueryDrawable

public long _addressof_glXQueryDrawable

_addressof_glXQueryFrameCountNV

public long _addressof_glXQueryFrameCountNV

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

public long _addressof_glXQueryMaxSwapGroupsNV

_addressof_glXQuerySwapGroupNV

public long _addressof_glXQuerySwapGroupNV

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

public long _addressof_glXSelectEvent

_addressof_glXSendPbufferToVideoNV

public long _addressof_glXSendPbufferToVideoNV
Constructor Detail

GLXProcAddressTable

public GLXProcAddressTable()
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.