1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
14 # define GLAPIENTRY APIENTRY
22 typedef uint8_t realGLboolean
;
24 #if !defined(__gltypes_h_) && !defined(__gl_h_)
28 typedef uint32_t GLenum
;
29 typedef uint32_t GLbitfield
;
30 typedef uint32_t GLuint
;
31 typedef int32_t GLint
;
32 typedef int32_t GLsizei
;
33 typedef int8_t GLbyte
;
34 typedef int16_t GLshort
;
35 typedef uint8_t GLubyte
;
36 typedef uint16_t GLushort
;
37 typedef float GLfloat
;
38 typedef float GLclampf
;
39 # ifndef GLdouble_defined
40 typedef double GLdouble
;
42 typedef double GLclampd
;
48 typedef signed long long int GLintptr
;
49 typedef signed long long int GLsizeiptr
;
51 typedef signed long int GLintptr
;
52 typedef signed long int GLsizeiptr
;
56 #endif /* #if !defined(__gltypes_h_) && !defined(__gl_h_) */
61 typedef struct __GLsync
* GLsync
;
62 typedef int64_t GLint64
;
63 typedef uint64_t GLuint64
;
65 // OES_EGL_image (GLES)
66 typedef void* GLeglImage
;
69 typedef void(GLAPIENTRY
* GLDEBUGPROC
)(GLenum source
, GLenum type
, GLuint id
,
70 GLenum severity
, GLsizei length
,
71 const GLchar
* message
,
72 const GLvoid
* userParam
);
75 typedef void* EGLImage
;
77 typedef unsigned int EGLBoolean
;
78 typedef unsigned int EGLenum
;
79 typedef intptr_t EGLAttrib
;
80 typedef void* EGLConfig
;
81 typedef void* EGLContext
;
82 typedef void* EGLDisplay
;
83 typedef void* EGLDeviceEXT
;
84 typedef void* EGLSurface
;
85 typedef void* EGLClientBuffer
;
86 typedef void* EGLCastToRelevantPtr
;
87 typedef void* EGLImage
;
88 typedef void* EGLSync
;
89 typedef void* EGLStreamKHR
;
90 typedef uint64_t EGLTime
;
92 #define EGL_NO_CONTEXT ((EGLContext)0)
93 #define EGL_NO_DISPLAY ((EGLDisplay)0)
94 #define EGL_NO_SURFACE ((EGLSurface)0)
95 #define EGL_NO_CONFIG ((EGLConfig) nullptr)
96 #define EGL_NO_SYNC ((EGLSync)0)
97 #define EGL_NO_IMAGE ((EGLImage)0)
100 # ifndef WIN32_LEAN_AND_MEAN
101 # define WIN32_LEAN_AND_MEAN 1
106 typedef HDC EGLNativeDisplayType
;
107 typedef HBITMAP EGLNativePixmapType
;
108 typedef HWND EGLNativeWindowType
;
110 typedef void* EGLNativeDisplayType
;
111 typedef void* EGLNativePixmapType
;
112 typedef void* EGLNativeWindowType
;