Class AcceleratedScreen

java.lang.Object
com.sun.glass.ui.monocle.AcceleratedScreen
Direct Known Subclasses:
EGLAcceleratedScreen

public class AcceleratedScreen extends 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 final com.sun.glass.ui.monocle.LinuxSystem
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    enableRendering(boolean flag)
    Make the EGL drawing surface current or not
    protected long
    Return the EGL library handle - for use in looking up native symbols
    long
    Return the GL library handle - for use in looking up native symbols
    protected long
    Returns a platform-specific native display handle suitable for use with eglGetDisplay.
    protected long
    Returns a platform-specific native window handle suitable for use with eglCreateWindowSurface.
    boolean
    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 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