Top Description Fields Constructors Methods
org.lwjgl.opengl

public final Class SharedDrawable

extends DrawableGL
Class Inheritance
Imports
org.lwjgl.LWJGLException

A Drawable implementation that shares its context with another Drawable. This is useful for background loading of resources. See org.lwjgl.test.opengl.multithread.BackgroundLoad for an example.
Author
Spasi

Field Summary

Inherited from org.lwjgl.opengl.DrawableGL:
contextpeer_infopixel_format

Constructor Summary

AccessConstructor and Description
public
SharedDrawable(final Drawable drawable)

Method Summary

Modifier and TypeMethod and Description
public ContextGL
createSharedContext()

Overrides org.lwjgl.opengl.DrawableGL.createSharedContext.

Implements org.lwjgl.opengl.DrawableLWJGL.createSharedContext.

[INTERNAL USE ONLY] Creates a new Context that is shared with the Drawable's Context.
Inherited from org.lwjgl.opengl.DrawableGL:
checkDestroyedcheckGLErrordestroygetContextgetPixelFormatinitContextisCurrentmakeCurrentreleaseContextsetCLSharingPropertiessetPixelFormatsetPixelFormatsetSwapIntervalswapBuffers

Constructor Detail

SharedDrawableback to summary
public SharedDrawable(final Drawable drawable) throws LWJGLException

Method Detail

createSharedContextback to summary
public ContextGL createSharedContext()

Overrides org.lwjgl.opengl.DrawableGL.createSharedContext.

Implements org.lwjgl.opengl.DrawableLWJGL.createSharedContext.

Doc from org.lwjgl.opengl.DrawableLWJGL.createSharedContext.

[INTERNAL USE ONLY] Creates a new Context that is shared with the Drawable's Context.

Returns:ContextGL

a Context shared with the Drawable's Context.