blob: ca1f5a9cb3e5776dfd208226cfe5cc54ca91cb5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#ifndef __egl_types_h_
#define __egl_types_h_
/*
** egltypes.h is platform dependent. It defines:
**
** - EGL types and resources
** - Native types
** - EGL and native handle values
**
** EGL types and resources are to be typedef'ed with appropriate platform
** dependent resource handle types. EGLint must be an integer of at least
** 32-bit.
**
** NativeDisplayType, NativeWindowType and NativePixmapType are to be
** replaced with corresponding types of the native window system in egl.h.
**
** EGL and native handle values must match their types.
*/
#if (defined(WIN32) || defined(_WIN32_WCE))
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#endif
// Windows Header Files:
#include <windows.h>
typedef HDC NativeDisplayType;
typedef HWND NativeWindowType;
typedef HBITMAP NativePixmapType;
#define EGL_DEFAULT_DISPLAY GetDC(0)
#elif defined(__SYMBIAN32__)
#include <e32def.h>
class RWindow;
class CWindowGc;
class CFbsBitmap;
typedef CWindowGc * NativeDisplayType;
typedef RWindow * NativeWindowType;
typedef CFbsBitmap * NativePixmapType;
#define EGL_DEFAULT_DISPLAY ((NativeDisplayType) 0)
#elif defined(__gnu_linux__)
typedef void * NativeDisplayType;
typedef void * NativeWindowType;
typedef void * NativePixmapType;
#define EGL_DEFAULT_DISPLAY ((NativeDisplayType) 0)
#else
# error "Unsupported Operating System"
#endif
#ifdef __cplusplus
namespace EGL {
class Context;
class Config;
class Surface;
}
typedef const EGL::Config * EGLConfig;
typedef EGL::Surface * EGLSurface;
typedef EGL::Context * EGLContext;
#else
typedef void * EGLConfig;
typedef void * EGLSurface;
typedef void * EGLContext;
#endif
/*
** Types and resources
*/
typedef int EGLBoolean;
typedef int EGLint;
typedef void * EGLDisplay;
/*
** EGL and native handle values
*/
#define EGL_NO_CONTEXT ((EGLContext)0)
#define EGL_NO_DISPLAY ((EGLDisplay)0)
#define EGL_NO_SURFACE ((EGLSurface)0)
#endif //ndef __egl_types_h_
|