Interface functions exist to provide access to various esoteria of the OpenGL Windowing Extension to X Window (GLX).
The OpenGL notion of a context is encapsulated in a higher
order construct, tvGLXContext. A suitable
context for TerraVision may be found by calling
tvGLX_FindContext(), which returns a
tvGLXContext structure. From this, the OpenGL context can be retrieved
by calling
tvGLX_GetContext().
Additional functions support setting and retrieving values in the tvGLXContext
structure.
tvGLX_SetTextureCache()
sets the texture cache, while
tvGLX_GetTextureCache()
returns it. Likewise,
tvGLX_SetRenderPrimitiveCache()
sets the RenderPrimitiveCache, and
tvGLX_GetRenderPrimitiveCache()
retrieves it.
(ISSUE: need discussion here on what these things are and how they
in turn are created).
Other function pairs are tvGLX_UseSharing()/ tvGLX_Sharing() for controlling the state of cache sharing (ISSUE: huh?), tvGLX_UseDoubleBuffer()/ tvGLX_DoubleBuffer() for setting OpenGL's double-buffering state, and tvGLX_UseStereo()/ tvGLX_Stereo() for controlling whether stereo views are to be generated.
The list of extensions supported by the local GLX implementation may be queried by calling tvGLX_GetGLXExtensions().
Rick Brownrigg Last modified: Fri Jun 2 15:19:22 CDT 2000