Package com.sun.glass.ui.monocle
Class EGLAcceleratedScreen
java.lang.Object
com.sun.glass.ui.monocle.AcceleratedScreen
com.sun.glass.ui.monocle.EGLAcceleratedScreen
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
Fields inherited from class com.sun.glass.ui.monocle.AcceleratedScreen
ls -
Method Summary
Modifier and TypeMethodDescriptionvoidenableRendering(boolean flag) Make the EGL drawing surface current or notprotected longReturns a platform-specific native window handle suitable for use with eglCreateWindowSurface.booleanCopy the contents of the GL backbuffer to the screenMethods inherited from class com.sun.glass.ui.monocle.AcceleratedScreen
getEGLHandle, getGLHandle, platformGetNativeDisplay
-
Method Details
-
platformGetNativeWindow
protected long platformGetNativeWindow()Description copied from class:AcceleratedScreenReturns a platform-specific native window handle suitable for use with eglCreateWindowSurface.- Overrides:
platformGetNativeWindowin classAcceleratedScreen
-
enableRendering
public void enableRendering(boolean flag) Description copied from class:AcceleratedScreenMake the EGL drawing surface current or not- Overrides:
enableRenderingin classAcceleratedScreen
-
swapBuffers
public boolean swapBuffers()Description copied from class:AcceleratedScreenCopy the contents of the GL backbuffer to the screen- Overrides:
swapBuffersin classAcceleratedScreen- Returns:
- success or failure
-