public class GLX
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GLX.Functions
Contains the function pointers loaded from
GL.getFunctionProvider(). |
| Modifier and Type | Field and Description |
|---|---|
static int |
GLX_ACCUM_ALPHA_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_ACCUM_BLUE_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_ACCUM_GREEN_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_ACCUM_RED_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_ALPHA_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_AUX_BUFFERS
Names for attributes to
GetConfig. |
static int |
GLX_BAD_ATTRIBUTE
Error return values from
GetConfig. |
static int |
GLX_BAD_CONTEXT
Error return values from
GetConfig. |
static int |
GLX_BAD_ENUM
Error return values from
GetConfig. |
static int |
GLX_BAD_SCREEN
Error return values from
GetConfig. |
static int |
GLX_BAD_VALUE
Error return values from
GetConfig. |
static int |
GLX_BAD_VISUAL
Error return values from
GetConfig. |
static int |
GLX_BLUE_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_BUFFER_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_DEPTH_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_DOUBLEBUFFER
Names for attributes to
GetConfig. |
static int |
GLX_GREEN_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_LEVEL
Names for attributes to
GetConfig. |
static int |
GLX_NO_EXTENSION
Error return values from
GetConfig. |
static int |
GLX_RED_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_RGBA
Names for attributes to
GetConfig. |
static int |
GLX_STENCIL_SIZE
Names for attributes to
GetConfig. |
static int |
GLX_STEREO
Names for attributes to
GetConfig. |
static int |
GLX_USE_GL
Names for attributes to
GetConfig. |
static int |
GLXBadContext
Errors.
|
static int |
GLXBadContextState
Errors.
|
static int |
GLXBadContextTag
Errors.
|
static int |
GLXBadCurrentDrawable
Errors.
|
static int |
GLXBadCurrentWindow
Errors.
|
static int |
GLXBadDrawable
Errors.
|
static int |
GLXBadFBConfig
Errors.
|
static int |
GLXBadLargeRequest
Errors.
|
static int |
GLXBadPbuffer
Errors.
|
static int |
GLXBadPixmap
Errors.
|
static int |
GLXBadRenderRequest
Errors.
|
static int |
GLXBadWindow
Errors.
|
static int |
GLXUnsupportedPrivateRequest
Errors.
|
| Modifier and Type | Method and Description |
|---|---|
static org.lwjgl.system.linux.XVisualInfo |
glXChooseVisual(long display,
int screen,
int[] attrib_list)
Array version of:
ChooseVisual |
static org.lwjgl.system.linux.XVisualInfo |
glXChooseVisual(long display,
int screen,
java.nio.IntBuffer attrib_list)
Finds a visual that matches the client’s specified attributes.
|
static void |
glXCopyContext(long display,
long source,
long dest,
long mask)
Copies OpenGL rendering state from one context to another.
|
static long |
glXCreateContext(long display,
org.lwjgl.system.linux.XVisualInfo visual,
long share_list,
boolean direct)
Creates an OpenGL context.
|
static long |
glXCreateGLXPixmap(long display,
org.lwjgl.system.linux.XVisualInfo visual,
long pixmap)
Creates a GLXPixmap from a Pixmap.
|
static void |
glXDestroyContext(long display,
long ctx)
Destroys an OpenGL context.
|
static void |
glXDestroyGLXPixmap(long display,
long pixmap)
Destroys a GLXPixmap.
|
static int |
glXGetConfig(long display,
org.lwjgl.system.linux.XVisualInfo visual,
int attribute,
int[] value)
Array version of:
GetConfig |
static int |
glXGetConfig(long display,
org.lwjgl.system.linux.XVisualInfo visual,
int attribute,
java.nio.IntBuffer value)
Returns a description of an OpenGL attribute exported by a Visual.
|
static long |
glXGetCurrentContext()
Returns the GLXContext that is current in the current thread.
|
static long |
glXGetCurrentDrawable()
Returns the XID of the current drawable used for rendering.
|
static boolean |
glXIsDirect(long display,
long ctx)
Determines if an OpenGL rendering context is direct.
|
static boolean |
glXMakeCurrent(long display,
long draw,
long ctx)
Makes a context current in the current thread
|
static boolean |
glXQueryExtension(long display,
int[] error_base,
int[] event_base)
Array version of:
QueryExtension |
static boolean |
glXQueryExtension(long display,
java.nio.IntBuffer error_base,
java.nio.IntBuffer event_base)
Ascertains if the GLX extension is defined for an X server.
|
static boolean |
glXQueryVersion(long display,
int[] major,
int[] minor)
Array version of:
QueryVersion |
static boolean |
glXQueryVersion(long display,
java.nio.IntBuffer major,
java.nio.IntBuffer minor)
Queries the GLX version supported.
|
static void |
glXSwapBuffers(long display,
long draw)
For drawables that are double buffered, makes the contexts of the back buffer potentially visible (i.e., become the contents of the front buffer).
|
static void |
glXUseXFont(long font,
int first,
int count,
int list_base)
Provides a shortcut for using X fonts.
|
static void |
glXWaitGL()
Prevents X requests from executing until any outstanding OpenGL rendering is done.
|
static void |
glXWaitX()
Prevents the OpenGL command sequence from executing until any outstanding X requests are completed.
|
static long |
nglXChooseVisual(long display,
int screen,
long attrib_list)
Unsafe version of:
ChooseVisual |
static long |
nglXCreateContext(long display,
long visual,
long share_list,
int direct)
Unsafe version of:
CreateContext |
static long |
nglXCreateGLXPixmap(long display,
long visual,
long pixmap)
Unsafe version of:
CreateGLXPixmap |
static int |
nglXGetConfig(long display,
long visual,
int attribute,
long value)
Unsafe version of:
GetConfig |
static int |
nglXQueryExtension(long display,
long error_base,
long event_base)
Unsafe version of:
QueryExtension |
static int |
nglXQueryVersion(long display,
long major,
long minor)
Unsafe version of:
QueryVersion |
public static final int GLXBadContext
public static final int GLXBadContextState
public static final int GLXBadDrawable
public static final int GLXBadPixmap
public static final int GLXBadContextTag
public static final int GLXBadCurrentWindow
public static final int GLXBadRenderRequest
public static final int GLXBadLargeRequest
public static final int GLXUnsupportedPrivateRequest
public static final int GLXBadFBConfig
public static final int GLXBadPbuffer
public static final int GLXBadCurrentDrawable
public static final int GLXBadWindow
public static final int GLX_USE_GL
GetConfig.public static final int GLX_BUFFER_SIZE
GetConfig.public static final int GLX_LEVEL
GetConfig.public static final int GLX_RGBA
GetConfig.public static final int GLX_DOUBLEBUFFER
GetConfig.public static final int GLX_STEREO
GetConfig.public static final int GLX_AUX_BUFFERS
GetConfig.public static final int GLX_RED_SIZE
GetConfig.public static final int GLX_GREEN_SIZE
GetConfig.public static final int GLX_BLUE_SIZE
GetConfig.public static final int GLX_ALPHA_SIZE
GetConfig.public static final int GLX_DEPTH_SIZE
GetConfig.public static final int GLX_STENCIL_SIZE
GetConfig.public static final int GLX_ACCUM_RED_SIZE
GetConfig.public static final int GLX_ACCUM_GREEN_SIZE
GetConfig.public static final int GLX_ACCUM_BLUE_SIZE
GetConfig.public static final int GLX_ACCUM_ALPHA_SIZE
GetConfig.public static final int GLX_BAD_SCREEN
GetConfig. Success is indicated by a value of 0.public static final int GLX_BAD_ATTRIBUTE
GetConfig. Success is indicated by a value of 0.public static final int GLX_NO_EXTENSION
GetConfig. Success is indicated by a value of 0.public static final int GLX_BAD_VISUAL
GetConfig. Success is indicated by a value of 0.public static final int GLX_BAD_CONTEXT
GetConfig. Success is indicated by a value of 0.public static final int GLX_BAD_VALUE
GetConfig. Success is indicated by a value of 0.public static final int GLX_BAD_ENUM
GetConfig. Success is indicated by a value of 0.public static int nglXQueryExtension(long display,
long error_base,
long event_base)
QueryExtensionpublic static boolean glXQueryExtension(long display,
java.nio.IntBuffer error_base,
java.nio.IntBuffer event_base)
display - the connection to the X servererror_base - returns the value of the first error codeevent_base - returns the value of the first event codepublic static int nglXQueryVersion(long display,
long major,
long minor)
QueryVersionpublic static boolean glXQueryVersion(long display,
java.nio.IntBuffer major,
java.nio.IntBuffer minor)
display - the connection to the X servermajor - returns the major versionminor - returns the minor versionpublic static int nglXGetConfig(long display,
long visual,
int attribute,
long value)
GetConfigpublic static int glXGetConfig(long display,
org.lwjgl.system.linux.XVisualInfo visual,
int attribute,
java.nio.IntBuffer value)
display - the connection to the X servervisual - a pointer to an XVisualInfo structureattribute - the attribute to queryvalue - returns the attribute valuepublic static long nglXChooseVisual(long display,
int screen,
long attrib_list)
ChooseVisual@Nullable
public static org.lwjgl.system.linux.XVisualInfo glXChooseVisual(long display,
int screen,
@Nullable
java.nio.IntBuffer attrib_list)
display - the connection to the X serverscreen - the screen numberattrib_list - a list of attributes terminated with NoneXVisualInfo structure describing the visual that best matches the specified attributes. If no matching visual exists, NULL is
returned.public static long nglXCreateContext(long display,
long visual,
long share_list,
int direct)
CreateContextpublic static long glXCreateContext(long display,
org.lwjgl.system.linux.XVisualInfo visual,
long share_list,
boolean direct)
display - the connection to the X servervisual - a pointer to an XVisualInfo structureshare_list - the GLXContext to share objects withdirect - whether direct rendering is requestedpublic static boolean glXMakeCurrent(long display,
long draw,
long ctx)
display - the connection to the X serverdraw - the draw GLXdrawablectx - the GLXContext to make currentpublic static void glXCopyContext(long display,
long source,
long dest,
long mask)
display - the connection to the X serversource - the source GLXContextdest - the destination GLXContextmask - indicates which groups of state variables are to be copied; it contains the bitwise OR of the symbolic names for the attribute groupspublic static boolean glXIsDirect(long display,
long ctx)
display - the connection to the X serverctx - the GLXContext to querypublic static void glXDestroyContext(long display,
long ctx)
If ctx is still current to any thread, ctx is not destroyed until it is no longer current. In any event, the associated XID will be
destroyed and ctx cannot subsequently be made current to any thread.
display - the connection to the X serverctx - the GLXContext to destroypublic static long glXGetCurrentContext()
public static long glXGetCurrentDrawable()
public static void glXWaitGL()
OpenGL calls made prior to glXWaitGL are guaranteed to be executed before X rendering calls made after glXWaitGL. While the same result
can be achieved using Finish, glXWaitGL does not require a round trip to the server, and is therefore more efficient in cases
where the client and server are on separate machines.
public static void glXWaitX()
X rendering calls made prior to glXWaitX are guaranteed to be executed before OpenGL rendering calls made after glXWaitX. While the same
result can be achieved using XSync(), glXWaitX does not require a round trip to the server, and may therefore be more efficient.
public static void glXSwapBuffers(long display,
long draw)
The contents of the back buffer then become undefined. This operation is a no-op if draw was created with a non-double-buffered GLXFBConfig, or if draw is a GLXPixmap.
display - the connection to the X serverdraw - a double buffered GLXDrawablepublic static void glXUseXFont(long font,
int first,
int count,
int list_base)
font - the font to usefirst - the first glyph in the font to usecount - the number of display lists to definelist_base - the base list numberpublic static long nglXCreateGLXPixmap(long display,
long visual,
long pixmap)
CreateGLXPixmappublic static long glXCreateGLXPixmap(long display,
org.lwjgl.system.linux.XVisualInfo visual,
long pixmap)
display - the connection to the X servervisual - a pointer to a XVisualInfo structurepixmap - the Pixmappublic static void glXDestroyGLXPixmap(long display,
long pixmap)
display - the connection to the X serverpixmap - the GLXPixmap to destroy.public static boolean glXQueryExtension(long display,
int[] error_base,
int[] event_base)
QueryExtensionpublic static boolean glXQueryVersion(long display,
int[] major,
int[] minor)
QueryVersionpublic static int glXGetConfig(long display,
org.lwjgl.system.linux.XVisualInfo visual,
int attribute,
int[] value)
GetConfig@Nullable
public static org.lwjgl.system.linux.XVisualInfo glXChooseVisual(long display,
int screen,
@Nullable
int[] attrib_list)
ChooseVisualCopyright LWJGL. All Rights Reserved. License terms.