public final class EGL
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EGL_ALPHA_MASK_SIZE
Config attributes
|
static int |
EGL_ALPHA_SIZE
Config attributes
|
static int |
EGL_BACK_BUFFER
EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets
|
static int |
EGL_BAD_ACCESS
Errors / GetError return values
|
static int |
EGL_BAD_ALLOC
Errors / GetError return values
|
static int |
EGL_BAD_ATTRIBUTE
Errors / GetError return values
|
static int |
EGL_BAD_CONFIG
Errors / GetError return values
|
static int |
EGL_BAD_CONTEXT
Errors / GetError return values
|
static int |
EGL_BAD_CURRENT_SURFACE
Errors / GetError return values
|
static int |
EGL_BAD_DISPLAY
Errors / GetError return values
|
static int |
EGL_BAD_MATCH
Errors / GetError return values
|
static int |
EGL_BAD_NATIVE_PIXMAP
Errors / GetError return values
|
static int |
EGL_BAD_NATIVE_WINDOW
Errors / GetError return values
|
static int |
EGL_BAD_PARAMETER
Errors / GetError return values
|
static int |
EGL_BAD_SURFACE
Errors / GetError return values
|
static int |
EGL_BIND_TO_TEXTURE_RGB
Config attributes
|
static int |
EGL_BIND_TO_TEXTURE_RGBA
Config attributes
|
static int |
EGL_BLUE_SIZE
Config attributes
|
static int |
EGL_BUFFER_DESTROYED
Back buffer swap behaviors
|
static int |
EGL_BUFFER_PRESERVED
Back buffer swap behaviors
|
static int |
EGL_BUFFER_SIZE
Config attributes
|
static int |
EGL_CLIENT_APIS
QueryString targets
|
static int |
EGL_COLOR_BUFFER_TYPE
Config attributes
|
static int |
EGL_CONFIG_CAVEAT
Config attributes
|
static int |
EGL_CONFIG_ID
Config attributes
|
static int |
EGL_CONFORMANT
Config attributes
|
static int |
EGL_CONTEXT_CLIENT_TYPE
QueryContext targets
|
static int |
EGL_CONTEXT_CLIENT_VERSION
CreateContext attributes
|
static int |
EGL_CONTEXT_LOST
Errors / GetError return values
|
static int |
EGL_DEFAULT_DISPLAY
Out-of-band handle values
|
static int |
EGL_DEPTH_SIZE
Config attributes
|
static int |
EGL_DISPLAY_SCALING
Constant scale factor by which fractional display resolutions &
aspect ratio are scaled when queried as integer values.
|
static int |
EGL_DONT_CARE
Out-of-band attribute value
|
static int |
EGL_DRAW
GetCurrentSurface targets
|
static int |
EGL_EXTENSIONS
QueryString targets
|
static int |
EGL_FALSE
EGL aliases
|
static int |
EGL_GREEN_SIZE
Config attributes
|
static int |
EGL_HEIGHT
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_HORIZONTAL_RESOLUTION
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_LARGEST_PBUFFER
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_LEVEL
Config attributes
|
static int |
EGL_LUMINANCE_BUFFER
Config attribute values
|
static int |
EGL_LUMINANCE_SIZE
Config attributes
|
static int |
EGL_MATCH_NATIVE_PIXMAP
Config attributes
|
static int |
EGL_MAX_PBUFFER_HEIGHT
Config attributes
|
static int |
EGL_MAX_PBUFFER_PIXELS
Config attributes
|
static int |
EGL_MAX_PBUFFER_WIDTH
Config attributes
|
static int |
EGL_MAX_SWAP_INTERVAL
Config attributes
|
static int |
EGL_MIN_SWAP_INTERVAL
Config attributes
|
static int |
EGL_MIPMAP_LEVEL
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_MIPMAP_TEXTURE
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_MULTISAMPLE_RESOLVE
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_MULTISAMPLE_RESOLVE_BOX
Multisample resolution behaviors
|
static int |
EGL_MULTISAMPLE_RESOLVE_BOX_BIT
EGL_SURFACE_TYPE mask bits
|
static int |
EGL_MULTISAMPLE_RESOLVE_DEFAULT
Multisample resolution behaviors
|
static int |
EGL_NATIVE_RENDERABLE
Config attributes
|
static int |
EGL_NATIVE_VISUAL_ID
Config attributes
|
static int |
EGL_NATIVE_VISUAL_TYPE
Config attributes
|
static int |
EGL_NO_CONTEXT
Out-of-band handle values
|
static int |
EGL_NO_DISPLAY
Out-of-band handle values
|
static int |
EGL_NO_SURFACE
Out-of-band handle values
|
static int |
EGL_NO_TEXTURE
More config attribute values, for EGL_TEXTURE_FORMAT
|
static int |
EGL_NON_CONFORMANT_CONFIG
Config attribute values
|
static int |
EGL_NONE
Config attributes
|
static int |
EGL_NOT_INITIALIZED
Errors / GetError return values
|
static int |
EGL_OPENGL_API
BindAPI/QueryAPI targets
|
static int |
EGL_OPENGL_BIT
EGL_RENDERABLE_TYPE mask bits
|
static int |
EGL_OPENGL_ES_API
BindAPI/QueryAPI targets
|
static int |
EGL_OPENGL_ES_BIT
EGL_RENDERABLE_TYPE mask bits
|
static int |
EGL_OPENGL_ES2_BIT
EGL_RENDERABLE_TYPE mask bits
|
static int |
EGL_OPENVG_API
BindAPI/QueryAPI targets
|
static int |
EGL_OPENVG_BIT
EGL_RENDERABLE_TYPE mask bits
|
static int |
EGL_PBUFFER_BIT
EGL_SURFACE_TYPE mask bits
|
static int |
EGL_PIXEL_ASPECT_RATIO
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_PIXMAP_BIT
EGL_SURFACE_TYPE mask bits
|
static int |
EGL_READ
GetCurrentSurface targets
|
static int |
EGL_RED_SIZE
Config attributes
|
static int |
EGL_RENDER_BUFFER
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_RENDERABLE_TYPE
Config attributes
|
static int |
EGL_RGB_BUFFER
Config attribute values
|
static int |
EGL_SAMPLE_BUFFERS
Config attributes
|
static int |
EGL_SAMPLES
Config attributes
|
static int |
EGL_SINGLE_BUFFER
EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets
|
static int |
EGL_SLOW_CONFIG
Config attribute values
|
static int |
EGL_STENCIL_SIZE
Config attributes
|
static int |
EGL_SUCCESS
Errors / GetError return values
|
static int |
EGL_SURFACE_TYPE
Config attributes
|
static int |
EGL_SWAP_BEHAVIOR
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_SWAP_BEHAVIOR_PRESERVED_BIT
EGL_SURFACE_TYPE mask bits
|
static int |
EGL_TEXTURE_2D
More config attribute values, for EGL_TEXTURE_FORMAT
|
static int |
EGL_TEXTURE_FORMAT
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_TEXTURE_RGB
More config attribute values, for EGL_TEXTURE_FORMAT
|
static int |
EGL_TEXTURE_RGBA
More config attribute values, for EGL_TEXTURE_FORMAT
|
static int |
EGL_TEXTURE_TARGET
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_TRANSPARENT_BLUE_VALUE
Config attributes
|
static int |
EGL_TRANSPARENT_GREEN_VALUE
Config attributes
|
static int |
EGL_TRANSPARENT_RED_VALUE
Config attributes
|
static int |
EGL_TRANSPARENT_RGB
Config attribute values
|
static int |
EGL_TRANSPARENT_TYPE
Config attributes
|
static int |
EGL_TRUE
EGL aliases
|
static int |
EGL_UNKNOWN
Unknown display resolution/aspect ratio
|
static int |
EGL_VENDOR
QueryString targets
|
static int |
EGL_VERSION
QueryString targets
|
static int |
EGL_VERTICAL_RESOLUTION
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_VG_ALPHA_FORMAT
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_VG_ALPHA_FORMAT_NONPRE
OpenVG alpha formats
|
static int |
EGL_VG_ALPHA_FORMAT_PRE
OpenVG alpha formats
|
static int |
EGL_VG_ALPHA_FORMAT_PRE_BIT
EGL_SURFACE_TYPE mask bits
|
static int |
EGL_VG_COLORSPACE
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_VG_COLORSPACE_LINEAR
OpenVG color spaces
|
static int |
EGL_VG_COLORSPACE_LINEAR_BIT
EGL_SURFACE_TYPE mask bits
|
static int |
EGL_VG_COLORSPACE_sRGB
OpenVG color spaces
|
static int |
EGL_WIDTH
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets
|
static int |
EGL_WINDOW_BIT
EGL_SURFACE_TYPE mask bits
|
Modifier and Type | Method and Description |
---|---|
static boolean |
eglBindAPI(int api)
Binds the specified rendering API to the current thread.
|
static EGLContext |
eglGetCurrentContext()
Returns the current EGL context for the current rendering API.
|
static EGLDisplay |
eglGetCurrentDisplay()
Returns the EGL display associated with the current context.
|
static EGLSurface |
eglGetCurrentSurface(int readdraw)
Returns the EGL surfaces used for rendering by the current context.
|
static EGLDisplay |
eglGetDisplay(long display_id)
Obtains an EGL display from the specified native display and initializes it.
|
static int |
eglGetError() |
static boolean |
eglIsCurrentContext(EGLContext context)
Returns true if the specified EGL context is the current context.
|
static int |
eglQueryAPI()
Returns the current rendering API.
|
static void |
eglQueryContext(EGLDisplay dpy,
EGLContext ctx,
int attribute,
java.nio.IntBuffer value)
Returns the value of the specified EGL context attribute in the value parameter.
|
static java.lang.String |
eglQueryString(EGLDisplay dpy,
int name)
Returns a string describing some aspect of the EGL implementation running on the specified display.
|
static void |
eglQuerySurface(EGLDisplay dpy,
EGLSurface surface,
int attribute,
java.nio.IntBuffer value)
Returns the value of the specified EGL surface attribute in the value parameter.
|
static void |
eglReleaseCurrent(EGLDisplay dpy)
Releases the current context without assigning a new one.
|
static boolean |
eglWaitClient()
Prevents native rendering API functions from executing until any
outstanding client API rendering affecting the same surface is complete.
|
static boolean |
eglWaitGL()
This method does the equivalent of:
EGLenum api = eglQueryAPI();
eglBindAPI(EGL_OPENGL_ES_API);
eglWaitClient();
eglBindAPI(api);
|
static boolean |
eglWaitNative(int engine)
Prevents a client API command sequence from executing until any outstanding
native rendering affecting the same surface is complete.
|
public static final int EGL_FALSE
public static final int EGL_TRUE
public static final int EGL_DEFAULT_DISPLAY
public static final int EGL_NO_CONTEXT
public static final int EGL_NO_DISPLAY
public static final int EGL_NO_SURFACE
public static final int EGL_DONT_CARE
public static final int EGL_SUCCESS
public static final int EGL_NOT_INITIALIZED
public static final int EGL_BAD_ACCESS
public static final int EGL_BAD_ALLOC
public static final int EGL_BAD_ATTRIBUTE
public static final int EGL_BAD_CONFIG
public static final int EGL_BAD_CONTEXT
public static final int EGL_BAD_CURRENT_SURFACE
public static final int EGL_BAD_DISPLAY
public static final int EGL_BAD_MATCH
public static final int EGL_BAD_NATIVE_PIXMAP
public static final int EGL_BAD_NATIVE_WINDOW
public static final int EGL_BAD_PARAMETER
public static final int EGL_BAD_SURFACE
public static final int EGL_CONTEXT_LOST
public static final int EGL_BUFFER_SIZE
public static final int EGL_ALPHA_SIZE
public static final int EGL_BLUE_SIZE
public static final int EGL_GREEN_SIZE
public static final int EGL_RED_SIZE
public static final int EGL_DEPTH_SIZE
public static final int EGL_STENCIL_SIZE
public static final int EGL_CONFIG_CAVEAT
public static final int EGL_CONFIG_ID
public static final int EGL_LEVEL
public static final int EGL_MAX_PBUFFER_HEIGHT
public static final int EGL_MAX_PBUFFER_PIXELS
public static final int EGL_MAX_PBUFFER_WIDTH
public static final int EGL_NATIVE_RENDERABLE
public static final int EGL_NATIVE_VISUAL_ID
public static final int EGL_NATIVE_VISUAL_TYPE
public static final int EGL_SAMPLES
public static final int EGL_SAMPLE_BUFFERS
public static final int EGL_SURFACE_TYPE
public static final int EGL_TRANSPARENT_TYPE
public static final int EGL_TRANSPARENT_BLUE_VALUE
public static final int EGL_TRANSPARENT_GREEN_VALUE
public static final int EGL_TRANSPARENT_RED_VALUE
public static final int EGL_NONE
public static final int EGL_BIND_TO_TEXTURE_RGB
public static final int EGL_BIND_TO_TEXTURE_RGBA
public static final int EGL_MIN_SWAP_INTERVAL
public static final int EGL_MAX_SWAP_INTERVAL
public static final int EGL_LUMINANCE_SIZE
public static final int EGL_ALPHA_MASK_SIZE
public static final int EGL_COLOR_BUFFER_TYPE
public static final int EGL_RENDERABLE_TYPE
public static final int EGL_MATCH_NATIVE_PIXMAP
public static final int EGL_CONFORMANT
public static final int EGL_SLOW_CONFIG
public static final int EGL_NON_CONFORMANT_CONFIG
public static final int EGL_TRANSPARENT_RGB
public static final int EGL_RGB_BUFFER
public static final int EGL_LUMINANCE_BUFFER
public static final int EGL_NO_TEXTURE
public static final int EGL_TEXTURE_RGB
public static final int EGL_TEXTURE_RGBA
public static final int EGL_TEXTURE_2D
public static final int EGL_PBUFFER_BIT
public static final int EGL_PIXMAP_BIT
public static final int EGL_WINDOW_BIT
public static final int EGL_VG_COLORSPACE_LINEAR_BIT
public static final int EGL_VG_ALPHA_FORMAT_PRE_BIT
public static final int EGL_MULTISAMPLE_RESOLVE_BOX_BIT
public static final int EGL_SWAP_BEHAVIOR_PRESERVED_BIT
public static final int EGL_OPENGL_ES_BIT
public static final int EGL_OPENVG_BIT
public static final int EGL_OPENGL_ES2_BIT
public static final int EGL_OPENGL_BIT
public static final int EGL_VENDOR
public static final int EGL_VERSION
public static final int EGL_EXTENSIONS
public static final int EGL_CLIENT_APIS
public static final int EGL_HEIGHT
public static final int EGL_WIDTH
public static final int EGL_LARGEST_PBUFFER
public static final int EGL_TEXTURE_FORMAT
public static final int EGL_TEXTURE_TARGET
public static final int EGL_MIPMAP_TEXTURE
public static final int EGL_MIPMAP_LEVEL
public static final int EGL_RENDER_BUFFER
public static final int EGL_VG_COLORSPACE
public static final int EGL_VG_ALPHA_FORMAT
public static final int EGL_HORIZONTAL_RESOLUTION
public static final int EGL_VERTICAL_RESOLUTION
public static final int EGL_PIXEL_ASPECT_RATIO
public static final int EGL_SWAP_BEHAVIOR
public static final int EGL_MULTISAMPLE_RESOLVE
public static final int EGL_BACK_BUFFER
public static final int EGL_SINGLE_BUFFER
public static final int EGL_VG_COLORSPACE_sRGB
public static final int EGL_VG_COLORSPACE_LINEAR
public static final int EGL_VG_ALPHA_FORMAT_NONPRE
public static final int EGL_VG_ALPHA_FORMAT_PRE
public static final int EGL_DISPLAY_SCALING
public static final int EGL_UNKNOWN
public static final int EGL_BUFFER_PRESERVED
public static final int EGL_BUFFER_DESTROYED
public static final int EGL_CONTEXT_CLIENT_TYPE
public static final int EGL_CONTEXT_CLIENT_VERSION
public static final int EGL_MULTISAMPLE_RESOLVE_DEFAULT
public static final int EGL_MULTISAMPLE_RESOLVE_BOX
public static final int EGL_OPENGL_ES_API
public static final int EGL_OPENVG_API
public static final int EGL_OPENGL_API
public static final int EGL_DRAW
public static final int EGL_READ
public static int eglGetError()
public static EGLDisplay eglGetDisplay(long display_id) throws LWJGLException
display_id
- the handle to the native display.LWJGLException
- if no display is available or an EGL error occurspublic static java.lang.String eglQueryString(EGLDisplay dpy, int name)
dpy
- the EGL display to queryname
- the value to querypublic static void eglQuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, java.nio.IntBuffer value) throws LWJGLException
dpy
- the EGL displaysurface
- the EGL surfaceattribute
- the surface attributevalue
- the attribute value will be returned hereLWJGLException
- if an EGL error occurspublic static boolean eglBindAPI(int api)
api
- the API to bindpublic static int eglQueryAPI()
public static void eglReleaseCurrent(EGLDisplay dpy) throws LWJGLException, PowerManagementEventException
dpy
- the EGL displayLWJGLException
- if an EGL error occursPowerManagementEventException
- if an EGL power management event occurseglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface, EGLContext)
public static EGLContext eglGetCurrentContext() throws LWJGLException
LWJGLException
- if an EGL error occurspublic static boolean eglIsCurrentContext(EGLContext context)
#eglGetCurrentContext
and comparing the two EGLContext objects.context
- the EGL contexteglGetCurrentContext()
public static EGLSurface eglGetCurrentSurface(int readdraw) throws LWJGLException
readdraw
- the read or draw surfaceLWJGLException
- if an EGL error occurspublic static EGLDisplay eglGetCurrentDisplay() throws LWJGLException
LWJGLException
- if an EGL error occurspublic static void eglQueryContext(EGLDisplay dpy, EGLContext ctx, int attribute, java.nio.IntBuffer value) throws LWJGLException
dpy
- the EGL displayctx
- the EGL contextattribute
- the context attributevalue
- the attribute value will be returned hereLWJGLException
- if an EGL error occurspublic static boolean eglWaitClient()
public static boolean eglWaitGL()
EGLenum api = eglQueryAPI();
eglBindAPI(EGL_OPENGL_ES_API);
eglWaitClient();
eglBindAPI(api);
public static boolean eglWaitNative(int engine)
engine
- the native rendering engineCopyright © 2002-2009 lwjgl.org. All Rights Reserved.