public class AcceleratedScreen
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private EGL |
egl |
(package private) long[] |
eglConfigs |
private long |
eglContext |
private long |
eglDisplay |
private static long |
eglLibraryHandle |
private long |
eglSurface |
private static long |
glesLibraryHandle |
private static boolean |
initialized |
protected static LinuxSystem |
ls |
private long |
nativeWindow |
Constructor and Description |
---|
AcceleratedScreen(int[] attributes)
Perform basic egl intialization - open the display, create the drawing
surface, and create a GL context to that drawing surface.
|
Modifier and Type | Method and Description |
---|---|
private void |
createSurface() |
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
|
(package private) boolean |
initPlatformLibraries()
Load any native libraries needed to instantiate and initialize the
native drawing surface and rendering context
|
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
|
private static long glesLibraryHandle
private static long eglLibraryHandle
private static boolean initialized
private long eglSurface
private long eglContext
private long eglDisplay
private long nativeWindow
protected static final LinuxSystem ls
private EGL egl
long[] eglConfigs
AcceleratedScreen(int[] attributes) throws GLException, java.lang.UnsatisfiedLinkError
attributes
- - attributes to be used for filtering the EGL
configurations to choose fromGLException
java.lang.UnsatisfiedLinkError
protected long platformGetNativeDisplay()
protected long platformGetNativeWindow()
private void createSurface()
public void enableRendering(boolean flag)
flag
- boolean initPlatformLibraries() throws java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError
public long getGLHandle()
protected long getEGLHandle()
public boolean swapBuffers()