Top Fields Constructors Methods
org.lwjgl.opengl

pack-priv abstract Class DrawableGLES

extends Object
implements DrawableLWJGL
Class Inheritance
All Implemented Interfaces
org.lwjgl.opengl.DrawableLWJGL, org.lwjgl.opengl.Drawable
Imports
org.lwjgl.BufferUtils, .LWJGLException, .LWJGLUtil, .PointerBuffer, org.lwjgl.opengles.ContextAttribs, org.lwjgl.opengles.*, .Util

Author
Spasi
Since
14/5/2011

Field Summary

Modifier and TypeField and Description
protected ContextGLES
context

The OpenGL Context.

protected EGLConfig
protected EGLDisplay
protected EGLSurface
protected PixelFormat
pixel_format

The PixelFormat used to create the EGLDisplay.

protected Drawable
shared_drawable

The Drawable that shares objects with this Drawable.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected void
public void
public void
createContext(final ContextAttribs attribs, final Drawable shared_drawable)

public Context
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 ContextGLES
getContext()

Implements org.lwjgl.opengl.DrawableLWJGL.getContext.

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

Implements org.lwjgl.opengl.DrawableLWJGL.initContext.

public void
initialize(final long window, final long display_id, final int eglSurfaceType, final PixelFormat pf)

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
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
protected ContextGLES context

The OpenGL Context.

eglConfigback to summary
protected EGLConfig eglConfig
eglDisplayback to summary
protected EGLDisplay eglDisplay
eglSurfaceback to summary
protected EGLSurface eglSurface
pixel_formatback to summary
protected PixelFormat pixel_format

The PixelFormat used to create the EGLDisplay.

shared_drawableback to summary
protected Drawable shared_drawable

The Drawable that shares objects with this Drawable.

Constructor Detail

DrawableGLESback to summary
protected DrawableGLES()

Method Detail

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

Implements org.lwjgl.opengl.DrawableLWJGL.checkGLError.

createContextback to summary
public void createContext(final ContextAttribs attribs, final Drawable shared_drawable) throws LWJGLException
createSharedContextback to summary
public Context 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:Context

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 ContextGLES getContext()

Implements org.lwjgl.opengl.DrawableLWJGL.getContext.

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

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

Returns:ContextGLES

the Drawable's Context

getEGLConfigback to summary
public EGLConfig getEGLConfig()
getEGLDisplayback to summary
public EGLDisplay getEGLDisplay()
getEGLSurfaceback to summary
public EGLSurface getEGLSurface()
getPixelFormatback to summary
public PixelFormatLWJGL getPixelFormat()

Implements org.lwjgl.opengl.DrawableLWJGL.getPixelFormat.

getSharedDrawableback to summary
pack-priv Drawable getSharedDrawable()
initContextback to summary
public void initContext(final float r, final float g, final float b)

Implements org.lwjgl.opengl.DrawableLWJGL.initContext.

initializeback to summary
public void initialize(final long window, final long display_id, final int eglSurfaceType, final PixelFormat pf) throws LWJGLException
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, PowerManagementEventException

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, PowerManagementEventException

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.

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.