Package org.lwjgl.opengl
Class GLX13
- java.lang.Object
-
- org.lwjgl.opengl.GLX
-
- org.lwjgl.opengl.GLX11
-
- org.lwjgl.opengl.GLX12
-
- org.lwjgl.opengl.GLX13
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.lwjgl.opengl.GLX
GLX.Functions
-
-
Field Summary
-
Fields inherited from class org.lwjgl.opengl.GLX
GLX_ACCUM_ALPHA_SIZE, GLX_ACCUM_BLUE_SIZE, GLX_ACCUM_GREEN_SIZE, GLX_ACCUM_RED_SIZE, GLX_ALPHA_SIZE, GLX_AUX_BUFFERS, GLX_BAD_ATTRIBUTE, GLX_BAD_CONTEXT, GLX_BAD_ENUM, GLX_BAD_SCREEN, GLX_BAD_VALUE, GLX_BAD_VISUAL, GLX_BLUE_SIZE, GLX_BUFFER_SIZE, GLX_DEPTH_SIZE, GLX_DOUBLEBUFFER, GLX_GREEN_SIZE, GLX_LEVEL, GLX_NO_EXTENSION, GLX_RED_SIZE, GLX_RGBA, GLX_STENCIL_SIZE, GLX_STEREO, GLX_USE_GL, GLXBadContext, GLXBadContextState, GLXBadContextTag, GLXBadCurrentDrawable, GLXBadCurrentWindow, GLXBadDrawable, GLXBadFBConfig, GLXBadLargeRequest, GLXBadPbuffer, GLXBadPixmap, GLXBadRenderRequest, GLXBadWindow, GLXUnsupportedPrivateRequest
-
Fields inherited from class org.lwjgl.opengl.GLX11
GLX_EXTENSIONS, GLX_VENDOR, GLX_VERSION
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.lwjgl.PointerBuffer
glXChooseFBConfig(long display, int screen, int[] attrib_list)
Array version of:ChooseFBConfig
static org.lwjgl.PointerBuffer
glXChooseFBConfig(long display, int screen, java.nio.IntBuffer attrib_list)
Returns a list of GLXFBConfigs that match a list of attributes.static long
glXCreateNewContext(long display, long config, int render_type, long share_list, boolean direct)
Creates an OpenGL rendering context.static long
glXCreatePbuffer(long display, long config, int[] attrib_list)
Array version of:CreatePbuffer
static long
glXCreatePbuffer(long display, long config, java.nio.IntBuffer attrib_list)
Creates a GLXPbuffer from a GLXFBConfig.static long
glXCreatePixmap(long display, long config, long pixmap, int[] attrib_list)
Array version of:CreatePixmap
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.static long
glXCreateWindow(long display, long config, long win, int[] attrib_list)
Array version of:CreateWindow
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.static void
glXDestroyPbuffer(long display, long pbuf)
Destroys a GLXPbuffer.static void
glXDestroyPixmap(long display, long pixmap)
Destroys a GLXPixmap.static long
glXGetCurrentReadDrawable()
Returns the current GLXDrawable used for reading in the current thread.static int
glXGetFBConfigAttrib(long display, long config, int attribute, int[] value)
Array version of:GetFBConfigAttrib
static int
glXGetFBConfigAttrib(long display, long config, int attribute, java.nio.IntBuffer value)
Queries the value of a GLX attribute for a GLXFBConfig.static org.lwjgl.PointerBuffer
glXGetFBConfigs(long display, int screen)
Returns the list of all GLXFBConfigs that are available on the specified screen.static void
glXGetSelectedEvent(long display, long draw, org.lwjgl.CLongBuffer event_mask)
Returns which GLX events are selected for a GLXDrawable.static org.lwjgl.system.linux.XVisualInfo
glXGetVisualFromFBConfig(long display, long config)
Retrieves the associated visual of a GLXFBConfig.static boolean
glXMakeContextCurrent(long display, long draw, long read, long ctx)
Makes a GLXContext current in the current thread.static int
glXQueryContext(long display, long ctx, int attribute, int[] value)
Array version of:QueryContext
static int
glXQueryContext(long display, long ctx, int attribute, java.nio.IntBuffer value)
Queries the value of a GLXContext attribute.static int
glXQueryDrawable(long display, long draw, int attribute)
Queries an attribute associated with a GLXDrawable.static void
glXQueryDrawable(long display, long draw, int attribute, int[] value)
Array version of:QueryDrawable
static void
glXQueryDrawable(long display, long draw, int attribute, java.nio.IntBuffer value)
Queries an attribute associated with a GLXDrawable.static void
glXSelectEvent(long display, long draw, long event_mask)
Selects which GLX events should be received on a GLXDrawable.static long
nglXChooseFBConfig(long display, int screen, long attrib_list, long nelements)
Unsafe version of:ChooseFBConfig
static long
nglXCreatePbuffer(long display, long config, long attrib_list)
Unsafe version of:CreatePbuffer
static long
nglXCreatePixmap(long display, long config, long pixmap, long attrib_list)
Unsafe version of:CreatePixmap
static long
nglXCreateWindow(long display, long config, long win, long attrib_list)
Unsafe version of:CreateWindow
static int
nglXGetFBConfigAttrib(long display, long config, int attribute, long value)
Unsafe version of:GetFBConfigAttrib
static long
nglXGetFBConfigs(long display, int screen, long nelements)
Unsafe version of:GetFBConfigs
static void
nglXGetSelectedEvent(long display, long draw, long event_mask)
Unsafe version of:GetSelectedEvent
static long
nglXGetVisualFromFBConfig(long display, long config)
Unsafe version of:GetVisualFromFBConfig
static int
nglXQueryContext(long display, long ctx, int attribute, long value)
Unsafe version of:QueryContext
static void
nglXQueryDrawable(long display, long draw, int attribute, long value)
Unsafe version of:QueryDrawable
-
Methods inherited from class org.lwjgl.opengl.GLX
glXChooseVisual, glXChooseVisual, glXCopyContext, glXCreateContext, glXCreateGLXPixmap, glXDestroyContext, glXDestroyGLXPixmap, glXGetConfig, glXGetConfig, glXGetCurrentContext, glXGetCurrentDrawable, glXIsDirect, glXMakeCurrent, glXQueryExtension, glXQueryExtension, glXQueryVersion, glXQueryVersion, glXSwapBuffers, glXUseXFont, glXWaitGL, glXWaitX, nglXChooseVisual, nglXCreateContext, nglXCreateGLXPixmap, nglXGetConfig, nglXQueryExtension, nglXQueryVersion
-
Methods inherited from class org.lwjgl.opengl.GLX11
glXGetClientString, glXQueryExtensionsString, glXQueryServerString, nglXGetClientString, nglXQueryExtensionsString, nglXQueryServerString
-
Methods inherited from class org.lwjgl.opengl.GLX12
glXGetCurrentDisplay
-
-
-
-
Field Detail
-
GLX_WINDOW_BIT, GLX_PIXMAP_BIT, GLX_PBUFFER_BIT, GLX_RGBA_BIT, GLX_COLOR_INDEX_BIT, GLX_PBUFFER_CLOBBER_MASK, GLX_FRONT_LEFT_BUFFER_BIT, GLX_FRONT_RIGHT_BUFFER_BIT, GLX_BACK_LEFT_BUFFER_BIT, GLX_BACK_RIGHT_BUFFER_BIT, GLX_AUX_BUFFERS_BIT, GLX_DEPTH_BUFFER_BIT, GLX_STENCIL_BUFFER_BIT, GLX_ACCUM_BUFFER_BIT, GLX_CONFIG_CAVEAT, GLX_X_VISUAL_TYPE, GLX_TRANSPARENT_TYPE, GLX_TRANSPARENT_INDEX_VALUE, GLX_TRANSPARENT_RED_VALUE, GLX_TRANSPARENT_GREEN_VALUE, GLX_TRANSPARENT_BLUE_VALUE, GLX_TRANSPARENT_ALPHA_VALUE, GLX_DONT_CARE, GLX_NONE, GLX_SLOW_CONFIG, GLX_TRUE_COLOR, GLX_DIRECT_COLOR, GLX_PSEUDO_COLOR, GLX_STATIC_COLOR, GLX_GRAY_SCALE, GLX_STATIC_GRAY, GLX_TRANSPARENT_RGB, GLX_TRANSPARENT_INDEX, GLX_VISUAL_ID, GLX_SCREEN, GLX_NON_CONFORMANT_CONFIG, GLX_DRAWABLE_TYPE, GLX_RENDER_TYPE, GLX_X_RENDERABLE, GLX_FBCONFIG_ID, GLX_RGBA_TYPE, GLX_COLOR_INDEX_TYPE, GLX_MAX_PBUFFER_WIDTH, GLX_MAX_PBUFFER_HEIGHT, GLX_MAX_PBUFFER_PIXELS, GLX_PRESERVED_CONTENTS, GLX_LARGEST_PBUFFER, GLX_WIDTH, GLX_HEIGHT, GLX_EVENT_MASK, GLX_DAMAGED, GLX_SAVED, GLX_WINDOW, GLX_PBUFFER, GLX_PBUFFER_HEIGHT, GLX_PBUFFER_WIDTH
Added in GLX 1.3.
-
-
Method Detail
-
nglXGetFBConfigs
public static long nglXGetFBConfigs(long display, int screen, long nelements)
Unsafe version of:GetFBConfigs
- Parameters:
nelements
- returns the number of GLXFBConfigs in the returned list
-
glXGetFBConfigs
@Nullable public static org.lwjgl.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
-
nglXChooseFBConfig
public static long nglXChooseFBConfig(long display, int screen, long attrib_list, long nelements)
Unsafe version of:ChooseFBConfig
- Parameters:
nelements
- returns the number of GLXFBConfigs matched
-
glXChooseFBConfig
@Nullable public static org.lwjgl.PointerBuffer glXChooseFBConfig(long display, int screen, @Nullable 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
-
nglXGetFBConfigAttrib
public static int nglXGetFBConfigAttrib(long display, long config, int attribute, long value)
Unsafe version of:GetFBConfigAttrib
-
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
-
nglXGetVisualFromFBConfig
public static long nglXGetVisualFromFBConfig(long display, long config)
Unsafe version of:GetVisualFromFBConfig
-
glXGetVisualFromFBConfig
@Nullable public static org.lwjgl.system.linux.XVisualInfo glXGetVisualFromFBConfig(long display, long config)
Retrieves the associated visual of a GLXFBConfig.- Parameters:
display
- the connection to the X serverconfig
- the GLXFBConfig
-
nglXCreateWindow
public static long nglXCreateWindow(long display, long config, long win, long attrib_list)
Unsafe version of:CreateWindow
-
glXCreateWindow
public static long glXCreateWindow(long display, long config, long win, @Nullable 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
-
nglXCreatePixmap
public static long nglXCreatePixmap(long display, long config, long pixmap, long attrib_list)
Unsafe version of:CreatePixmap
-
glXCreatePixmap
public static long glXCreatePixmap(long display, long config, long pixmap, @Nullable 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
-
nglXCreatePbuffer
public static long nglXCreatePbuffer(long display, long config, long attrib_list)
Unsafe version of:CreatePbuffer
-
glXCreatePbuffer
public static long glXCreatePbuffer(long display, long config, @Nullable 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
-
nglXQueryDrawable
public static void nglXQueryDrawable(long display, long draw, int attribute, long value)
Unsafe version of:QueryDrawable
-
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
-
glXQueryDrawable
public static int glXQueryDrawable(long display, long draw, int attribute)
Queries an attribute associated with a GLXDrawable.- Parameters:
display
- the connection to the X serverdraw
- the GLXDrawable being queriedattribute
- the attribute to query
-
glXCreateNewContext
public static long glXCreateNewContext(long display, long config, int render_type, long share_list, boolean 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 boolean 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.
-
nglXQueryContext
public static int nglXQueryContext(long display, long ctx, int attribute, long value)
Unsafe version of:QueryContext
-
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
-
nglXGetSelectedEvent
public static void nglXGetSelectedEvent(long display, long draw, long event_mask)
Unsafe version of:GetSelectedEvent
-
glXGetSelectedEvent
public static void glXGetSelectedEvent(long display, long draw, org.lwjgl.CLongBuffer 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
-
glXChooseFBConfig
@Nullable public static org.lwjgl.PointerBuffer glXChooseFBConfig(long display, int screen, @Nullable int[] attrib_list)
Array version of:ChooseFBConfig
-
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, @Nullable int[] attrib_list)
Array version of:CreateWindow
-
glXCreatePixmap
public static long glXCreatePixmap(long display, long config, long pixmap, @Nullable int[] attrib_list)
Array version of:CreatePixmap
-
glXCreatePbuffer
public static long glXCreatePbuffer(long display, long config, @Nullable 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
-
-