GLUS
Functions
glus_egl_es.c File Reference
#include "GL/glus.h"

Functions

EGLBoolean GLUSAPIENTRY glusEGLCreateContext (EGLNativeDisplayType eglNativeDisplayType, EGLDisplay *eglDisplay, EGLConfig *eglConfig, EGLContext *eglContext, const EGLint configAttribList[], const EGLint contextAttribList[])
 Creates the context and all needed EGL elements. More...
 
EGLBoolean GLUSAPIENTRY glusEGLCreateWindowSurfaceMakeCurrent (EGLNativeWindowType eglNativeWindowType, EGLDisplay *eglDisplay, EGLConfig *eglConfig, EGLContext *eglContext, EGLSurface *eglSurface)
 Creates a window surface and sets it as current. More...
 
GLUSvoid GLUSAPIENTRY glusEGLTerminate (EGLDisplay *eglDisplay, EGLContext *eglContext, EGLSurface *eglSurface)
 Terminates EGL an frees all resources. More...
 

Function Documentation

EGLBoolean GLUSAPIENTRY glusEGLCreateContext ( EGLNativeDisplayType  eglNativeDisplayType,
EGLDisplay *  eglDisplay,
EGLConfig *  eglConfig,
EGLContext *  eglContext,
const EGLint  configAttribList[],
const EGLint  contextAttribList[] 
)

Creates the context and all needed EGL elements.

Parameters
eglNativeDisplayTypeNative display type.
eglDisplayEGL display.
eglConfigEGL configuration.
eglContextEGL context.
configAttribListEGL configuration attribute list.
contextAttribListEGL context attribute list.
Returns
EGL_TRUE, when creation of context succeeded.
EGLBoolean GLUSAPIENTRY glusEGLCreateWindowSurfaceMakeCurrent ( EGLNativeWindowType  eglNativeWindowType,
EGLDisplay *  eglDisplay,
EGLConfig *  eglConfig,
EGLContext *  eglContext,
EGLSurface *  eglSurface 
)

Creates a window surface and sets it as current.

Parameters
eglNativeWindowTypeNative window type.
eglDisplayEGL display.
eglConfigEGL configuration.
eglContextEGL context.
eglSurfaceEGL surface.
Returns
EGL_TRUE, when creation of window and setting of context succeeded.
GLUSvoid GLUSAPIENTRY glusEGLTerminate ( EGLDisplay *  eglDisplay,
EGLContext *  eglContext,
EGLSurface *  eglSurface 
)

Terminates EGL an frees all resources.

Parameters
eglDisplayEGL display.
eglContextEGL context.
eglSurfaceEGL surface.