Top Constructors Methods
org.lwjgl.opengl

pack-priv final Class LinuxContextImplementation

extends Object
implements ContextImplementation
Class Inheritance
All Implemented Interfaces
org.lwjgl.opengl.ContextImplementation
Imports
org.lwjgl.LWJGLException, java.nio.ByteBuffer, .IntBuffer

Author
elias_naur
Version
$Revision$ $Id$

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
create(PeerInfo peer_info, IntBuffer attribs, ByteBuffer shared_context_handle)

Implements org.lwjgl.opengl.ContextImplementation.create.

Create a context.
public void
destroy(PeerInfo peer_info, ByteBuffer handle)

Implements org.lwjgl.opengl.ContextImplementation.destroy.

Destroys the Context.
pack-priv native long
getDisplay(ByteBuffer peer_info_handle)

pack-priv native long
getGLXContext(ByteBuffer context_handle)

public boolean
isCurrent(ByteBuffer handle)

Implements org.lwjgl.opengl.ContextImplementation.isCurrent.

Query whether the context is current
public void
makeCurrent(PeerInfo peer_info, ByteBuffer handle)

Implements org.lwjgl.opengl.ContextImplementation.makeCurrent.

Query whether the context is current
private static native ByteBuffer
nCreate(ByteBuffer peer_handle, IntBuffer attribs, ByteBuffer shared_context_handle)

private static native void
nDestroy(ByteBuffer peer_handle, ByteBuffer context_handle)

private static native boolean
nIsCurrent(ByteBuffer context_handle)

private static native void
nMakeCurrent(ByteBuffer peer_handle, ByteBuffer context_handle)

private static native void
private static native void
nSetSwapInterval(ByteBuffer peer_handle, ByteBuffer context_handle, int value)

private static native void
nSwapBuffers(ByteBuffer peer_info_handle)

public void
public void
releaseDrawable(ByteBuffer context_handle)

Implements org.lwjgl.opengl.ContextImplementation.releaseDrawable.

Release the context from its drawable, if any.
public void
public void
swapBuffers()

Implements org.lwjgl.opengl.ContextImplementation.swapBuffers.

Swap the buffers of the current context.
public void
update(ByteBuffer context_handle)

Implements org.lwjgl.opengl.ContextImplementation.update.

Update the context.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LinuxContextImplementationback to summary
pack-priv LinuxContextImplementation()

Method Detail

createback to summary
public ByteBuffer create(PeerInfo peer_info, IntBuffer attribs, ByteBuffer shared_context_handle) throws LWJGLException

Implements org.lwjgl.opengl.ContextImplementation.create.

Doc from org.lwjgl.opengl.ContextImplementation.create.

Create a context.

destroyback to summary
public void destroy(PeerInfo peer_info, ByteBuffer handle) throws LWJGLException

Implements org.lwjgl.opengl.ContextImplementation.destroy.

Doc from org.lwjgl.opengl.ContextImplementation.destroy.

Destroys the Context.

getDisplayback to summary
pack-priv native long getDisplay(ByteBuffer peer_info_handle)
getGLXContextback to summary
pack-priv native long getGLXContext(ByteBuffer context_handle)
isCurrentback to summary
public boolean isCurrent(ByteBuffer handle) throws LWJGLException

Implements org.lwjgl.opengl.ContextImplementation.isCurrent.

Doc from org.lwjgl.opengl.ContextImplementation.isCurrent.

Query whether the context is current

makeCurrentback to summary
public void makeCurrent(PeerInfo peer_info, ByteBuffer handle) throws LWJGLException

Implements org.lwjgl.opengl.ContextImplementation.makeCurrent.

Doc from org.lwjgl.opengl.ContextImplementation.makeCurrent.

Query whether the context is current

nCreateback to summary
private static native ByteBuffer nCreate(ByteBuffer peer_handle, IntBuffer attribs, ByteBuffer shared_context_handle) throws LWJGLException
nDestroyback to summary
private static native void nDestroy(ByteBuffer peer_handle, ByteBuffer context_handle) throws LWJGLException
nIsCurrentback to summary
private static native boolean nIsCurrent(ByteBuffer context_handle) throws LWJGLException
nMakeCurrentback to summary
private static native void nMakeCurrent(ByteBuffer peer_handle, ByteBuffer context_handle) throws LWJGLException
nReleaseCurrentContextback to summary
private static native void nReleaseCurrentContext(ByteBuffer peer_info_handle) throws LWJGLException
nSetSwapIntervalback to summary
private static native void nSetSwapInterval(ByteBuffer peer_handle, ByteBuffer context_handle, int value)
nSwapBuffersback to summary
private static native void nSwapBuffers(ByteBuffer peer_info_handle) throws LWJGLException
releaseCurrentContextback to summary
public void releaseCurrentContext() throws LWJGLException

Implements org.lwjgl.opengl.ContextImplementation.releaseCurrentContext.

Doc from org.lwjgl.opengl.ContextImplementation.releaseCurrentContext.

Release the current context (if any). After this call, no context is current.

releaseDrawableback to summary
public void releaseDrawable(ByteBuffer context_handle) throws LWJGLException

Implements org.lwjgl.opengl.ContextImplementation.releaseDrawable.

Doc from org.lwjgl.opengl.ContextImplementation.releaseDrawable.

Release the context from its drawable, if any.

setSwapIntervalback to summary
public void setSwapInterval(int value)

Implements org.lwjgl.opengl.ContextImplementation.setSwapInterval.

swapBuffersback to summary
public void swapBuffers() throws LWJGLException

Implements org.lwjgl.opengl.ContextImplementation.swapBuffers.

Doc from org.lwjgl.opengl.ContextImplementation.swapBuffers.

Swap the buffers of the current context. Only valid for double-buffered contexts.

updateback to summary
public void update(ByteBuffer context_handle)

Implements org.lwjgl.opengl.ContextImplementation.update.

Doc from org.lwjgl.opengl.ContextImplementation.update.

Update the context. Should be called whenever it's drawable is moved or resized