First public contribution.
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #ifndef __EGL_EGLTYPES_H__
19 #define __EGL_EGLTYPES_H__
22 #include <khronos_types.h>
30 #define EGL_APIENTRY EGLAPIENTRY
33 #define EGLAPI IMPORT_C
43 ** egltypes.h is platform dependent. It defines:
45 ** - EGL types and resources
47 ** - EGL and native handle values
49 ** EGL types and resources are to be typedef'ed with appropriate platform
50 ** dependent resource handle types. EGLint must be an integer of at least
53 ** NativeDisplayType, NativeWindowType and NativePixmapType are to be
54 ** replaced with corresponding types of the native window system in egl.h.
56 ** EGL and native handle values must match their types.
61 typedef int EGLBoolean;
65 typedef int EGLDisplay;
66 typedef int EGLConfig;
67 typedef int EGLSurface;
68 typedef int EGLContext;
69 typedef int EGLClientBuffer;
70 typedef int EGLImageKHR;
71 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
72 typedef void* EGLSyncKHR;
74 typedef int NativeDisplayType;
75 typedef void* NativeWindowType;
76 typedef void* NativePixmapType;
78 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
79 typedef NativeDisplayType EGLNativeDisplayType;
80 typedef NativePixmapType EGLNativePixmapType;
81 typedef NativeWindowType EGLNativeWindowType;
83 #define EGL_DEFAULT_DISPLAY 0
84 #define EGL_NO_CONTEXT 0
85 #define EGL_NO_DISPLAY 0
86 #define EGL_NO_SURFACE 0
87 #define EGL_NO_IMAGE_KHR 0
89 #endif // __EGL_EGLTYPES_H__