Class AcceleratedScreen


  • public class AcceleratedScreen
    extends java.lang.Object
    AcceleratedScreen 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.LinuxSystem ls  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      long getGLHandle()
      Return the GL library handle - for use in looking up native symbols
      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.
      boolean swapBuffers()
      Copy the contents of the GL backbuffer to the screen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ls

        protected static final com.sun.glass.ui.monocle.LinuxSystem ls
    • 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