Package com.sun.glass.ui.monocle
Class AcceleratedScreen
java.lang.Object
com.sun.glass.ui.monocle.AcceleratedScreen
- Direct Known Subclasses:
EGLAcceleratedScreen
AcceleratedScreen provides methods necessary to instantiate and intitialize
a hardware-accelerated screen for rendering.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidenableRendering(boolean flag) Make the EGL drawing surface current or notprotected longReturn the EGL library handle - for use in looking up native symbolslongReturn the GL library handle - for use in looking up native symbolsprotected longReturns a platform-specific native display handle suitable for use with eglGetDisplay.protected longReturns a platform-specific native window handle suitable for use with eglCreateWindowSurface.booleanCopy the contents of the GL backbuffer to the screen
-
Field Details
-
ls
protected static final com.sun.glass.ui.monocle.LinuxSystem ls
-
-
Method Details
-
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
-