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

public Class AcceleratedScreen

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.glass.ui.monocle.AndroidAcceleratedScreen, com.sun.glass.ui.monocle.DispmanAcceleratedScreen, com.sun.glass.ui.monocle.EGLAcceleratedScreen, com.sun.glass.ui.monocle.MX6AcceleratedScreen, com.sun.glass.ui.monocle.X11AcceleratedScreen

AcceleratedScreen provides methods necessary to instantiate and intitialize a hardware-accelerated screen for rendering.

Field Summary

Modifier and TypeField and Description
private EGL
pack-priv long[]
pack-priv long
pack-priv long
private static long
pack-priv long
private static long
private static boolean
protected static final LinuxSystem
pack-priv long

Constructor Summary

AccessConstructor and Description
pack-priv
AcceleratedScreen()

Create and initialize an AcceleratedScreen.

pack-priv
AcceleratedScreen(int[]
- attributes to be used for filtering the EGL configurations to choose from
attributes
)

Perform basic egl intialization - open the display, create the drawing surface, and create a GL context to that drawing surface.

Method Summary

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

Make the EGL drawing surface current or not

protected long
getEGLHandle()

Return the EGL library handle - for use in looking up native symbols

public long
getGLHandle()

Return the GL library handle - for use in looking up native symbols

pack-priv boolean

Returns:

success or failure
initPlatformLibraries
()

Load any native libraries needed to instantiate and initialize the native drawing surface and rendering context

protected long
platformGetNativeDisplay()

Returns a platform-specific native display handle suitable for use with eglGetDisplay.

protected long
platformGetNativeWindow()

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

public boolean

Returns:

success or failure
swapBuffers
()

Copy the contents of the GL backbuffer to the screen

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eglback to summary
private EGL egl
eglConfigsback to summary
pack-priv long[] eglConfigs
eglContextback to summary
pack-priv long eglContext
eglDisplayback to summary
pack-priv long eglDisplay
eglLibraryHandleback to summary
private static long eglLibraryHandle
eglSurfaceback to summary
pack-priv long eglSurface
glesLibraryHandleback to summary
private static long glesLibraryHandle
initializedback to summary
private static boolean initialized
lsback to summary
protected static final LinuxSystem ls
nativeWindowback to summary
pack-priv long nativeWindow

Constructor Detail

AcceleratedScreenback to summary
pack-priv AcceleratedScreen()

Create and initialize an AcceleratedScreen. Subclasses should override this constructor in case the AcceleratedScreen(int[]) constructor is not sufficient.

AcceleratedScreenback to summary
pack-priv AcceleratedScreen(int[] attributes) throws GLException, UnsatisfiedLinkError

Perform basic egl intialization - open the display, create the drawing surface, and create a GL context to that drawing surface.

Parameters
attributes:int[]

- attributes to be used for filtering the EGL configurations to choose from

Method Detail

createSurfaceback to summary
private void createSurface()
enableRenderingback to summary
public void enableRendering(boolean flag)

Make the EGL drawing surface current or not

getEGLHandleback to summary
protected long getEGLHandle()

Return the EGL library handle - for use in looking up native symbols

getGLHandleback to summary
public long getGLHandle()

Return the GL library handle - for use in looking up native symbols

initPlatformLibrariesback to summary
pack-priv boolean initPlatformLibraries() throws UnsatisfiedLinkError

Load any native libraries needed to instantiate and initialize the native drawing surface and rendering context

Returns:boolean

success or failure

platformGetNativeDisplayback to summary
protected long platformGetNativeDisplay()

Returns a platform-specific native display handle suitable for use with eglGetDisplay.

platformGetNativeWindowback to summary
protected long platformGetNativeWindow()

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

swapBuffersback to summary
public boolean swapBuffers()

Copy the contents of the GL backbuffer to the screen

Returns:boolean

success or failure