Package org.lwjgl.opengles
Class EGL
java.lang.Object
org.lwjgl.opengles.EGL
EGL wrapper class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Config attributesstatic final int
Config attributesstatic final int
EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targetsstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Errors / GetError return valuesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Back buffer swap behaviorsstatic final int
Back buffer swap behaviorsstatic final int
Config attributesstatic final int
QueryString targetsstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
QueryContext targetsstatic final int
CreateContext attributesstatic final int
Errors / GetError return valuesstatic final int
Out-of-band handle valuesstatic final int
Config attributesstatic final int
Constant scale factor by which fractional display resolutions invalid input: '&' aspect ratio are scaled when queried as integer values.static final int
Out-of-band attribute valuestatic final int
GetCurrentSurface targetsstatic final int
QueryString targetsstatic final int
EGL aliasesstatic final int
Config attributesstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
Config attributesstatic final int
Config attribute valuesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
Multisample resolution behaviorsstatic final int
EGL_SURFACE_TYPE mask bitsstatic final int
Multisample resolution behaviorsstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Out-of-band handle valuesstatic final int
Out-of-band handle valuesstatic final int
Out-of-band handle valuesstatic final int
More config attribute values, for EGL_TEXTURE_FORMATstatic final int
Config attribute valuesstatic final int
Config attributesstatic final int
Errors / GetError return valuesstatic final int
BindAPI/QueryAPI targetsstatic final int
EGL_RENDERABLE_TYPE mask bitsstatic final int
BindAPI/QueryAPI targetsstatic final int
EGL_RENDERABLE_TYPE mask bitsstatic final int
EGL_RENDERABLE_TYPE mask bitsstatic final int
BindAPI/QueryAPI targetsstatic final int
EGL_RENDERABLE_TYPE mask bitsstatic final int
EGL_SURFACE_TYPE mask bitsstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
EGL_SURFACE_TYPE mask bitsstatic final int
GetCurrentSurface targetsstatic final int
Config attributesstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
Config attributesstatic final int
Config attribute valuesstatic final int
Config attributesstatic final int
Config attributesstatic final int
EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targetsstatic final int
Config attribute valuesstatic final int
Config attributesstatic final int
Errors / GetError return valuesstatic final int
Config attributesstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
EGL_SURFACE_TYPE mask bitsstatic final int
More config attribute values, for EGL_TEXTURE_FORMATstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
More config attribute values, for EGL_TEXTURE_FORMATstatic final int
More config attribute values, for EGL_TEXTURE_FORMATstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attributesstatic final int
Config attribute valuesstatic final int
Config attributesstatic final int
EGL aliasesstatic final int
Unknown display resolution/aspect ratiostatic final int
QueryString targetsstatic final int
QueryString targetsstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
OpenVG alpha formatsstatic final int
OpenVG alpha formatsstatic final int
EGL_SURFACE_TYPE mask bitsstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
OpenVG color spacesstatic final int
EGL_SURFACE_TYPE mask bitsstatic final int
OpenVG color spacesstatic final int
QuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic final int
EGL_SURFACE_TYPE mask bits -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
eglBindAPI
(int api) Binds the specified rendering API to the current thread.static EGLContext
Returns the current EGL context for the current rendering API.static EGLDisplay
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
static boolean
eglIsCurrentContext
(EGLContext context) Returns true if the specified EGL context is the current context.static int
Returns the current rendering API.static void
eglQueryContext
(EGLDisplay dpy, EGLContext ctx, int attribute, IntBuffer value) Returns the value of the specified EGL context attribute in the value parameter.static 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, IntBuffer value) Returns the value of the specified EGL surface attribute in the value parameter.static void
Releases the current context without assigning a new one.static boolean
Prevents native rendering API functions from executing until any outstanding client API rendering affecting the same surface is complete.static boolean
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.
-
Field Details
-
EGL_FALSE
public static final int EGL_FALSEEGL aliases- See Also:
-
EGL_TRUE
public static final int EGL_TRUEEGL aliases- See Also:
-
EGL_DEFAULT_DISPLAY
public static final int EGL_DEFAULT_DISPLAYOut-of-band handle values- See Also:
-
EGL_NO_CONTEXT
public static final int EGL_NO_CONTEXTOut-of-band handle values- See Also:
-
EGL_NO_DISPLAY
public static final int EGL_NO_DISPLAYOut-of-band handle values- See Also:
-
EGL_NO_SURFACE
public static final int EGL_NO_SURFACEOut-of-band handle values- See Also:
-
EGL_DONT_CARE
public static final int EGL_DONT_CAREOut-of-band attribute value- See Also:
-
EGL_SUCCESS
public static final int EGL_SUCCESSErrors / GetError return values- See Also:
-
EGL_NOT_INITIALIZED
public static final int EGL_NOT_INITIALIZEDErrors / GetError return values- See Also:
-
EGL_BAD_ACCESS
public static final int EGL_BAD_ACCESSErrors / GetError return values- See Also:
-
EGL_BAD_ALLOC
public static final int EGL_BAD_ALLOCErrors / GetError return values- See Also:
-
EGL_BAD_ATTRIBUTE
public static final int EGL_BAD_ATTRIBUTEErrors / GetError return values- See Also:
-
EGL_BAD_CONFIG
public static final int EGL_BAD_CONFIGErrors / GetError return values- See Also:
-
EGL_BAD_CONTEXT
public static final int EGL_BAD_CONTEXTErrors / GetError return values- See Also:
-
EGL_BAD_CURRENT_SURFACE
public static final int EGL_BAD_CURRENT_SURFACEErrors / GetError return values- See Also:
-
EGL_BAD_DISPLAY
public static final int EGL_BAD_DISPLAYErrors / GetError return values- See Also:
-
EGL_BAD_MATCH
public static final int EGL_BAD_MATCHErrors / GetError return values- See Also:
-
EGL_BAD_NATIVE_PIXMAP
public static final int EGL_BAD_NATIVE_PIXMAPErrors / GetError return values- See Also:
-
EGL_BAD_NATIVE_WINDOW
public static final int EGL_BAD_NATIVE_WINDOWErrors / GetError return values- See Also:
-
EGL_BAD_PARAMETER
public static final int EGL_BAD_PARAMETERErrors / GetError return values- See Also:
-
EGL_BAD_SURFACE
public static final int EGL_BAD_SURFACEErrors / GetError return values- See Also:
-
EGL_CONTEXT_LOST
public static final int EGL_CONTEXT_LOSTErrors / GetError return values- See Also:
-
EGL_BUFFER_SIZE
public static final int EGL_BUFFER_SIZEConfig attributes- See Also:
-
EGL_ALPHA_SIZE
public static final int EGL_ALPHA_SIZEConfig attributes- See Also:
-
EGL_BLUE_SIZE
public static final int EGL_BLUE_SIZEConfig attributes- See Also:
-
EGL_GREEN_SIZE
public static final int EGL_GREEN_SIZEConfig attributes- See Also:
-
EGL_RED_SIZE
public static final int EGL_RED_SIZEConfig attributes- See Also:
-
EGL_DEPTH_SIZE
public static final int EGL_DEPTH_SIZEConfig attributes- See Also:
-
EGL_STENCIL_SIZE
public static final int EGL_STENCIL_SIZEConfig attributes- See Also:
-
EGL_CONFIG_CAVEAT
public static final int EGL_CONFIG_CAVEATConfig attributes- See Also:
-
EGL_CONFIG_ID
public static final int EGL_CONFIG_IDConfig attributes- See Also:
-
EGL_LEVEL
public static final int EGL_LEVELConfig attributes- See Also:
-
EGL_MAX_PBUFFER_HEIGHT
public static final int EGL_MAX_PBUFFER_HEIGHTConfig attributes- See Also:
-
EGL_MAX_PBUFFER_PIXELS
public static final int EGL_MAX_PBUFFER_PIXELSConfig attributes- See Also:
-
EGL_MAX_PBUFFER_WIDTH
public static final int EGL_MAX_PBUFFER_WIDTHConfig attributes- See Also:
-
EGL_NATIVE_RENDERABLE
public static final int EGL_NATIVE_RENDERABLEConfig attributes- See Also:
-
EGL_NATIVE_VISUAL_ID
public static final int EGL_NATIVE_VISUAL_IDConfig attributes- See Also:
-
EGL_NATIVE_VISUAL_TYPE
public static final int EGL_NATIVE_VISUAL_TYPEConfig attributes- See Also:
-
EGL_SAMPLES
public static final int EGL_SAMPLESConfig attributes- See Also:
-
EGL_SAMPLE_BUFFERS
public static final int EGL_SAMPLE_BUFFERSConfig attributes- See Also:
-
EGL_SURFACE_TYPE
public static final int EGL_SURFACE_TYPEConfig attributes- See Also:
-
EGL_TRANSPARENT_TYPE
public static final int EGL_TRANSPARENT_TYPEConfig attributes- See Also:
-
EGL_TRANSPARENT_BLUE_VALUE
public static final int EGL_TRANSPARENT_BLUE_VALUEConfig attributes- See Also:
-
EGL_TRANSPARENT_GREEN_VALUE
public static final int EGL_TRANSPARENT_GREEN_VALUEConfig attributes- See Also:
-
EGL_TRANSPARENT_RED_VALUE
public static final int EGL_TRANSPARENT_RED_VALUEConfig attributes- See Also:
-
EGL_NONE
public static final int EGL_NONEConfig attributes- See Also:
-
EGL_BIND_TO_TEXTURE_RGB
public static final int EGL_BIND_TO_TEXTURE_RGBConfig attributes- See Also:
-
EGL_BIND_TO_TEXTURE_RGBA
public static final int EGL_BIND_TO_TEXTURE_RGBAConfig attributes- See Also:
-
EGL_MIN_SWAP_INTERVAL
public static final int EGL_MIN_SWAP_INTERVALConfig attributes- See Also:
-
EGL_MAX_SWAP_INTERVAL
public static final int EGL_MAX_SWAP_INTERVALConfig attributes- See Also:
-
EGL_LUMINANCE_SIZE
public static final int EGL_LUMINANCE_SIZEConfig attributes- See Also:
-
EGL_ALPHA_MASK_SIZE
public static final int EGL_ALPHA_MASK_SIZEConfig attributes- See Also:
-
EGL_COLOR_BUFFER_TYPE
public static final int EGL_COLOR_BUFFER_TYPEConfig attributes- See Also:
-
EGL_RENDERABLE_TYPE
public static final int EGL_RENDERABLE_TYPEConfig attributes- See Also:
-
EGL_MATCH_NATIVE_PIXMAP
public static final int EGL_MATCH_NATIVE_PIXMAPConfig attributes- See Also:
-
EGL_CONFORMANT
public static final int EGL_CONFORMANTConfig attributes- See Also:
-
EGL_SLOW_CONFIG
public static final int EGL_SLOW_CONFIGConfig attribute values- See Also:
-
EGL_NON_CONFORMANT_CONFIG
public static final int EGL_NON_CONFORMANT_CONFIGConfig attribute values- See Also:
-
EGL_TRANSPARENT_RGB
public static final int EGL_TRANSPARENT_RGBConfig attribute values- See Also:
-
EGL_RGB_BUFFER
public static final int EGL_RGB_BUFFERConfig attribute values- See Also:
-
EGL_LUMINANCE_BUFFER
public static final int EGL_LUMINANCE_BUFFERConfig attribute values- See Also:
-
EGL_NO_TEXTURE
public static final int EGL_NO_TEXTUREMore config attribute values, for EGL_TEXTURE_FORMAT- See Also:
-
EGL_TEXTURE_RGB
public static final int EGL_TEXTURE_RGBMore config attribute values, for EGL_TEXTURE_FORMAT- See Also:
-
EGL_TEXTURE_RGBA
public static final int EGL_TEXTURE_RGBAMore config attribute values, for EGL_TEXTURE_FORMAT- See Also:
-
EGL_TEXTURE_2D
public static final int EGL_TEXTURE_2DMore config attribute values, for EGL_TEXTURE_FORMAT- See Also:
-
EGL_PBUFFER_BIT
public static final int EGL_PBUFFER_BITEGL_SURFACE_TYPE mask bits- See Also:
-
EGL_PIXMAP_BIT
public static final int EGL_PIXMAP_BITEGL_SURFACE_TYPE mask bits- See Also:
-
EGL_WINDOW_BIT
public static final int EGL_WINDOW_BITEGL_SURFACE_TYPE mask bits- See Also:
-
EGL_VG_COLORSPACE_LINEAR_BIT
public static final int EGL_VG_COLORSPACE_LINEAR_BITEGL_SURFACE_TYPE mask bits- See Also:
-
EGL_VG_ALPHA_FORMAT_PRE_BIT
public static final int EGL_VG_ALPHA_FORMAT_PRE_BITEGL_SURFACE_TYPE mask bits- See Also:
-
EGL_MULTISAMPLE_RESOLVE_BOX_BIT
public static final int EGL_MULTISAMPLE_RESOLVE_BOX_BITEGL_SURFACE_TYPE mask bits- See Also:
-
EGL_SWAP_BEHAVIOR_PRESERVED_BIT
public static final int EGL_SWAP_BEHAVIOR_PRESERVED_BITEGL_SURFACE_TYPE mask bits- See Also:
-
EGL_OPENGL_ES_BIT
public static final int EGL_OPENGL_ES_BITEGL_RENDERABLE_TYPE mask bits- See Also:
-
EGL_OPENVG_BIT
public static final int EGL_OPENVG_BITEGL_RENDERABLE_TYPE mask bits- See Also:
-
EGL_OPENGL_ES2_BIT
public static final int EGL_OPENGL_ES2_BITEGL_RENDERABLE_TYPE mask bits- See Also:
-
EGL_OPENGL_BIT
public static final int EGL_OPENGL_BITEGL_RENDERABLE_TYPE mask bits- See Also:
-
EGL_VENDOR
public static final int EGL_VENDORQueryString targets- See Also:
-
EGL_VERSION
public static final int EGL_VERSIONQueryString targets- See Also:
-
EGL_EXTENSIONS
public static final int EGL_EXTENSIONSQueryString targets- See Also:
-
EGL_CLIENT_APIS
public static final int EGL_CLIENT_APISQueryString targets- See Also:
-
EGL_HEIGHT
public static final int EGL_HEIGHTQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_WIDTH
public static final int EGL_WIDTHQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_LARGEST_PBUFFER
public static final int EGL_LARGEST_PBUFFERQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_TEXTURE_FORMAT
public static final int EGL_TEXTURE_FORMATQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_TEXTURE_TARGET
public static final int EGL_TEXTURE_TARGETQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_MIPMAP_TEXTURE
public static final int EGL_MIPMAP_TEXTUREQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_MIPMAP_LEVEL
public static final int EGL_MIPMAP_LEVELQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_RENDER_BUFFER
public static final int EGL_RENDER_BUFFERQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_VG_COLORSPACE
public static final int EGL_VG_COLORSPACEQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_VG_ALPHA_FORMAT
public static final int EGL_VG_ALPHA_FORMATQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_HORIZONTAL_RESOLUTION
public static final int EGL_HORIZONTAL_RESOLUTIONQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_VERTICAL_RESOLUTION
public static final int EGL_VERTICAL_RESOLUTIONQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_PIXEL_ASPECT_RATIO
public static final int EGL_PIXEL_ASPECT_RATIOQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_SWAP_BEHAVIOR
public static final int EGL_SWAP_BEHAVIORQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_MULTISAMPLE_RESOLVE
public static final int EGL_MULTISAMPLE_RESOLVEQuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
-
EGL_BACK_BUFFER
public static final int EGL_BACK_BUFFEREGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets- See Also:
-
EGL_SINGLE_BUFFER
public static final int EGL_SINGLE_BUFFEREGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets- See Also:
-
EGL_VG_COLORSPACE_sRGB
public static final int EGL_VG_COLORSPACE_sRGBOpenVG color spaces- See Also:
-
EGL_VG_COLORSPACE_LINEAR
public static final int EGL_VG_COLORSPACE_LINEAROpenVG color spaces- See Also:
-
EGL_VG_ALPHA_FORMAT_NONPRE
public static final int EGL_VG_ALPHA_FORMAT_NONPREOpenVG alpha formats- See Also:
-
EGL_VG_ALPHA_FORMAT_PRE
public static final int EGL_VG_ALPHA_FORMAT_PREOpenVG alpha formats- See Also:
-
EGL_DISPLAY_SCALING
public static final int EGL_DISPLAY_SCALINGConstant scale factor by which fractional display resolutions invalid input: '&' aspect ratio are scaled when queried as integer values.- See Also:
-
EGL_UNKNOWN
public static final int EGL_UNKNOWNUnknown display resolution/aspect ratio- See Also:
-
EGL_BUFFER_PRESERVED
public static final int EGL_BUFFER_PRESERVEDBack buffer swap behaviors- See Also:
-
EGL_BUFFER_DESTROYED
public static final int EGL_BUFFER_DESTROYEDBack buffer swap behaviors- See Also:
-
EGL_CONTEXT_CLIENT_TYPE
public static final int EGL_CONTEXT_CLIENT_TYPEQueryContext targets- See Also:
-
EGL_CONTEXT_CLIENT_VERSION
public static final int EGL_CONTEXT_CLIENT_VERSIONCreateContext attributes- See Also:
-
EGL_MULTISAMPLE_RESOLVE_DEFAULT
public static final int EGL_MULTISAMPLE_RESOLVE_DEFAULTMultisample resolution behaviors- See Also:
-
EGL_MULTISAMPLE_RESOLVE_BOX
public static final int EGL_MULTISAMPLE_RESOLVE_BOXMultisample resolution behaviors- See Also:
-
EGL_OPENGL_ES_API
public static final int EGL_OPENGL_ES_APIBindAPI/QueryAPI targets- See Also:
-
EGL_OPENVG_API
public static final int EGL_OPENVG_APIBindAPI/QueryAPI targets- See Also:
-
EGL_OPENGL_API
public static final int EGL_OPENGL_APIBindAPI/QueryAPI targets- See Also:
-
EGL_DRAW
public static final int EGL_DRAWGetCurrentSurface targets- See Also:
-
EGL_READ
public static final int EGL_READGetCurrentSurface targets- See Also:
-
-
Method Details
-
eglGetError
public static int eglGetError() -
eglGetDisplay
Obtains an EGL display from the specified native display and initializes it.- Parameters:
display_id
- the handle to the native display.- Returns:
- the EGL Display
- Throws:
LWJGLException
- if no display is available or an EGL error occurs
-
eglQueryString
Returns a string describing some aspect of the EGL implementation running on the specified display.- Parameters:
dpy
- the EGL display to queryname
- the value to query- Returns:
- the description
-
eglQuerySurface
public static void eglQuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, IntBuffer value) throws LWJGLException Returns the value of the specified EGL surface attribute in the value parameter.- Parameters:
dpy
- the EGL displaysurface
- the EGL surfaceattribute
- the surface attributevalue
- the attribute value will be returned here- Throws:
LWJGLException
- if an EGL error occurs
-
eglBindAPI
public static boolean eglBindAPI(int api) Binds the specified rendering API to the current thread.- Parameters:
api
- the API to bind- Returns:
- true if the bind was successful, false if an EGL error occurs
-
eglQueryAPI
public static int eglQueryAPI()Returns the current rendering API.- Returns:
- the rendering API bound to the current thread
-
eglReleaseCurrent
public static void eglReleaseCurrent(EGLDisplay dpy) throws LWJGLException, PowerManagementEventException Releases the current context without assigning a new one.- Parameters:
dpy
- the EGL display- Throws:
LWJGLException
- if an EGL error occursPowerManagementEventException
- if an EGL power management event occurs- See Also:
-
eglGetCurrentContext
Returns the current EGL context for the current rendering API. If there is no context current, null is returned.- Returns:
- the current context
- Throws:
LWJGLException
- if an EGL error occurs
-
eglIsCurrentContext
Returns true if the specified EGL context is the current context. This method is faster than using#eglGetCurrentContext
and comparing the two EGLContext objects.- Parameters:
context
- the EGL context- Returns:
- true if the EGL context is current
- See Also:
-
eglGetCurrentSurface
Returns the EGL surfaces used for rendering by the current context. If there is no context current, null is returned.- Parameters:
readdraw
- the read or draw surface- Returns:
- the current surface
- Throws:
LWJGLException
- if an EGL error occurs
-
eglGetCurrentDisplay
Returns the EGL display associated with the current context.- Returns:
- the current display
- Throws:
LWJGLException
- if an EGL error occurs
-
eglQueryContext
public static void eglQueryContext(EGLDisplay dpy, EGLContext ctx, int attribute, IntBuffer value) throws LWJGLException Returns the value of the specified EGL context attribute in the value parameter.- Parameters:
dpy
- the EGL displayctx
- the EGL contextattribute
- the context attributevalue
- the attribute value will be returned here- Throws:
LWJGLException
- if an EGL error occurs
-
eglWaitClient
public static boolean eglWaitClient()Prevents native rendering API functions from executing until any outstanding client API rendering affecting the same surface is complete.- Returns:
- true if the wait was successful, false is an EGL error occurs
-
eglWaitGL
public static boolean eglWaitGL()This method does the equivalent of:
EGLenum api = eglQueryAPI(); eglBindAPI(EGL_OPENGL_ES_API); eglWaitClient(); eglBindAPI(api);
- Returns:
- true if the wait was successful, false if an EGL error occurs
-
eglWaitNative
public static boolean eglWaitNative(int engine) Prevents a client API command sequence from executing until any outstanding native rendering affecting the same surface is complete.- Parameters:
engine
- the native rendering engine- Returns:
- true if the wait was successful, false if an EGL error occurs
-