EGLAPI EGLint EGLAPIENTRY | eglGetError | ( | void | ) |
Get the error message for the previous call to EGL.
This function returns only the error code of the previous call from the same thread to EGL and resets the error state for the current thread to EGL_SUCCESS.
EGLAPI EGLDisplay EGLAPIENTRY | eglGetDisplay | ( | EGLNativeDisplayType | display_id | ) |
Get a display handle.
Parameters | |
---|---|
display_id | Display ID. |
EGLAPI EGLBoolean EGLAPIENTRY | eglInitialize | ( | EGLDisplay | dpy, |
EGLint * | major, | |||
EGLint * | minor | |||
) |
Initialize EGL.
Parameters | |
---|---|
dpy | Display handle. |
major | Pointer to major version return value (may be NULL). |
minor | Pointer to minor version return value (may be NULL). |
EGLAPI EGLBoolean EGLAPIENTRY | eglTerminate | ( | EGLDisplay | dpy | ) |
Terminate EGL.
Parameters | |
---|---|
dpy | Display handle. |
EGLAPI const char *EGLAPIENTRY | eglQueryString | ( | EGLDisplay | dpy, |
EGLint | name | |||
) |
Get a string.
Parameters | |
---|---|
dpy | Display handle. |
name | Name of string. |
EGLAPI EGLBoolean EGLAPIENTRY | eglGetConfigs | ( | EGLDisplay | dpy, |
EGLConfig * | configs, | |||
EGLint | config_size, | |||
EGLint * | num_config | |||
) |
Get an array of config IDs.
Parameters | |
---|---|
dpy | Display handle. |
configs | Pointer to returned config IDs (may be NULL). |
config_size | Maximum number of config IDs to return. |
num_config | Pointer to number of valid config IDs in 'configs'. |
EGLAPI EGLBoolean EGLAPIENTRY | eglChooseConfig | ( | EGLDisplay | dpy, |
const EGLint * | attrib_list, | |||
EGLConfig * | configs, | |||
EGLint | config_size, | |||
EGLint * | num_config | |||
) |
Choose an array of config IDs.
Parameters | |
---|---|
dpy | Display handle. |
attrib_list | Attribute list. |
configs | Array of returned config IDs. |
config_size | Maximum number of config IDs to return. |
num_config | Pointer to number of valid config IDs in 'configs'. |
EGLAPI EGLBoolean EGLAPIENTRY | eglGetConfigAttrib | ( | EGLDisplay | dpy, |
EGLConfig | config, | |||
EGLint | attribute, | |||
EGLint * | value | |||
) |
Gets a configuration attribute.
Parameters | |
---|---|
dpy | Display handle. |
config | Config to use. |
attribute | Attribute to query. |
value | Pointer to returned value (may be NULL). |
EGLAPI EGLSurface EGLAPIENTRY | eglCreateWindowSurface | ( | EGLDisplay | dpy, |
EGLConfig | config, | |||
EGLNativeWindowType | win, | |||
const EGLint * | attrib_list | |||
) |
Create a window surface.
Todo[sampo 26/May/05] attribList can contain one value: EGL_RENDER_BUFFER, which can be either EGL_SINGLE_BUFFER or EGL_BACK_BUFFER defaulting to the latter. OpenGL ES renders always in the back buffer whereas OpenVG must be able to do both
Parameters | |
---|---|
dpy | Display handle. |
config | Configuration to use. |
win | Native window type. |
attrib_list | Pointer to attribute list. |
EGLAPI EGLSurface EGLAPIENTRY | eglCreatePbufferSurface | ( | EGLDisplay | dpy, |
EGLConfig | config, | |||
const EGLint * | attrib_list | |||
) |
Creates a PBuffer surface.
Parameters | |
---|---|
dpy | Display handle. |
config | config to use. |
attrib_list | List of attributes. (accepts none) |
EGLAPI EGLSurface EGLAPIENTRY | eglCreatePixmapSurface | ( | EGLDisplay | dpy, |
EGLConfig | config, | |||
EGLNativePixmapType | pixmap, | |||
const EGLint * | attrib_list | |||
) |
Creates a pixmap surface.
Parameters | |
---|---|
dpy | Display handle. |
config | Config handle. |
pixmap | Native pixmap surface. |
attrib_list | List of attributes. |
EGLAPI EGLBoolean EGLAPIENTRY | eglDestroySurface | ( | EGLDisplay | dpy, |
EGLSurface | surface | |||
) |
Destroy given surface.
Parameters | |
---|---|
dpy | Display handle. |
surface | Surface handle. |
EGLAPI EGLBoolean EGLAPIENTRY | eglQuerySurface | ( | EGLDisplay | dpy, |
EGLSurface | surface, | |||
EGLint | attribute, | |||
EGLint * | value | |||
) |
Query a surface attribute.
Parameters | |
---|---|
dpy | Display handle. |
surface | Surface handle. |
attribute | Attribute to query. |
value | Pointer to returned value (may be NULL). |
EGLAPI EGLBoolean EGLAPIENTRY | eglBindAPI | ( | EGLenum | api | ) |
Bind a client API.
Parameters | |
---|---|
api | Either EGL_OPENGL_ES_API or EGL_OPENVG_API. |
EGLAPI EGLenum EGLAPIENTRY | eglQueryAPI | ( | void | ) |
Queries the bound client API.
EGLAPI EGLBoolean EGLAPIENTRY | eglWaitClient | ( | void | ) |
Wait a Client API renderer.
Todo[sampo 23/May/05] is there enough error checking?
EGLAPI EGLBoolean EGLAPIENTRY | eglReleaseThread | ( | void | ) |
Release Thread specific state.
EGLAPI EGLSurface EGLAPIENTRY | eglCreatePbufferFromClientBuffer | ( | EGLDisplay | dpy, |
EGLenum | buftype, | |||
EGLClientBuffer | buffer, | |||
EGLConfig | config, | |||
const EGLint * | attrib_list | |||
) |
Creates a pbuffer from a given client buffer.
Parameters | |
---|---|
dpy | Display handle. |
buftype | The type of the client buffer. Only VGImage is supported currently |
buffer | The client buffer |
config | Config handle |
attrib_list | list of attributes |
EGLAPI EGLBoolean EGLAPIENTRY | eglSurfaceAttrib | ( | EGLDisplay | dpy, |
EGLSurface | surface, | |||
EGLint | attribute, | |||
EGLint | value | |||
) |
Sets an attribute of a surface.
Parameters | |
---|---|
dpy | Display handle. |
surface | Surface handle. |
attribute | The attribute to be set. |
value | The value to set the attribute to. |
EGLAPI EGLBoolean EGLAPIENTRY | eglBindTexImage | ( | EGLDisplay | dpy, |
EGLSurface | surface, | |||
EGLint | buffer | |||
) |
Binds an EGL pixel buffer surface as an Open GLES texture.
Todo[sampo 25/May/05] Finish the comment box. Jaska?
Parameters | |
---|---|
dpy | Display handle. |
surface | Surface handle. |
EGLAPI EGLBoolean EGLAPIENTRY | eglReleaseTexImage | ( | EGLDisplay | dpy, |
EGLSurface | surface, | |||
EGLint | buffer | |||
) |
Release a pixel buffer from an OpenGLES texture.
Todo[sampo 25/May/05] Finish the comment box. Jaska?
Parameters | |
---|---|
dpy | Display handle. |
surface | Surface handle. |
EGLAPI EGLBoolean EGLAPIENTRY | eglSwapInterval | ( | EGLDisplay | dpy, |
EGLint | interval | |||
) |
Specify the minimum number of video frame periods per buffer swap.
This is a no-op, but a legal one, since we have defined the implementation specific boundaries (EGL_MIN/MAX_SWAP_INTERVAL) both to be 1.
Parameters | |
---|---|
dpy | Display handle. |
interval | Minimum number of video frames |
EGLAPI EGLContext EGLAPIENTRY | eglCreateContext | ( | EGLDisplay | dpy, |
EGLConfig | config, | |||
EGLContext | share_context, | |||
const EGLint * | attrib_list | |||
) |
Create a context.
Parameters | |
---|---|
dpy | Display handle. |
config | Configuration ID. |
share_context | Context to share texture objects with. (currently unsupported) |
attrib_list | List of attributes. |
EGLAPI EGLBoolean EGLAPIENTRY | eglDestroyContext | ( | EGLDisplay | dpy, |
EGLContext | ctx | |||
) |
Destroy context.
Parameters | |
---|---|
dpy | Display handle. |
ctx | Context handle. |
EGLAPI EGLBoolean EGLAPIENTRY | eglMakeCurrent | ( | EGLDisplay | dpy, |
EGLSurface | draw, | |||
EGLSurface | read, | |||
EGLContext | ctx | |||
) |
Set the current context and read/draw surfaces.
Parameters | |
---|---|
dpy | Display handle. |
draw | Draw surface handle. |
read | Read surface handle. |
ctx | Context handle. |
EGLAPI EGLContext EGLAPIENTRY | eglGetCurrentContext | ( | void | ) |
Get current render context.
EGLAPI EGLSurface EGLAPIENTRY | eglGetCurrentSurface | ( | EGLint | readdraw | ) |
Get a render surface.
Parameters | |
---|---|
readdraw | which one of the read or draw surfaces to query |
EGLAPI EGLDisplay EGLAPIENTRY | eglGetCurrentDisplay | ( | void | ) |
Get the currently active display.
Todo[teemu 15/Sep/05] Set current display on per thread basis
EGLAPI EGLBoolean EGLAPIENTRY | eglQueryContext | ( | EGLDisplay | dpy, |
EGLContext | ctx, | |||
EGLint | attribute, | |||
EGLint * | value | |||
) |
Query context parameter.
Parameters | |
---|---|
dpy | Display handle. |
ctx | Context handle. |
attribute | Attribute to query (must be EGL_CONFIG_ID for EGL 1.0-1,1 and additionally EGL_CONTEXT_CLIENT_TYPE for EGL 1.2 and EGL_CONTEXT_CLIENT_VERSION). |
value | Pointer to returned value. |
EGLAPI EGLBoolean EGLAPIENTRY | eglWaitGL | ( | void | ) |
Wait for the GL renderer.
Todo[jussi 25/May/05] add a call to glFinish?
EGLAPI EGLBoolean EGLAPIENTRY | eglWaitNative | ( | EGLint | engine | ) |
Wait a native engine.
Todo[jussi 25/May/05] implement this one?
Parameters | |
---|---|
engine | Engine identifier. |
EGLAPI EGLBoolean EGLAPIENTRY | eglSwapBuffers | ( | EGLDisplay | dpy, |
EGLSurface | surface | |||
) |
Swap back buffer to front.
Todo[petri 15/Oct/03] Super-sampling? [jussi 25/May/05] OpenVG allows dithering of higher bit depth surface to lower bit depth display. Makes sense when rendering to 1-bit displays. Add support for this one if we ever encounter them anymore.
Parameters | |
---|---|
dpy | Display handle. |
surface | Surface handle. |
EGLAPI EGLBoolean EGLAPIENTRY | eglCopyBuffers | ( | EGLDisplay | dpy, |
EGLSurface | surface, | |||
EGLNativePixmapType | target | |||
) |
Copy draw color buffer into native pixmap.
Parameters | |
---|---|
dpy | Display handle. |
surface | Surface handle to copy. |
target | Destination pixmap for copy. |