Class EGLPlatform

java.lang.Object
com.sun.glass.ui.monocle.NativePlatform
com.sun.glass.ui.monocle.EGLPlatform

public class EGLPlatform extends NativePlatform
  • Constructor Details

    • EGLPlatform

      public EGLPlatform()
      Create an EGLPlatform. If a library with specific native code is needed for this platform, it will be downloaded now. The system property monocle.egl.lib can be used to define the name of the library that should be loaded.
  • Method Details

    • createCursor

      protected com.sun.glass.ui.monocle.NativeCursor createCursor()
      Description copied from class: NativePlatform
      Creates the NativeCursor for this platform. Called once.
      Returns:
      a new NativeCursor
    • createScreen

      protected NativeScreen createScreen()
      Description copied from class: NativePlatform
      Creates the NativeScreen for this platform. Called once.
      Returns:
      a new NativeScreen
    • createScreens

      protected List<NativeScreen> createScreens()
      Description copied from class: NativePlatform
      Create NativeScreen instances for all available native screens. The default implementation of this method will invoke the createScreen method and return a list with a single screen only. Subclasses can override this and return a list with all screens. The approach to get this list is specific to the subclass and can be done in Java or in native code.

      The first element in the returned list is considered to be the primary screen.

      Overrides:
      createScreens in class NativePlatform
      Returns:
      a list with all native screens. This list is never null, but it can be empty.
    • getAcceleratedScreen

      public AcceleratedScreen getAcceleratedScreen(int[] attributes) throws GLException
      Description copied from class: NativePlatform
      Gets the AcceleratedScreen for this platform
      Overrides:
      getAcceleratedScreen in class NativePlatform
      Parameters:
      attributes - a sequence of pairs (GLAttibute, value)
      Returns:
      an AcceleratedScreen for rendering using OpenGL
      Throws:
      GLException - if no OpenGL surface could be created
    • createInputDeviceRegistry

      protected com.sun.glass.ui.monocle.InputDeviceRegistry createInputDeviceRegistry()
      Description copied from class: NativePlatform
      Creates the InputDeviceRegistry for this platform. Called once.
      Specified by:
      createInputDeviceRegistry in class NativePlatform
      Returns:
      a new InputDeviceRegistry