Top Description Fields Constructors Methods
com.sun.glass.ui.monocle

public Class EGLAcceleratedScreen

extends AcceleratedScreen
Class Inheritance

The EGLAcceleratedScreen manages the link to the hardware-accelerated component, using EGL. This class is not directly using EGL commands, as the order and meaning of parameters might vary between implementations. Also, implementation-specific logic may be applied before, in between, or after the EGL commands.

Field Summary

Modifier and TypeField and Description
private long
Inherited from com.sun.glass.ui.monocle.AcceleratedScreen:
eglConfigseglContexteglDisplayeglSurfacelsnativeWindow

Constructor Summary

AccessConstructor and Description
pack-priv
EGLAcceleratedScreen(int[]
an array of attributes that will be used by the underlying implementation to get the best matching configuration.
attributes
)

Create a new EGLAcceleratedScreen with a set of attributes.

Method Summary

Modifier and TypeMethod and Description
public void
enableRendering(boolean flag)

Overrides com.sun.glass.ui.monocle.AcceleratedScreen.enableRendering.

Make the EGL drawing surface current or not

private native boolean
nEglBindApi(int v)

private native long
nEglChooseConfig(long eglDisplay, int[] attribs)

private native long
nEglCreateContext(long eglDisplay, long eglConfig)

private native long
nEglCreateWindowSurface(long eglDisplay, long eglConfig, long nativeWindow)

private native boolean
nEglInitialize(long handle)

private native boolean
nEglMakeCurrent(long eglDisplay, long eglDrawSurface, long eglReadSurface, long eglContext)

private native boolean
nEglSwapBuffers(long eglDisplay, long eglSurface)

private native long
private native long
protected long
platformGetNativeWindow()

Overrides com.sun.glass.ui.monocle.AcceleratedScreen.platformGetNativeWindow.

Returns a platform-specific native window handle suitable for use with eglCreateWindowSurface.

public boolean
swapBuffers()

Overrides com.sun.glass.ui.monocle.AcceleratedScreen.swapBuffers.

Copy the contents of the GL backbuffer to the screen

Inherited from com.sun.glass.ui.monocle.AcceleratedScreen:
getEGLHandlegetGLHandleinitPlatformLibrariesplatformGetNativeDisplay

Field Detail

eglWindowHandleback to summary
private long eglWindowHandle

Constructor Detail

EGLAcceleratedScreenback to summary
pack-priv EGLAcceleratedScreen(int[] attributes)

Create a new EGLAcceleratedScreen with a set of attributes. This will create an EGL Context that can be used by the Prism component.

Parameters
attributes:int[]

an array of attributes that will be used by the underlying implementation to get the best matching configuration.

Method Detail

enableRenderingback to summary
public void enableRendering(boolean flag)

Overrides com.sun.glass.ui.monocle.AcceleratedScreen.enableRendering.

Doc from com.sun.glass.ui.monocle.AcceleratedScreen.enableRendering.

Make the EGL drawing surface current or not

Annotations
@Override
nEglBindApiback to summary
private native boolean nEglBindApi(int v)
nEglChooseConfigback to summary
private native long nEglChooseConfig(long eglDisplay, int[] attribs)
nEglCreateContextback to summary
private native long nEglCreateContext(long eglDisplay, long eglConfig)
nEglCreateWindowSurfaceback to summary
private native long nEglCreateWindowSurface(long eglDisplay, long eglConfig, long nativeWindow)
nEglInitializeback to summary
private native boolean nEglInitialize(long handle)
nEglMakeCurrentback to summary
private native boolean nEglMakeCurrent(long eglDisplay, long eglDrawSurface, long eglReadSurface, long eglContext)
nEglSwapBuffersback to summary
private native boolean nEglSwapBuffers(long eglDisplay, long eglSurface)
nGetEglDisplayHandleback to summary
private native long nGetEglDisplayHandle()
nPlatformGetNativeWindowback to summary
private native long nPlatformGetNativeWindow(String displayID)
platformGetNativeWindowback to summary
protected long platformGetNativeWindow()

Overrides com.sun.glass.ui.monocle.AcceleratedScreen.platformGetNativeWindow.

Doc from com.sun.glass.ui.monocle.AcceleratedScreen.platformGetNativeWindow.

Returns a platform-specific native window handle suitable for use with eglCreateWindowSurface.

Annotations
@Override
swapBuffersback to summary
public boolean swapBuffers()

Overrides com.sun.glass.ui.monocle.AcceleratedScreen.swapBuffers.

Doc from com.sun.glass.ui.monocle.AcceleratedScreen.swapBuffers.

Copy the contents of the GL backbuffer to the screen

Returns:boolean

success or failure

Annotations
@Override