1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/egl/eglinterface/include/1.4/egltypes.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,89 @@
1.4 +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// EGL/EGLTYPES.H
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef __EGL_EGLTYPES_H__
1.22 +#define __EGL_EGLTYPES_H__
1.23 +
1.24 +#include <e32def.h>
1.25 +
1.26 +
1.27 +#ifndef EGLAPIENTRY
1.28 +#define EGLAPIENTRY
1.29 +#endif
1.30 +
1.31 +#ifndef EGLAPIENTRYP
1.32 +#define EGLAPIENTRYP EGLAPIENTRY*
1.33 +#endif
1.34 +
1.35 +#ifndef EGL_APIENTRY
1.36 +#define EGL_APIENTRY EGLAPIENTRY
1.37 +#endif
1.38 +
1.39 +#ifndef EGLAPI
1.40 +#define EGLAPI IMPORT_C
1.41 +#endif
1.42 +
1.43 +
1.44 +/**
1.45 +@publishedAll
1.46 +@released
1.47 +*/
1.48 +
1.49 +/*
1.50 +** egltypes.h is platform dependent. It defines:
1.51 +**
1.52 +** - EGL types and resources
1.53 +** - Native types
1.54 +** - EGL and native handle values
1.55 +**
1.56 +** EGL types and resources are to be typedef'ed with appropriate platform
1.57 +** dependent resource handle types. EGLint must be an integer of at least
1.58 +** 32-bit.
1.59 +**
1.60 +** NativeDisplayType, NativeWindowType and NativePixmapType are to be
1.61 +** replaced with corresponding types of the native window system in egl.h.
1.62 +**
1.63 +** EGL and native handle values must match their types.
1.64 +**
1.65 +*/
1.66 +
1.67 +
1.68 +typedef int EGLBoolean;
1.69 +typedef int EGLint;
1.70 +typedef int EGLenum;
1.71 +
1.72 +typedef int EGLDisplay;
1.73 +typedef int EGLConfig;
1.74 +typedef int EGLSurface;
1.75 +typedef int EGLContext;
1.76 +typedef int EGLClientBuffer;
1.77 +
1.78 +typedef int NativeDisplayType;
1.79 +typedef void* NativeWindowType;
1.80 +typedef void* NativePixmapType;
1.81 +
1.82 +/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
1.83 +typedef NativeDisplayType EGLNativeDisplayType;
1.84 +typedef NativePixmapType EGLNativePixmapType;
1.85 +typedef NativeWindowType EGLNativeWindowType;
1.86 +
1.87 +#define EGL_DEFAULT_DISPLAY 0
1.88 +#define EGL_NO_CONTEXT 0
1.89 +#define EGL_NO_DISPLAY 0
1.90 +#define EGL_NO_SURFACE 0
1.91 +
1.92 +#endif // __EGL_EGLTYPES_H__