webOS Userland
Native system APIs for webOS
lgnc_egl.h
1 #pragma once
2 
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #include <EGL/egl.h>
8 
9 EGLDisplay LGNC_eglGetDisplay();
10 EGLBoolean LGNC_eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor);
11 EGLBoolean LGNC_eglTerminate(EGLDisplay dpy);
12 
13 EGLBoolean LGNC_eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
14 EGLBoolean LGNC_eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
15 EGLBoolean LGNC_eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
16 
17 EGLSurface LGNC_eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
18 EGLBoolean LGNC_eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
19 
20 /* EGL 1.1 swap control API */
21 EGLBoolean LGNC_eglSwapInterval(EGLDisplay dpy, EGLint interval);
22 
23 EGLContext LGNC_eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_list, const EGLint *attrib_list);
24 EGLBoolean LGNC_eglDestroyContext(EGLDisplay dpy, EGLContext ctx);
25 EGLBoolean LGNC_eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
26 
27 EGLBoolean LGNC_eglSwapBuffers(EGLDisplay dpy, EGLSurface draw);
28 
29 #ifdef __cplusplus
30 }
31 #endif