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_) */
59 # ifndef GLdouble_defined
60 typedef double GLdouble
;
62 typedef double GLclampd
;
68 typedef struct __GLsync
* GLsync
;
69 typedef int64_t GLint64
;
70 typedef uint64_t GLuint64
;
72 // OES_EGL_image (GLES)
73 typedef void* GLeglImage
;
76 typedef void(GLAPIENTRY
* GLDEBUGPROC
)(GLenum source
, GLenum type
, GLuint id
,
77 GLenum severity
, GLsizei length
,
78 const GLchar
* message
,
79 const GLvoid
* userParam
);
82 typedef void* EGLImage
;
84 typedef unsigned int EGLBoolean
;
85 typedef unsigned int EGLenum
;
86 typedef intptr_t EGLAttrib
;
87 typedef void* EGLConfig
;
88 typedef void* EGLContext
;
89 typedef void* EGLDisplay
;
90 typedef void* EGLDeviceEXT
;
91 typedef void* EGLSurface
;
92 typedef void* EGLClientBuffer
;
93 typedef void* EGLCastToRelevantPtr
;
94 typedef void* EGLImage
;
95 typedef void* EGLSync
;
96 typedef void* EGLStreamKHR
;
97 typedef uint64_t EGLTime
;
99 #define EGL_NO_CONTEXT ((EGLContext)0)
100 #define EGL_NO_DISPLAY ((EGLDisplay)0)
101 #define EGL_NO_SURFACE ((EGLSurface)0)
102 #define EGL_NO_CONFIG ((EGLConfig) nullptr)
103 #define EGL_NO_SYNC ((EGLSync)0)
104 #define EGL_NO_IMAGE ((EGLImage)0)
107 # ifndef WIN32_LEAN_AND_MEAN
108 # define WIN32_LEAN_AND_MEAN 1
113 typedef HDC EGLNativeDisplayType
;
114 typedef HBITMAP EGLNativePixmapType
;
115 typedef HWND EGLNativeWindowType
;
117 typedef void* EGLNativeDisplayType
;
118 typedef void* EGLNativePixmapType
;
119 typedef void* EGLNativeWindowType
;