Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/android/jni/miniegl.h
2 views
1
#ifndef _MINIEGL_
2
#define _MINIEGL_
3
4
typedef int EGLint;
5
typedef unsigned int EGLBoolean;
6
typedef unsigned int EGLenum;
7
typedef void *EGLConfig;
8
typedef void *EGLContext;
9
typedef void *EGLDisplay;
10
typedef void *EGLSurface;
11
typedef void *EGLClientBuffer;
12
13
/* EGL aliases */
14
#define EGL_FALSE 0
15
#define EGL_TRUE 1
16
17
/* Out-of-band handle values */
18
#define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0)
19
#define EGL_NO_CONTEXT ((EGLContext)0)
20
#define EGL_NO_DISPLAY ((EGLDisplay)0)
21
#define EGL_NO_SURFACE ((EGLSurface)0)
22
23
/* GetCurrentSurface targets */
24
#define EGL_DRAW 0x3059
25
#define EGL_READ 0x305A
26
27
/* QuerySurface / SurfaceAttrib / CreatePbufferSurface targets */
28
#define EGL_HEIGHT 0x3056
29
#define EGL_WIDTH 0x3057
30
31
/* QueryString targets */
32
#define EGL_VENDOR 0x3053
33
#define EGL_VERSION 0x3054
34
#define EGL_EXTENSIONS 0x3055
35
#define EGL_CLIENT_APIS 0x308D
36
37
EGLContext (*eglGetCurrentContext)(void);
38
EGLSurface (*eglGetCurrentSurface)(EGLint readdraw);
39
EGLDisplay (*eglGetCurrentDisplay)(void);
40
EGLBoolean (*eglQuerySurface)(EGLDisplay dpy, EGLSurface surface,EGLint attribute, EGLint *value);
41
EGLBoolean (*eglSwapInterval)(EGLDisplay dpy, EGLint interval);
42
EGLBoolean (*eglMakeCurrent)(EGLDisplay dpy, EGLSurface draw,EGLSurface read, EGLContext ctx);
43
EGLBoolean (*eglSwapBuffers)(EGLDisplay dpy, EGLSurface surface);
44
const char * (*eglQueryString)(EGLDisplay dpy, EGLint name);
45
EGLint (*eglGetError)(void);
46
47
48
#endif // _MINIEGL_
49