Package com.sun.glass.ui.monocle
Class EGLPlatform
java.lang.Object
com.sun.glass.ui.monocle.NativePlatform
com.sun.glass.ui.monocle.EGLPlatform
-
Field Summary
Fields inherited from class com.sun.glass.ui.monocle.NativePlatform
accScreen, useCursor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.sun.glass.ui.monocle.NativeCursorCreates the NativeCursor for this platform.protected com.sun.glass.ui.monocle.InputDeviceRegistryCreates the InputDeviceRegistry for this platform.protected NativeScreenCreates the NativeScreen for this platform.protected List<NativeScreen>CreateNativeScreeninstances for all available native screens.getAcceleratedScreen(int[] attributes) Gets the AcceleratedScreen for this platformMethods inherited from class com.sun.glass.ui.monocle.NativePlatform
logSelectedCursor
-
Constructor Details
-
EGLPlatform
public EGLPlatform()Create anEGLPlatform. If a library with specific native code is needed for this platform, it will be downloaded now. The system propertymonocle.egl.libcan 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:NativePlatformCreates the NativeCursor for this platform. Called once.- Returns:
- a new NativeCursor
-
createScreen
Description copied from class:NativePlatformCreates the NativeScreen for this platform. Called once.- Returns:
- a new NativeScreen
-
createScreens
Description copied from class:NativePlatformCreateNativeScreeninstances for all available native screens. The default implementation of this method will invoke thecreateScreenmethod 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:
createScreensin classNativePlatform- Returns:
- a list with all native screens. This list is
never
null, but it can be empty.
-
getAcceleratedScreen
Description copied from class:NativePlatformGets the AcceleratedScreen for this platform- Overrides:
getAcceleratedScreenin classNativePlatform- 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:NativePlatformCreates the InputDeviceRegistry for this platform. Called once.- Specified by:
createInputDeviceRegistryin classNativePlatform- Returns:
- a new InputDeviceRegistry
-