Top Fields Constructors Methods
org.lwjgl.opengl

pack-priv abstract Class DrawableGL

extends Object
implements DrawableLWJGL
Class Inheritance
All Implemented Interfaces
org.lwjgl.opengl.DrawableLWJGL, org.lwjgl.opengl.Drawable
Known Direct Subclasses
org.lwjgl.opengl.SharedDrawable, org.lwjgl.opengl.Pbuffer
Imports
org.lwjgl.LWJGLException, .LWJGLUtil, .PointerBuffer

Author
Spasi

Field Summary

Modifier and TypeField and Description
protected ContextGL
context

The OpenGL Context.

protected PeerInfo
peer_info

Handle to the native GL rendering context

protected PixelFormat
pixel_format

The PixelFormat used to create the drawable.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected final void
public void
public ContextGL
createSharedContext()

Implements org.lwjgl.opengl.DrawableLWJGL.createSharedContext.

[INTERNAL USE ONLY] Creates a new Context that is shared with the Drawable's Context.
public void
destroy()

Implements org.lwjgl.opengl.Drawable.destroy.

Destroys the Drawable.
public ContextGL
getContext()

Implements org.lwjgl.opengl.DrawableLWJGL.getContext.

[INTERNAL USE ONLY] Returns the Drawable's Context.
public PixelFormatLWJGL
public void
initContext(final float r, final float g, final float b)

Implements org.lwjgl.opengl.DrawableLWJGL.initContext.

public boolean
isCurrent()

Implements org.lwjgl.opengl.Drawable.isCurrent.

Returns true if the Drawable's context is current in the current thread.
public void
makeCurrent()

Implements org.lwjgl.opengl.Drawable.makeCurrent.

Makes the Drawable's context current in the current thread.
public void
releaseContext()

Implements org.lwjgl.opengl.Drawable.releaseContext.

If the Drawable's context is current in the current thread, no context will be current after a call to this method.
public void
setCLSharingProperties(final PointerBuffer
The target properties buffer. It must have at least 4 positions remaining.
properties
)

Implements org.lwjgl.opengl.Drawable.setCLSharingProperties.

Sets the appropriate khr_gl_sharing properties in the target PointerBuffer, so that if it is used in a clCreateContext(FromType) call, the created CL context will be sharing objects with this Drawable's GL context.
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
protected ContextGL context

The OpenGL Context.

peer_infoback to summary
protected PeerInfo peer_info

Handle to the native GL rendering context

pixel_formatback to summary
protected PixelFormat pixel_format

The PixelFormat used to create the drawable.

Constructor Detail

DrawableGLback to summary
protected DrawableGL()

Method Detail

checkDestroyedback to summary
protected final void checkDestroyed()
checkGLErrorback to summary
public void checkGLError()

Implements org.lwjgl.opengl.DrawableLWJGL.checkGLError.

createSharedContextback to summary
public ContextGL createSharedContext() throws LWJGLException

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.

destroyback to summary
public void destroy()

Implements org.lwjgl.opengl.Drawable.destroy.

Doc from org.lwjgl.opengl.Drawable.destroy.

Destroys the Drawable.

getContextback to summary
public ContextGL getContext()

Implements org.lwjgl.opengl.DrawableLWJGL.getContext.

Doc from org.lwjgl.opengl.DrawableLWJGL.getContext.

[INTERNAL USE ONLY] Returns the Drawable's Context.

Returns:ContextGL

the Drawable's Context

getPixelFormatback to summary
public PixelFormatLWJGL getPixelFormat()

Implements org.lwjgl.opengl.DrawableLWJGL.getPixelFormat.

initContextback to summary
public void initContext(final float r, final float g, final float b)

Implements org.lwjgl.opengl.DrawableLWJGL.initContext.

isCurrentback to summary
public boolean isCurrent() throws LWJGLException

Implements org.lwjgl.opengl.Drawable.isCurrent.

Doc from org.lwjgl.opengl.Drawable.isCurrent.

Returns true if the Drawable's context is current in the current thread.

makeCurrentback to summary
public void makeCurrent() throws LWJGLException

Implements org.lwjgl.opengl.Drawable.makeCurrent.

Doc from org.lwjgl.opengl.Drawable.makeCurrent.

Makes the Drawable's context current in the current thread.

releaseContextback to summary
public void releaseContext() throws LWJGLException

Implements org.lwjgl.opengl.Drawable.releaseContext.

Doc from org.lwjgl.opengl.Drawable.releaseContext.

If the Drawable's context is current in the current thread, no context will be current after a call to this method.

setCLSharingPropertiesback to summary
public void setCLSharingProperties(final PointerBuffer properties) throws LWJGLException

Implements org.lwjgl.opengl.Drawable.setCLSharingProperties.

Doc from org.lwjgl.opengl.Drawable.setCLSharingProperties.

Sets the appropriate khr_gl_sharing properties in the target PointerBuffer, so that if it is used in a clCreateContext(FromType) call, the created CL context will be sharing objects with this Drawable's GL context. After a call to this method, the target buffer position will have advanced by 2 to 4 positions, depending on the implementation.

Parameters
properties:PointerBuffer

The target properties buffer. It must have at least 4 positions remaining.

setPixelFormatback to summary
public void setPixelFormat(final PixelFormatLWJGL pf) throws LWJGLException

Implements org.lwjgl.opengl.DrawableLWJGL.setPixelFormat.

setPixelFormatback to summary
public void setPixelFormat(final PixelFormatLWJGL pf, final ContextAttribs attribs) throws LWJGLException

Implements org.lwjgl.opengl.DrawableLWJGL.setPixelFormat.

setSwapIntervalback to summary
public void setSwapInterval(final int swap_interval)

Implements org.lwjgl.opengl.DrawableLWJGL.setSwapInterval.

swapBuffersback to summary
public void swapBuffers() throws LWJGLException

Implements org.lwjgl.opengl.DrawableLWJGL.swapBuffers.