Name
EGL/eglplatform.h
Platform EGL header file
Description
This file is part of the libegl-dev
Ubuntu system package.
libegl-dev/lunar,now 1.6.0-1 amd64 [installed]
Vendor neutral GL dispatch library -- EGL development files
See the Khronos EGL website for more information about EGL and its headers.
Contents
1 2
3
4 /*
5 ** Copyright 2007-2020 The Khronos Group Inc.
6 ** SPDX-License-Identifier: Apache-2.0
7 */
8
9 /* Platform-specific types and definitions for egl.h
10 *
11 * Adopters may modify khrplatform.h and this file to suit their platform.
12 * You are encouraged to submit all modifications to the Khronos group so that
13 * they can be included in future versions of this file. Please submit changes
14 * by filing an issue or pull request on the public Khronos EGL Registry, at
15 * https://www.github.com/KhronosGroup/EGL-Registry/
16 */
17
18 19
20 /* Macros used in EGL function prototype declarations.
21 *
22 * EGL functions should be prototyped as:
23 *
24 * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
25 * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
26 *
27 * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
28 */
29
30 31
32
33
34 35
36
37
38
39 /* The types NativeDisplayType, NativeWindowType, and NativePixmapType
40 * are aliases of window-system-dependent types, such as X Display * or
41 * Windows Device Context. They must be defined in platform-specific
42 * code below. The EGL-prefixed versions of Native*Type are the same
43 * types, renamed in EGL 1.3 so all types in the API start with "EGL".
44 *
45 * Khronos STRONGLY RECOMMENDS that you use the default definitions
46 * provided below, since these changes affect both binary and source
47 * portability of applications using EGL running on different EGL
48 * implementations.
49 */
50
51 52
53 typedef void *EGLNativeDisplayType;
54 typedef void *EGLNativePixmapType;
55 typedef void *EGLNativeWindowType;
56
57 58 59
60
61 62
63 typedef HDC EGLNativeDisplayType;
64 typedef HBITMAP EGLNativePixmapType;
65 typedef HWND EGLNativeWindowType;
66
67 68
69 typedef int EGLNativeDisplayType;
70 typedef int EGLNativePixmapType;
71 typedef int EGLNativeWindowType;
72
73 74
75 typedef int EGLNativeDisplayType;
76 typedef void *EGLNativePixmapType;
77 typedef void *EGLNativeWindowType;
78
79 80
81 typedef struct wl_display *EGLNativeDisplayType;
82 typedef struct wl_egl_pixmap *EGLNativePixmapType;
83 typedef struct wl_egl_window *EGLNativeWindowType;
84
85 86
87 typedef struct gbm_device *EGLNativeDisplayType;
88 typedef struct gbm_bo *EGLNativePixmapType;
89 typedef void *EGLNativeWindowType;
90
91 92
93 ;
94 ;
95
96 typedef void* EGLNativeDisplayType;
97 typedef struct egl_native_pixmap_t* EGLNativePixmapType;
98 typedef struct ANativeWindow* EGLNativeWindowType;
99
100 101
102 typedef intptr_t EGLNativeDisplayType;
103 typedef intptr_t EGLNativePixmapType;
104 typedef intptr_t EGLNativeWindowType;
105
106 107
108 /* X11 (tentative) */
109 110 111
112 typedef Display *EGLNativeDisplayType;
113 typedef Pixmap EGLNativePixmapType;
114 typedef Window EGLNativeWindowType;
115
116 117
118 typedef void *EGLNativeDisplayType;
119 typedef khronos_uintptr_t EGLNativePixmapType;
120 typedef khronos_uintptr_t EGLNativeWindowType;
121
122 123
124 typedef int EGLNativeDisplayType;
125 typedef void *EGLNativePixmapType;
126 typedef void *EGLNativeWindowType;
127
128 129
130 131
132 typedef void *EGLNativeDisplayType;
133 typedef khronos_uintptr_t EGLNativePixmapType;
134 typedef khronos_uintptr_t EGLNativeWindowType;
135
136 137
138 typedef void *EGLNativeDisplayType;
139 typedef khronos_uintptr_t EGLNativePixmapType;
140 typedef khronos_uintptr_t EGLNativeWindowType;
141
142 143 144
145
146 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
147 typedef EGLNativeDisplayType NativeDisplayType;
148 typedef EGLNativePixmapType NativePixmapType;
149 typedef EGLNativeWindowType NativeWindowType;
150
151
152 /* Define EGLint. This must be a signed integral type large enough to contain
153 * all legal attribute names and values passed into and out of EGL, whether
154 * their type is boolean, bitmask, enumerant (symbolic constant), integer,
155 * handle, or other. While in general a 32-bit integer will suffice, if
156 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
157 * integer type.
158 */
159 typedef khronos_int32_t EGLint;
160
161
162 /* C++ / C typecast macros for special EGL handle values */
163 164
165 166
167
168
169 /* __eglplatform_h */
References
This page is referenced by the following documents: