sl@0: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // EGL/EGLTYPES.H sl@0: // sl@0: // sl@0: sl@0: #ifndef __EGL_EGLTYPES_H__ sl@0: #define __EGL_EGLTYPES_H__ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: sl@0: #ifndef EGLAPIENTRY sl@0: #define EGLAPIENTRY sl@0: #endif sl@0: #ifndef EGL_APIENTRY sl@0: sl@0: #define EGL_APIENTRY EGLAPIENTRY sl@0: #endif sl@0: #ifndef EGLAPI sl@0: #define EGLAPI IMPORT_C sl@0: #endif sl@0: sl@0: sl@0: /** sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: /* sl@0: ** egltypes.h is platform dependent. It defines: sl@0: ** sl@0: ** - EGL types and resources sl@0: ** - Native types sl@0: ** - EGL and native handle values sl@0: ** sl@0: ** EGL types and resources are to be typedef'ed with appropriate platform sl@0: ** dependent resource handle types. EGLint must be an integer of at least sl@0: ** 32-bit. sl@0: ** sl@0: ** NativeDisplayType, NativeWindowType and NativePixmapType are to be sl@0: ** replaced with corresponding types of the native window system in egl.h. sl@0: ** sl@0: ** EGL and native handle values must match their types. sl@0: ** sl@0: */ sl@0: sl@0: sl@0: typedef int EGLBoolean; sl@0: typedef int EGLint; sl@0: typedef int EGLenum; sl@0: sl@0: typedef int EGLDisplay; sl@0: typedef int EGLConfig; sl@0: typedef int EGLSurface; sl@0: typedef int EGLContext; sl@0: typedef int EGLClientBuffer; sl@0: typedef int EGLImageKHR; sl@0: typedef khronos_utime_nanoseconds_t EGLTimeKHR; sl@0: typedef void* EGLSyncKHR; sl@0: sl@0: typedef int NativeDisplayType; sl@0: typedef void* NativeWindowType; sl@0: typedef void* NativePixmapType; sl@0: sl@0: /* EGL 1.2 types, renamed for consistency in EGL 1.3 */ sl@0: typedef NativeDisplayType EGLNativeDisplayType; sl@0: typedef NativePixmapType EGLNativePixmapType; sl@0: typedef NativeWindowType EGLNativeWindowType; sl@0: sl@0: #define EGL_DEFAULT_DISPLAY 0 sl@0: #define EGL_NO_CONTEXT 0 sl@0: #define EGL_NO_DISPLAY 0 sl@0: #define EGL_NO_SURFACE 0 sl@0: #define EGL_NO_IMAGE_KHR 0 sl@0: sl@0: #endif // __EGL_EGLTYPES_H__ sl@0: