Top Description Methods
org.lwjgl.opengl

pack-priv Interface ContextImplementation

Known Direct Implementers
org.lwjgl.opengl.MacOSXContextImplementation, org.lwjgl.opengl.LinuxContextImplementation, org.lwjgl.opengl.WindowsContextImplementation
Imports
java.nio.ByteBuffer, .IntBuffer, org.lwjgl.LWJGLException

Context implementation interface.

Author
elias_naur
Version
$Revision$ $Id$

Method Summary

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

Create a context.

public void
destroy(PeerInfo peer_info, ByteBuffer handle)

Destroys the Context.

public boolean
isCurrent(ByteBuffer handle)

Query whether the context is current

public void
makeCurrent(PeerInfo peer_info, ByteBuffer handle)

Query whether the context is current

public void
releaseCurrentContext()

Release the current context (if any).

public void
releaseDrawable(ByteBuffer context_handle)

Release the context from its drawable, if any.

public void
setSwapInterval(int value)

public void
swapBuffers()

Swap the buffers of the current context.

public void
update(ByteBuffer context_handle)

Update the context.

Method Detail

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

Create a context.

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

Destroys the Context.

isCurrentback to summary
public boolean isCurrent(ByteBuffer handle) throws LWJGLException

Query whether the context is current

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

Query whether the context is current

releaseCurrentContextback to summary
public void releaseCurrentContext() throws LWJGLException

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

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

Release the context from its drawable, if any.

setSwapIntervalback to summary
public void setSwapInterval(int value)
swapBuffersback to summary
public void swapBuffers() throws LWJGLException

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

updateback to summary
public void update(ByteBuffer context_handle)

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