Package org.lwjgl.opengles
Class EGL
- java.lang.Object
-
- org.lwjgl.opengles.EGL
-
public final class EGL extends Object
EGL wrapper class.
-
-
Field Summary
Fields Modifier and Type Field Description static intEGL_ALPHA_MASK_SIZEConfig attributesstatic intEGL_ALPHA_SIZEConfig attributesstatic intEGL_BACK_BUFFEREGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targetsstatic intEGL_BAD_ACCESSErrors / GetError return valuesstatic intEGL_BAD_ALLOCErrors / GetError return valuesstatic intEGL_BAD_ATTRIBUTEErrors / GetError return valuesstatic intEGL_BAD_CONFIGErrors / GetError return valuesstatic intEGL_BAD_CONTEXTErrors / GetError return valuesstatic intEGL_BAD_CURRENT_SURFACEErrors / GetError return valuesstatic intEGL_BAD_DISPLAYErrors / GetError return valuesstatic intEGL_BAD_MATCHErrors / GetError return valuesstatic intEGL_BAD_NATIVE_PIXMAPErrors / GetError return valuesstatic intEGL_BAD_NATIVE_WINDOWErrors / GetError return valuesstatic intEGL_BAD_PARAMETERErrors / GetError return valuesstatic intEGL_BAD_SURFACEErrors / GetError return valuesstatic intEGL_BIND_TO_TEXTURE_RGBConfig attributesstatic intEGL_BIND_TO_TEXTURE_RGBAConfig attributesstatic intEGL_BLUE_SIZEConfig attributesstatic intEGL_BUFFER_DESTROYEDBack buffer swap behaviorsstatic intEGL_BUFFER_PRESERVEDBack buffer swap behaviorsstatic intEGL_BUFFER_SIZEConfig attributesstatic intEGL_CLIENT_APISQueryString targetsstatic intEGL_COLOR_BUFFER_TYPEConfig attributesstatic intEGL_CONFIG_CAVEATConfig attributesstatic intEGL_CONFIG_IDConfig attributesstatic intEGL_CONFORMANTConfig attributesstatic intEGL_CONTEXT_CLIENT_TYPEQueryContext targetsstatic intEGL_CONTEXT_CLIENT_VERSIONCreateContext attributesstatic intEGL_CONTEXT_LOSTErrors / GetError return valuesstatic intEGL_DEFAULT_DISPLAYOut-of-band handle valuesstatic intEGL_DEPTH_SIZEConfig attributesstatic intEGL_DISPLAY_SCALINGConstant scale factor by which fractional display resolutions & aspect ratio are scaled when queried as integer values.static intEGL_DONT_CAREOut-of-band attribute valuestatic intEGL_DRAWGetCurrentSurface targetsstatic intEGL_EXTENSIONSQueryString targetsstatic intEGL_FALSEEGL aliasesstatic intEGL_GREEN_SIZEConfig attributesstatic intEGL_HEIGHTQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_HORIZONTAL_RESOLUTIONQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_LARGEST_PBUFFERQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_LEVELConfig attributesstatic intEGL_LUMINANCE_BUFFERConfig attribute valuesstatic intEGL_LUMINANCE_SIZEConfig attributesstatic intEGL_MATCH_NATIVE_PIXMAPConfig attributesstatic intEGL_MAX_PBUFFER_HEIGHTConfig attributesstatic intEGL_MAX_PBUFFER_PIXELSConfig attributesstatic intEGL_MAX_PBUFFER_WIDTHConfig attributesstatic intEGL_MAX_SWAP_INTERVALConfig attributesstatic intEGL_MIN_SWAP_INTERVALConfig attributesstatic intEGL_MIPMAP_LEVELQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_MIPMAP_TEXTUREQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_MULTISAMPLE_RESOLVEQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_MULTISAMPLE_RESOLVE_BOXMultisample resolution behaviorsstatic intEGL_MULTISAMPLE_RESOLVE_BOX_BITEGL_SURFACE_TYPE mask bitsstatic intEGL_MULTISAMPLE_RESOLVE_DEFAULTMultisample resolution behaviorsstatic intEGL_NATIVE_RENDERABLEConfig attributesstatic intEGL_NATIVE_VISUAL_IDConfig attributesstatic intEGL_NATIVE_VISUAL_TYPEConfig attributesstatic intEGL_NO_CONTEXTOut-of-band handle valuesstatic intEGL_NO_DISPLAYOut-of-band handle valuesstatic intEGL_NO_SURFACEOut-of-band handle valuesstatic intEGL_NO_TEXTUREMore config attribute values, for EGL_TEXTURE_FORMATstatic intEGL_NON_CONFORMANT_CONFIGConfig attribute valuesstatic intEGL_NONEConfig attributesstatic intEGL_NOT_INITIALIZEDErrors / GetError return valuesstatic intEGL_OPENGL_APIBindAPI/QueryAPI targetsstatic intEGL_OPENGL_BITEGL_RENDERABLE_TYPE mask bitsstatic intEGL_OPENGL_ES_APIBindAPI/QueryAPI targetsstatic intEGL_OPENGL_ES_BITEGL_RENDERABLE_TYPE mask bitsstatic intEGL_OPENGL_ES2_BITEGL_RENDERABLE_TYPE mask bitsstatic intEGL_OPENVG_APIBindAPI/QueryAPI targetsstatic intEGL_OPENVG_BITEGL_RENDERABLE_TYPE mask bitsstatic intEGL_PBUFFER_BITEGL_SURFACE_TYPE mask bitsstatic intEGL_PIXEL_ASPECT_RATIOQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_PIXMAP_BITEGL_SURFACE_TYPE mask bitsstatic intEGL_READGetCurrentSurface targetsstatic intEGL_RED_SIZEConfig attributesstatic intEGL_RENDER_BUFFERQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_RENDERABLE_TYPEConfig attributesstatic intEGL_RGB_BUFFERConfig attribute valuesstatic intEGL_SAMPLE_BUFFERSConfig attributesstatic intEGL_SAMPLESConfig attributesstatic intEGL_SINGLE_BUFFEREGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targetsstatic intEGL_SLOW_CONFIGConfig attribute valuesstatic intEGL_STENCIL_SIZEConfig attributesstatic intEGL_SUCCESSErrors / GetError return valuesstatic intEGL_SURFACE_TYPEConfig attributesstatic intEGL_SWAP_BEHAVIORQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_SWAP_BEHAVIOR_PRESERVED_BITEGL_SURFACE_TYPE mask bitsstatic intEGL_TEXTURE_2DMore config attribute values, for EGL_TEXTURE_FORMATstatic intEGL_TEXTURE_FORMATQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_TEXTURE_RGBMore config attribute values, for EGL_TEXTURE_FORMATstatic intEGL_TEXTURE_RGBAMore config attribute values, for EGL_TEXTURE_FORMATstatic intEGL_TEXTURE_TARGETQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_TRANSPARENT_BLUE_VALUEConfig attributesstatic intEGL_TRANSPARENT_GREEN_VALUEConfig attributesstatic intEGL_TRANSPARENT_RED_VALUEConfig attributesstatic intEGL_TRANSPARENT_RGBConfig attribute valuesstatic intEGL_TRANSPARENT_TYPEConfig attributesstatic intEGL_TRUEEGL aliasesstatic intEGL_UNKNOWNUnknown display resolution/aspect ratiostatic intEGL_VENDORQueryString targetsstatic intEGL_VERSIONQueryString targetsstatic intEGL_VERTICAL_RESOLUTIONQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_VG_ALPHA_FORMATQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_VG_ALPHA_FORMAT_NONPREOpenVG alpha formatsstatic intEGL_VG_ALPHA_FORMAT_PREOpenVG alpha formatsstatic intEGL_VG_ALPHA_FORMAT_PRE_BITEGL_SURFACE_TYPE mask bitsstatic intEGL_VG_COLORSPACEQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_VG_COLORSPACE_LINEAROpenVG color spacesstatic intEGL_VG_COLORSPACE_LINEAR_BITEGL_SURFACE_TYPE mask bitsstatic intEGL_VG_COLORSPACE_sRGBOpenVG color spacesstatic intEGL_WIDTHQuerySurface / SurfaceAttrib / CreatePbufferSurface targetsstatic intEGL_WINDOW_BITEGL_SURFACE_TYPE mask bits
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleaneglBindAPI(int api)Binds the specified rendering API to the current thread.static EGLContexteglGetCurrentContext()Returns the current EGL context for the current rendering API.static EGLDisplayeglGetCurrentDisplay()Returns the EGL display associated with the current context.static EGLSurfaceeglGetCurrentSurface(int readdraw)Returns the EGL surfaces used for rendering by the current context.static EGLDisplayeglGetDisplay(long display_id)Obtains an EGL display from the specified native display and initializes it.static integlGetError()static booleaneglIsCurrentContext(EGLContext context)Returns true if the specified EGL context is the current context.static integlQueryAPI()Returns the current rendering API.static voideglQueryContext(EGLDisplay dpy, EGLContext ctx, int attribute, IntBuffer value)Returns the value of the specified EGL context attribute in the value parameter.static StringeglQueryString(EGLDisplay dpy, int name)Returns a string describing some aspect of the EGL implementation running on the specified display.static voideglQuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, IntBuffer value)Returns the value of the specified EGL surface attribute in the value parameter.static voideglReleaseCurrent(EGLDisplay dpy)Releases the current context without assigning a new one.static booleaneglWaitClient()Prevents native rendering API functions from executing until any outstanding client API rendering affecting the same surface is complete.static booleaneglWaitGL()This method does the equivalent of:
EGLenum api = eglQueryAPI(); eglBindAPI(EGL_OPENGL_ES_API); eglWaitClient(); eglBindAPI(api);static booleaneglWaitNative(int engine)Prevents a client API command sequence from executing until any outstanding native rendering affecting the same surface is complete.
-
-
-
Field Detail
-
EGL_FALSE
public static final int EGL_FALSE
EGL aliases- See Also:
- Constant Field Values
-
EGL_TRUE
public static final int EGL_TRUE
EGL aliases- See Also:
- Constant Field Values
-
EGL_DEFAULT_DISPLAY
public static final int EGL_DEFAULT_DISPLAY
Out-of-band handle values- See Also:
- Constant Field Values
-
EGL_NO_CONTEXT
public static final int EGL_NO_CONTEXT
Out-of-band handle values- See Also:
- Constant Field Values
-
EGL_NO_DISPLAY
public static final int EGL_NO_DISPLAY
Out-of-band handle values- See Also:
- Constant Field Values
-
EGL_NO_SURFACE
public static final int EGL_NO_SURFACE
Out-of-band handle values- See Also:
- Constant Field Values
-
EGL_DONT_CARE
public static final int EGL_DONT_CARE
Out-of-band attribute value- See Also:
- Constant Field Values
-
EGL_SUCCESS
public static final int EGL_SUCCESS
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_NOT_INITIALIZED
public static final int EGL_NOT_INITIALIZED
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_ACCESS
public static final int EGL_BAD_ACCESS
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_ALLOC
public static final int EGL_BAD_ALLOC
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_ATTRIBUTE
public static final int EGL_BAD_ATTRIBUTE
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_CONFIG
public static final int EGL_BAD_CONFIG
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_CONTEXT
public static final int EGL_BAD_CONTEXT
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_CURRENT_SURFACE
public static final int EGL_BAD_CURRENT_SURFACE
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_DISPLAY
public static final int EGL_BAD_DISPLAY
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_MATCH
public static final int EGL_BAD_MATCH
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_NATIVE_PIXMAP
public static final int EGL_BAD_NATIVE_PIXMAP
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_NATIVE_WINDOW
public static final int EGL_BAD_NATIVE_WINDOW
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_PARAMETER
public static final int EGL_BAD_PARAMETER
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BAD_SURFACE
public static final int EGL_BAD_SURFACE
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_CONTEXT_LOST
public static final int EGL_CONTEXT_LOST
Errors / GetError return values- See Also:
- Constant Field Values
-
EGL_BUFFER_SIZE
public static final int EGL_BUFFER_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_ALPHA_SIZE
public static final int EGL_ALPHA_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_BLUE_SIZE
public static final int EGL_BLUE_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_GREEN_SIZE
public static final int EGL_GREEN_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_RED_SIZE
public static final int EGL_RED_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_DEPTH_SIZE
public static final int EGL_DEPTH_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_STENCIL_SIZE
public static final int EGL_STENCIL_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_CONFIG_CAVEAT
public static final int EGL_CONFIG_CAVEAT
Config attributes- See Also:
- Constant Field Values
-
EGL_CONFIG_ID
public static final int EGL_CONFIG_ID
Config attributes- See Also:
- Constant Field Values
-
EGL_LEVEL
public static final int EGL_LEVEL
Config attributes- See Also:
- Constant Field Values
-
EGL_MAX_PBUFFER_HEIGHT
public static final int EGL_MAX_PBUFFER_HEIGHT
Config attributes- See Also:
- Constant Field Values
-
EGL_MAX_PBUFFER_PIXELS
public static final int EGL_MAX_PBUFFER_PIXELS
Config attributes- See Also:
- Constant Field Values
-
EGL_MAX_PBUFFER_WIDTH
public static final int EGL_MAX_PBUFFER_WIDTH
Config attributes- See Also:
- Constant Field Values
-
EGL_NATIVE_RENDERABLE
public static final int EGL_NATIVE_RENDERABLE
Config attributes- See Also:
- Constant Field Values
-
EGL_NATIVE_VISUAL_ID
public static final int EGL_NATIVE_VISUAL_ID
Config attributes- See Also:
- Constant Field Values
-
EGL_NATIVE_VISUAL_TYPE
public static final int EGL_NATIVE_VISUAL_TYPE
Config attributes- See Also:
- Constant Field Values
-
EGL_SAMPLES
public static final int EGL_SAMPLES
Config attributes- See Also:
- Constant Field Values
-
EGL_SAMPLE_BUFFERS
public static final int EGL_SAMPLE_BUFFERS
Config attributes- See Also:
- Constant Field Values
-
EGL_SURFACE_TYPE
public static final int EGL_SURFACE_TYPE
Config attributes- See Also:
- Constant Field Values
-
EGL_TRANSPARENT_TYPE
public static final int EGL_TRANSPARENT_TYPE
Config attributes- See Also:
- Constant Field Values
-
EGL_TRANSPARENT_BLUE_VALUE
public static final int EGL_TRANSPARENT_BLUE_VALUE
Config attributes- See Also:
- Constant Field Values
-
EGL_TRANSPARENT_GREEN_VALUE
public static final int EGL_TRANSPARENT_GREEN_VALUE
Config attributes- See Also:
- Constant Field Values
-
EGL_TRANSPARENT_RED_VALUE
public static final int EGL_TRANSPARENT_RED_VALUE
Config attributes- See Also:
- Constant Field Values
-
EGL_NONE
public static final int EGL_NONE
Config attributes- See Also:
- Constant Field Values
-
EGL_BIND_TO_TEXTURE_RGB
public static final int EGL_BIND_TO_TEXTURE_RGB
Config attributes- See Also:
- Constant Field Values
-
EGL_BIND_TO_TEXTURE_RGBA
public static final int EGL_BIND_TO_TEXTURE_RGBA
Config attributes- See Also:
- Constant Field Values
-
EGL_MIN_SWAP_INTERVAL
public static final int EGL_MIN_SWAP_INTERVAL
Config attributes- See Also:
- Constant Field Values
-
EGL_MAX_SWAP_INTERVAL
public static final int EGL_MAX_SWAP_INTERVAL
Config attributes- See Also:
- Constant Field Values
-
EGL_LUMINANCE_SIZE
public static final int EGL_LUMINANCE_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_ALPHA_MASK_SIZE
public static final int EGL_ALPHA_MASK_SIZE
Config attributes- See Also:
- Constant Field Values
-
EGL_COLOR_BUFFER_TYPE
public static final int EGL_COLOR_BUFFER_TYPE
Config attributes- See Also:
- Constant Field Values
-
EGL_RENDERABLE_TYPE
public static final int EGL_RENDERABLE_TYPE
Config attributes- See Also:
- Constant Field Values
-
EGL_MATCH_NATIVE_PIXMAP
public static final int EGL_MATCH_NATIVE_PIXMAP
Config attributes- See Also:
- Constant Field Values
-
EGL_CONFORMANT
public static final int EGL_CONFORMANT
Config attributes- See Also:
- Constant Field Values
-
EGL_SLOW_CONFIG
public static final int EGL_SLOW_CONFIG
Config attribute values- See Also:
- Constant Field Values
-
EGL_NON_CONFORMANT_CONFIG
public static final int EGL_NON_CONFORMANT_CONFIG
Config attribute values- See Also:
- Constant Field Values
-
EGL_TRANSPARENT_RGB
public static final int EGL_TRANSPARENT_RGB
Config attribute values- See Also:
- Constant Field Values
-
EGL_RGB_BUFFER
public static final int EGL_RGB_BUFFER
Config attribute values- See Also:
- Constant Field Values
-
EGL_LUMINANCE_BUFFER
public static final int EGL_LUMINANCE_BUFFER
Config attribute values- See Also:
- Constant Field Values
-
EGL_NO_TEXTURE
public static final int EGL_NO_TEXTURE
More config attribute values, for EGL_TEXTURE_FORMAT- See Also:
- Constant Field Values
-
EGL_TEXTURE_RGB
public static final int EGL_TEXTURE_RGB
More config attribute values, for EGL_TEXTURE_FORMAT- See Also:
- Constant Field Values
-
EGL_TEXTURE_RGBA
public static final int EGL_TEXTURE_RGBA
More config attribute values, for EGL_TEXTURE_FORMAT- See Also:
- Constant Field Values
-
EGL_TEXTURE_2D
public static final int EGL_TEXTURE_2D
More config attribute values, for EGL_TEXTURE_FORMAT- See Also:
- Constant Field Values
-
EGL_PBUFFER_BIT
public static final int EGL_PBUFFER_BIT
EGL_SURFACE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_PIXMAP_BIT
public static final int EGL_PIXMAP_BIT
EGL_SURFACE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_WINDOW_BIT
public static final int EGL_WINDOW_BIT
EGL_SURFACE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_VG_COLORSPACE_LINEAR_BIT
public static final int EGL_VG_COLORSPACE_LINEAR_BIT
EGL_SURFACE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_VG_ALPHA_FORMAT_PRE_BIT
public static final int EGL_VG_ALPHA_FORMAT_PRE_BIT
EGL_SURFACE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_MULTISAMPLE_RESOLVE_BOX_BIT
public static final int EGL_MULTISAMPLE_RESOLVE_BOX_BIT
EGL_SURFACE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_SWAP_BEHAVIOR_PRESERVED_BIT
public static final int EGL_SWAP_BEHAVIOR_PRESERVED_BIT
EGL_SURFACE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_OPENGL_ES_BIT
public static final int EGL_OPENGL_ES_BIT
EGL_RENDERABLE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_OPENVG_BIT
public static final int EGL_OPENVG_BIT
EGL_RENDERABLE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_OPENGL_ES2_BIT
public static final int EGL_OPENGL_ES2_BIT
EGL_RENDERABLE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_OPENGL_BIT
public static final int EGL_OPENGL_BIT
EGL_RENDERABLE_TYPE mask bits- See Also:
- Constant Field Values
-
EGL_VENDOR
public static final int EGL_VENDOR
QueryString targets- See Also:
- Constant Field Values
-
EGL_VERSION
public static final int EGL_VERSION
QueryString targets- See Also:
- Constant Field Values
-
EGL_EXTENSIONS
public static final int EGL_EXTENSIONS
QueryString targets- See Also:
- Constant Field Values
-
EGL_CLIENT_APIS
public static final int EGL_CLIENT_APIS
QueryString targets- See Also:
- Constant Field Values
-
EGL_HEIGHT
public static final int EGL_HEIGHT
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_WIDTH
public static final int EGL_WIDTH
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_LARGEST_PBUFFER
public static final int EGL_LARGEST_PBUFFER
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_TEXTURE_FORMAT
public static final int EGL_TEXTURE_FORMAT
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_TEXTURE_TARGET
public static final int EGL_TEXTURE_TARGET
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_MIPMAP_TEXTURE
public static final int EGL_MIPMAP_TEXTURE
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_MIPMAP_LEVEL
public static final int EGL_MIPMAP_LEVEL
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_RENDER_BUFFER
public static final int EGL_RENDER_BUFFER
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_VG_COLORSPACE
public static final int EGL_VG_COLORSPACE
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_VG_ALPHA_FORMAT
public static final int EGL_VG_ALPHA_FORMAT
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_HORIZONTAL_RESOLUTION
public static final int EGL_HORIZONTAL_RESOLUTION
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_VERTICAL_RESOLUTION
public static final int EGL_VERTICAL_RESOLUTION
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_PIXEL_ASPECT_RATIO
public static final int EGL_PIXEL_ASPECT_RATIO
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_SWAP_BEHAVIOR
public static final int EGL_SWAP_BEHAVIOR
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_MULTISAMPLE_RESOLVE
public static final int EGL_MULTISAMPLE_RESOLVE
QuerySurface / SurfaceAttrib / CreatePbufferSurface targets- See Also:
- Constant Field Values
-
EGL_BACK_BUFFER
public static final int EGL_BACK_BUFFER
EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets- See Also:
- Constant Field Values
-
EGL_SINGLE_BUFFER
public static final int EGL_SINGLE_BUFFER
EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets- See Also:
- Constant Field Values
-
EGL_VG_COLORSPACE_sRGB
public static final int EGL_VG_COLORSPACE_sRGB
OpenVG color spaces- See Also:
- Constant Field Values
-
EGL_VG_COLORSPACE_LINEAR
public static final int EGL_VG_COLORSPACE_LINEAR
OpenVG color spaces- See Also:
- Constant Field Values
-
EGL_VG_ALPHA_FORMAT_NONPRE
public static final int EGL_VG_ALPHA_FORMAT_NONPRE
OpenVG alpha formats- See Also:
- Constant Field Values
-
EGL_VG_ALPHA_FORMAT_PRE
public static final int EGL_VG_ALPHA_FORMAT_PRE
OpenVG alpha formats- See Also:
- Constant Field Values
-
EGL_DISPLAY_SCALING
public static final int EGL_DISPLAY_SCALING
Constant scale factor by which fractional display resolutions & aspect ratio are scaled when queried as integer values.- See Also:
- Constant Field Values
-
EGL_UNKNOWN
public static final int EGL_UNKNOWN
Unknown display resolution/aspect ratio- See Also:
- Constant Field Values
-
EGL_BUFFER_PRESERVED
public static final int EGL_BUFFER_PRESERVED
Back buffer swap behaviors- See Also:
- Constant Field Values
-
EGL_BUFFER_DESTROYED
public static final int EGL_BUFFER_DESTROYED
Back buffer swap behaviors- See Also:
- Constant Field Values
-
EGL_CONTEXT_CLIENT_TYPE
public static final int EGL_CONTEXT_CLIENT_TYPE
QueryContext targets- See Also:
- Constant Field Values
-
EGL_CONTEXT_CLIENT_VERSION
public static final int EGL_CONTEXT_CLIENT_VERSION
CreateContext attributes- See Also:
- Constant Field Values
-
EGL_MULTISAMPLE_RESOLVE_DEFAULT
public static final int EGL_MULTISAMPLE_RESOLVE_DEFAULT
Multisample resolution behaviors- See Also:
- Constant Field Values
-
EGL_MULTISAMPLE_RESOLVE_BOX
public static final int EGL_MULTISAMPLE_RESOLVE_BOX
Multisample resolution behaviors- See Also:
- Constant Field Values
-
EGL_OPENGL_ES_API
public static final int EGL_OPENGL_ES_API
BindAPI/QueryAPI targets- See Also:
- Constant Field Values
-
EGL_OPENVG_API
public static final int EGL_OPENVG_API
BindAPI/QueryAPI targets- See Also:
- Constant Field Values
-
EGL_OPENGL_API
public static final int EGL_OPENGL_API
BindAPI/QueryAPI targets- See Also:
- Constant Field Values
-
EGL_DRAW
public static final int EGL_DRAW
GetCurrentSurface targets- See Also:
- Constant Field Values
-
EGL_READ
public static final int EGL_READ
GetCurrentSurface targets- See Also:
- Constant Field Values
-
-
Method Detail
-
eglGetError
public static int eglGetError()
-
eglGetDisplay
public static EGLDisplay eglGetDisplay(long display_id) throws LWJGLException
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
public static String eglQueryString(EGLDisplay dpy, int name)
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:
eglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface, EGLContext)
-
eglGetCurrentContext
public static EGLContext eglGetCurrentContext() throws LWJGLException
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
public static boolean eglIsCurrentContext(EGLContext context)
Returns true if the specified EGL context is the current context. This method is faster than using#eglGetCurrentContextand comparing the two EGLContext objects.- Parameters:
context- the EGL context- Returns:
- true if the EGL context is current
- See Also:
eglGetCurrentContext()
-
eglGetCurrentSurface
public static EGLSurface eglGetCurrentSurface(int readdraw) throws LWJGLException
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
public static EGLDisplay eglGetCurrentDisplay() throws LWJGLException
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
-
-