Package org.lwjgl.opengl
Class GLX13
- java.lang.Object
-
- org.lwjgl.opengl.GLX13
-
public class GLX13 extends java.lang.ObjectNative bindings to GLX 1.3.
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static PointerBufferglXChooseFBConfig(long display, int screen, java.nio.IntBuffer attrib_list)Returns a list of GLXFBConfigs that match a list of attributes.static longglXCreateNewContext(long display, long config, int render_type, long share_list, int direct)Creates an OpenGL rendering context.static longglXCreatePbuffer(long display, long config, int[] attrib_list)Array version of:CreatePbufferstatic longglXCreatePbuffer(long display, long config, java.nio.IntBuffer attrib_list)Creates a GLXPbuffer from a GLXFBConfig.static longglXCreatePixmap(long display, long config, long pixmap, int[] attrib_list)Array version of:CreatePixmapstatic longglXCreatePixmap(long display, long config, long pixmap, java.nio.IntBuffer attrib_list)Creates a GLXPixmap offscreen rendering area from an X Pixmap and a desired GLXFBConfig.static longglXCreateWindow(long display, long config, long win, int[] attrib_list)Array version of:CreateWindowstatic longglXCreateWindow(long display, long config, long win, java.nio.IntBuffer attrib_list)Create an onscreen rendering area from an X Window and a desired GLXFBConfig.static voidglXDestroyPbuffer(long display, long pbuf)Destroys a GLXPbuffer.static voidglXDestroyPixmap(long display, long pixmap)Destroys a GLXPixmap.static longglXGetCurrentReadDrawable()Returns the current GLXDrawable used for reading in the current thread.static intglXGetFBConfigAttrib(long display, long config, int attribute, int[] value)Array version of:GetFBConfigAttribstatic intglXGetFBConfigAttrib(long display, long config, int attribute, java.nio.IntBuffer value)Queries the value of a GLX attribute for a GLXFBConfig.static PointerBufferglXGetFBConfigs(long display, int screen)Returns the list of all GLXFBConfigs that are available on the specified screen.static voidglXGetSelectedEvent(long display, long draw, PointerBuffer event_mask)Returns which GLX events are selected for a GLXDrawable.static XVisualInfoglXGetVisualFromFBConfig(long display, long config)Retrieves the associated visual of a GLXFBConfig.static intglXMakeContextCurrent(long display, long draw, long read, long ctx)Makes a GLXContext current in the current thread.static intglXQueryContext(long display, long ctx, int attribute, int[] value)Array version of:QueryContextstatic intglXQueryContext(long display, long ctx, int attribute, java.nio.IntBuffer value)Queries the value of a GLXContext attribute.static voidglXQueryDrawable(long display, long draw, int attribute, int[] value)Array version of:QueryDrawablestatic voidglXQueryDrawable(long display, long draw, int attribute, java.nio.IntBuffer value)Queries an attribute associated with a GLXDrawable.static voidglXSelectEvent(long display, long draw, long event_mask)Selects which GLX events should be received on a GLXDrawable.
-
-
-
Field Detail
-
GLX_WINDOW_BIT
public static final int GLX_WINDOW_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_PIXMAP_BIT
public static final int GLX_PIXMAP_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_PBUFFER_BIT
public static final int GLX_PBUFFER_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_RGBA_BIT
public static final int GLX_RGBA_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_COLOR_INDEX_BIT
public static final int GLX_COLOR_INDEX_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_PBUFFER_CLOBBER_MASK
public static final int GLX_PBUFFER_CLOBBER_MASK
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_FRONT_LEFT_BUFFER_BIT
public static final int GLX_FRONT_LEFT_BUFFER_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_FRONT_RIGHT_BUFFER_BIT
public static final int GLX_FRONT_RIGHT_BUFFER_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_BACK_LEFT_BUFFER_BIT
public static final int GLX_BACK_LEFT_BUFFER_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_BACK_RIGHT_BUFFER_BIT
public static final int GLX_BACK_RIGHT_BUFFER_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_AUX_BUFFERS_BIT
public static final int GLX_AUX_BUFFERS_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_DEPTH_BUFFER_BIT
public static final int GLX_DEPTH_BUFFER_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_STENCIL_BUFFER_BIT
public static final int GLX_STENCIL_BUFFER_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_ACCUM_BUFFER_BIT
public static final int GLX_ACCUM_BUFFER_BIT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_CONFIG_CAVEAT
public static final int GLX_CONFIG_CAVEAT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_X_VISUAL_TYPE
public static final int GLX_X_VISUAL_TYPE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRANSPARENT_TYPE
public static final int GLX_TRANSPARENT_TYPE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRANSPARENT_INDEX_VALUE
public static final int GLX_TRANSPARENT_INDEX_VALUE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRANSPARENT_RED_VALUE
public static final int GLX_TRANSPARENT_RED_VALUE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRANSPARENT_GREEN_VALUE
public static final int GLX_TRANSPARENT_GREEN_VALUE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRANSPARENT_BLUE_VALUE
public static final int GLX_TRANSPARENT_BLUE_VALUE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRANSPARENT_ALPHA_VALUE
public static final int GLX_TRANSPARENT_ALPHA_VALUE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_DONT_CARE
public static final int GLX_DONT_CARE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_NONE
public static final int GLX_NONE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_SLOW_CONFIG
public static final int GLX_SLOW_CONFIG
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRUE_COLOR
public static final int GLX_TRUE_COLOR
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_DIRECT_COLOR
public static final int GLX_DIRECT_COLOR
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_PSEUDO_COLOR
public static final int GLX_PSEUDO_COLOR
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_STATIC_COLOR
public static final int GLX_STATIC_COLOR
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_GRAY_SCALE
public static final int GLX_GRAY_SCALE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_STATIC_GRAY
public static final int GLX_STATIC_GRAY
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRANSPARENT_RGB
public static final int GLX_TRANSPARENT_RGB
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_TRANSPARENT_INDEX
public static final int GLX_TRANSPARENT_INDEX
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_VISUAL_ID
public static final int GLX_VISUAL_ID
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_SCREEN
public static final int GLX_SCREEN
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_NON_CONFORMANT_CONFIG
public static final int GLX_NON_CONFORMANT_CONFIG
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_DRAWABLE_TYPE
public static final int GLX_DRAWABLE_TYPE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_RENDER_TYPE
public static final int GLX_RENDER_TYPE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_X_RENDERABLE
public static final int GLX_X_RENDERABLE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_FBCONFIG_ID
public static final int GLX_FBCONFIG_ID
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_RGBA_TYPE
public static final int GLX_RGBA_TYPE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_COLOR_INDEX_TYPE
public static final int GLX_COLOR_INDEX_TYPE
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_MAX_PBUFFER_WIDTH
public static final int GLX_MAX_PBUFFER_WIDTH
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_MAX_PBUFFER_HEIGHT
public static final int GLX_MAX_PBUFFER_HEIGHT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_MAX_PBUFFER_PIXELS
public static final int GLX_MAX_PBUFFER_PIXELS
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_PRESERVED_CONTENTS
public static final int GLX_PRESERVED_CONTENTS
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_LARGEST_PBUFFER
public static final int GLX_LARGEST_PBUFFER
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_WIDTH
public static final int GLX_WIDTH
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_HEIGHT
public static final int GLX_HEIGHT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_EVENT_MASK
public static final int GLX_EVENT_MASK
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_DAMAGED
public static final int GLX_DAMAGED
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_SAVED
public static final int GLX_SAVED
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_WINDOW
public static final int GLX_WINDOW
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_PBUFFER
public static final int GLX_PBUFFER
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_PBUFFER_HEIGHT
public static final int GLX_PBUFFER_HEIGHT
Added in GLX 1.3.- See Also:
- Constant Field Values
-
GLX_PBUFFER_WIDTH
public static final int GLX_PBUFFER_WIDTH
Added in GLX 1.3.- See Also:
- Constant Field Values
-
-
Method Detail
-
glXGetFBConfigs
public static PointerBuffer glXGetFBConfigs(long display, int screen)
Returns the list of all GLXFBConfigs that are available on the specified screen.- Parameters:
display- the connection to the X serverscreen- the screen number
-
glXChooseFBConfig
public static PointerBuffer glXChooseFBConfig(long display, int screen, java.nio.IntBuffer attrib_list)
Returns a list of GLXFBConfigs that match a list of attributes.- Parameters:
display- the connection to the X serverscreen- the screen numberattrib_list- a list of attributes terminated withNone
-
glXGetFBConfigAttrib
public static int glXGetFBConfigAttrib(long display, long config, int attribute, java.nio.IntBuffer value)Queries the value of a GLX attribute for a GLXFBConfig.- Parameters:
display- the connection to the X serverconfig- the GLXFBConfig being queriedattribute- the attribute to queryvalue- the attribute value
-
glXGetVisualFromFBConfig
public static XVisualInfo glXGetVisualFromFBConfig(long display, long config)
Retrieves the associated visual of a GLXFBConfig.- Parameters:
display- the connection to the X serverconfig- the GLXFBConfig
-
glXCreateWindow
public static long glXCreateWindow(long display, long config, long win, java.nio.IntBuffer attrib_list)Create an onscreen rendering area from an X Window and a desired GLXFBConfig.- Parameters:
display- the connection to the X serverconfig- the GLXFBConfigwin- the X Windowattrib_list- a list of attributes terminated withNone
-
glXCreatePixmap
public static long glXCreatePixmap(long display, long config, long pixmap, java.nio.IntBuffer attrib_list)Creates a GLXPixmap offscreen rendering area from an X Pixmap and a desired GLXFBConfig.- Parameters:
display- the connection to the X serverconfig- the GLXFBConfigpixmap- the X Pixmapattrib_list- a list of attributes terminated withNone
-
glXDestroyPixmap
public static void glXDestroyPixmap(long display, long pixmap)Destroys a GLXPixmap.- Parameters:
display- the connection to the X serverpixmap- the GLXPixmap to destroy
-
glXCreatePbuffer
public static long glXCreatePbuffer(long display, long config, java.nio.IntBuffer attrib_list)Creates a GLXPbuffer from a GLXFBConfig.- Parameters:
display- the connection to the X serverconfig- the GLXFBConfigattrib_list- a list of attributes terminated withNone
-
glXDestroyPbuffer
public static void glXDestroyPbuffer(long display, long pbuf)Destroys a GLXPbuffer.- Parameters:
display- the connection to the X serverpbuf- the GLXPbuffer to destroy
-
glXQueryDrawable
public static void glXQueryDrawable(long display, long draw, int attribute, java.nio.IntBuffer value)Queries an attribute associated with a GLXDrawable.- Parameters:
display- the connection to the X serverdraw- the GLXDrawable being queriedattribute- the attribute to queryvalue- returns the attribute value
-
glXCreateNewContext
public static long glXCreateNewContext(long display, long config, int render_type, long share_list, int direct)Creates an OpenGL rendering context.- Parameters:
display- the connection to the X serverconfig- the GLXFBConfigrender_type- the render typeshare_list- a GLXContext to share objects withdirect- whether direct rendering is requested
-
glXMakeContextCurrent
public static int glXMakeContextCurrent(long display, long draw, long read, long ctx)Makes a GLXContext current in the current thread.- Parameters:
display- the connection to the X serverdraw- the draw GLXDrawableread- the read GLXDrawablectx- the GLXContext
-
glXGetCurrentReadDrawable
public static long glXGetCurrentReadDrawable()
Returns the current GLXDrawable used for reading in the current thread.
-
glXQueryContext
public static int glXQueryContext(long display, long ctx, int attribute, java.nio.IntBuffer value)Queries the value of a GLXContext attribute.- Parameters:
display- the connection to the X serverctx- the GLXContext being queriedattribute- the attribute to queryvalue- returns the attribute value
-
glXSelectEvent
public static void glXSelectEvent(long display, long draw, long event_mask)Selects which GLX events should be received on a GLXDrawable.- Parameters:
display- the connection to the X serverdraw- the GLXDrawableevent_mask- the selection mask
-
glXGetSelectedEvent
public static void glXGetSelectedEvent(long display, long draw, PointerBuffer event_mask)Returns which GLX events are selected for a GLXDrawable.- Parameters:
display- the connection to the X serverdraw- the GLXDrawableevent_mask- returns the selection mask
-
glXGetFBConfigAttrib
public static int glXGetFBConfigAttrib(long display, long config, int attribute, int[] value)Array version of:GetFBConfigAttrib
-
glXCreateWindow
public static long glXCreateWindow(long display, long config, long win, int[] attrib_list)Array version of:CreateWindow
-
glXCreatePixmap
public static long glXCreatePixmap(long display, long config, long pixmap, int[] attrib_list)Array version of:CreatePixmap
-
glXCreatePbuffer
public static long glXCreatePbuffer(long display, long config, int[] attrib_list)Array version of:CreatePbuffer
-
glXQueryDrawable
public static void glXQueryDrawable(long display, long draw, int attribute, int[] value)Array version of:QueryDrawable
-
glXQueryContext
public static int glXQueryContext(long display, long ctx, int attribute, int[] value)Array version of:QueryContext
-
-