1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/egl/eglinterface/group/eglheaders.mmh Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,94 @@
1.4 +// eglheaders.mmh
1.5 +
1.6 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
1.7 +// All rights reserved.
1.8 +// This component and the accompanying materials are made available
1.9 +// under the terms of "Eclipse Public License v1.0"
1.10 +// which accompanies this distribution, and is available
1.11 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.12 +//
1.13 +// Initial Contributors:
1.14 +// Nokia Corporation - initial contribution.
1.15 +//
1.16 +// Contributors:
1.17 +//
1.18 +// Description:
1.19 +// Determines which version of EGL API is declared on this platform.
1.20 +//
1.21 +//
1.22 +
1.23 +#ifndef __EGLHEADERS_MMH__
1.24 +#define __EGLHEADERS_MMH__
1.25 +
1.26 +/*
1.27 +@internalAll
1.28 +@released
1.29 +
1.30 +SYMBIAN_EGLHEADERS_API_VERSION_1_4
1.31 +
1.32 +This macro introduces the declaration of version 1.4 of EGL. It is
1.33 +mutually exclusive with the macro SYMBIAN_EGLHEADERS_API_VERSION_1_3
1.34 +and SYMBIAN_EGLHEADERS_API_VERSION_1_2
1.35 +
1.36 +Symbian component "eglinterface" provides the declared interface for EGL
1.37 +Symbian component "eglimplementation" provides a reference implementation of EGL
1.38 +
1.39 +EGL implementations enable the provision of the following APIs which
1.40 +sit on top of EGL; the choice of *those* APIs therefore governs the version
1.41 +of EGL needed. Newer versions of EGL are binary compatible with older versions
1.42 +of EGL so that newer EGL versions support the APIs supported by previous EGL
1.43 +versions. Newer versions of EGL are source compatible with older EGL versions
1.44 +apart from the fact that newer EGL versions introduce new tokens as #defines
1.45 +and also specify the version of the EGL API in a #define. This means that
1.46 +applications written to detect such #defines could have modified behaviour
1.47 +after a re-compile.
1.48 +
1.49 +EGL 1.4 Allows control of swap behavior (preserving back buffer contents) using
1.50 +the EGL_SWAP_BEHAVIOR bit in the EGL_SURFACE_TYPE EGLSurface attribute.
1.51 +*/
1.52 +#define SYMBIAN_EGLHEADERS_API_VERSION_1_4
1.53 +
1.54 +/*
1.55 +@internalAll
1.56 +@released
1.57 +SYMBIAN_EGLHEADERS_API_VERSION_1_3
1.58 +
1.59 +This macro introduces the declaration of version 1.3 of EGL. It is
1.60 +mutually exclusive with the macro SYMBIAN_EGLHEADERS_API_VERSION_1_4
1.61 +and SYMBIAN_EGLHEADERS_API_VERSION_1_2
1.62 +
1.63 +Symbian component "eglinterface" provides the declared interface for EGL
1.64 +Symbian component "eglimplementation" provides a reference implementation of EGL
1.65 +
1.66 +EGL implementations enable the provision of the following APIs which
1.67 +sit on top of EGL; the choice of *those* APIs therefore governs the version
1.68 +of EGL needed. Newer versions of EGL are binary compatible with older versions
1.69 +of EGL so that newer EGL versions support the APIs supported by previous EGL
1.70 +versions. Newer versions of EGL are source compatible with older EGL versions
1.71 +apart from the fact that newer EGL versions introduce new tokens as #defines
1.72 +and also specify the version of the EGL API in a #define. This means that
1.73 +applications written to detect such #defines could have modified behaviour
1.74 +after a re-compile.
1.75 +
1.76 +EGL 1.1 adds OpenGL ES 1.X support
1.77 +EGL 1.2 adds OpenVG support
1.78 +EGL 1.3 adds OpenGL ES 2.0 support
1.79 +*/
1.80 +//#define SYMBIAN_EGLHEADERS_API_VERSION_1_3
1.81 +
1.82 +/*
1.83 +@internalAll
1.84 +@released
1.85 +
1.86 +SYMBIAN_EGLHEADERS_API_VERSION_1_2
1.87 +
1.88 +This macro introduces the declaration of version 1.2 of EGL. It is
1.89 +mutually exclusive with the macro SYMBIAN_EGLHEADERS_API_VERSION_1_4
1.90 +and SYMBIAN_EGLHEADERS_API_VERSION_1_3
1.91 +
1.92 +@see SYMBIAN_EGLHEADERS_API_VERSION_1_3
1.93 +*/
1.94 +//#define SYMBIAN_EGLHEADERS_API_VERSION_1_2
1.95 +
1.96 +
1.97 +#endif