Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class GLXEXTImportContext

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Native bindings to the GLX_EXT_import_context extension.

This extension allows multiple X clients to share an indirect rendering context.

Additional convenience procedures to get the current Display* bound to a context as well as other context information are also added.

Field Summary

Modifier and TypeField and Description
public static final int
GLX_SCREEN_EXT

Accepted by the attribute parameter of QueryContextInfoEXT.

public static final int
GLX_SHARE_CONTEXT_EXT

Accepted by the attribute parameter of QueryContextInfoEXT.

public static final int
GLX_VISUAL_ID_EXT

Accepted by the attribute parameter of QueryContextInfoEXT.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glXFreeContextEXT(long
the connection to the X server
display
,
long
the context to free
context
)

Frees the client-side part of a GLXContext that was created with ImportContextEXT.

public static long
glXGetContextIDEXT(long
the context
context
)

Returns the XID of a GLXContext.

public static long
glXGetCurrentDisplayEXT()

Returns the display associated with the current context.

public static long
glXImportContextEXT(long
the connection to the X server
display
,
long
the context XID
contextID
)

May be used in place of glXCreateContext to share another process's indirect rendering context.

public static int
glXQueryContextInfoEXT(long
the connection to the X server
display
,
long
the context being queried
context
,
int
the attribute to query
attribute
,
IntBuffer
returns the attribute value
value
)

Obtains the value of a context's attribute.

public static int
glXQueryContextInfoEXT(long display, long context, int attribute, int[] value)

Array version of: QueryContextInfoEXT

public static int
nglXQueryContextInfoEXT(long display, long context, int attribute, long value)

Unsafe version of: QueryContextInfoEXT

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GLX_SCREEN_EXTback to summary
public static final int GLX_SCREEN_EXT

Accepted by the attribute parameter of QueryContextInfoEXT.

GLX_SHARE_CONTEXT_EXTback to summary
public static final int GLX_SHARE_CONTEXT_EXT

Accepted by the attribute parameter of QueryContextInfoEXT.

GLX_VISUAL_ID_EXTback to summary
public static final int GLX_VISUAL_ID_EXT

Accepted by the attribute parameter of QueryContextInfoEXT.

Constructor Detail

GLXEXTImportContextback to summary
protected GLXEXTImportContext()

Method Detail

glXFreeContextEXTback to summary
public static void glXFreeContextEXT(long display, long context)

Frees the client-side part of a GLXContext that was created with ImportContextEXT.

Parameters
display:long

the connection to the X server

context:long

the context to free

glXGetContextIDEXTback to summary
public static long glXGetContextIDEXT(long context)

Returns the XID of a GLXContext.

Parameters
context:long

the context

Annotations
@NativeType:GLXContextID
glXGetCurrentDisplayEXTback to summary
public static long glXGetCurrentDisplayEXT()

Returns the display associated with the current context.

Annotations
@NativeType:Display *
glXImportContextEXTback to summary
public static long glXImportContextEXT(long display, long contextID)

May be used in place of glXCreateContext to share another process's indirect rendering context.

Parameters
display:long

the connection to the X server

contextID:long

the context XID

Annotations
@NativeType:GLXContext
glXQueryContextInfoEXTback to summary
public static int glXQueryContextInfoEXT(long display, long context, int attribute, IntBuffer value)

Obtains the value of a context's attribute.

Parameters
display:long

the connection to the X server

context:long

the context being queried

attribute:int

the attribute to query

value:IntBuffer

returns the attribute value

glXQueryContextInfoEXTback to summary
public static int glXQueryContextInfoEXT(long display, long context, int attribute, int[] value)

Array version of: QueryContextInfoEXT

nglXQueryContextInfoEXTback to summary
public static int nglXQueryContextInfoEXT(long display, long context, int attribute, long value)

Unsafe version of: QueryContextInfoEXT