Package com.sun.glass.ui.monocle
Class AcceleratedScreen
- java.lang.Object
-
- com.sun.glass.ui.monocle.AcceleratedScreen
-
public class AcceleratedScreen extends java.lang.ObjectAcceleratedScreen provides methods necessary to instantiate and intitialize a hardware-accelerated screen for rendering.
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.sun.glass.ui.monocle.LinuxSystemls
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableRendering(boolean flag)Make the EGL drawing surface current or notprotected longgetEGLHandle()Return the EGL library handle - for use in looking up native symbolslonggetGLHandle()Return the GL library handle - for use in looking up native symbolsprotected longplatformGetNativeDisplay()Returns a platform-specific native display handle suitable for use with eglGetDisplay.protected longplatformGetNativeWindow()Returns a platform-specific native window handle suitable for use with eglCreateWindowSurface.booleanswapBuffers()Copy the contents of the GL backbuffer to the screen
-
-
-
Method Detail
-
platformGetNativeDisplay
protected long platformGetNativeDisplay()
Returns a platform-specific native display handle suitable for use with eglGetDisplay.
-
platformGetNativeWindow
protected long platformGetNativeWindow()
Returns a platform-specific native window handle suitable for use with eglCreateWindowSurface.
-
enableRendering
public void enableRendering(boolean flag)
Make the EGL drawing surface current or not- Parameters:
flag-
-
getGLHandle
public long getGLHandle()
Return the GL library handle - for use in looking up native symbols
-
getEGLHandle
protected long getEGLHandle()
Return the EGL library handle - for use in looking up native symbols
-
swapBuffers
public boolean swapBuffers()
Copy the contents of the GL backbuffer to the screen- Returns:
- success or failure
-
-