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__
29 #define EGLAPIENTRYP EGLAPIENTRY*
33 #define EGL_APIENTRY EGLAPIENTRY
37 #define EGLAPI IMPORT_C
47 ** egltypes.h is platform dependent. It defines:
49 ** - EGL types and resources
51 ** - EGL and native handle values
53 ** EGL types and resources are to be typedef'ed with appropriate platform
54 ** dependent resource handle types. EGLint must be an integer of at least
57 ** NativeDisplayType, NativeWindowType and NativePixmapType are to be
58 ** replaced with corresponding types of the native window system in egl.h.
60 ** EGL and native handle values must match their types.
65 typedef int EGLBoolean;
69 typedef int EGLDisplay;
70 typedef int EGLConfig;
71 typedef int EGLSurface;
72 typedef int EGLContext;
73 typedef int EGLClientBuffer;
75 typedef int NativeDisplayType;
76 typedef void* NativeWindowType;
77 typedef void* NativePixmapType;
79 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
80 typedef NativeDisplayType EGLNativeDisplayType;
81 typedef NativePixmapType EGLNativePixmapType;
82 typedef NativeWindowType EGLNativeWindowType;
84 #define EGL_DEFAULT_DISPLAY 0
85 #define EGL_NO_CONTEXT 0
86 #define EGL_NO_DISPLAY 0
87 #define EGL_NO_SURFACE 0
89 #endif // __EGL_EGLTYPES_H__