1.1 --- a/epoc32/include/gles/egl.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/gles/egl.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,52 @@
1.4 -egl.h
1.5 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +// GLES/EGL.H
1.19 +//
1.20 +//
1.21 +
1.22 +#ifndef __GLES_EGL_H_
1.23 +#define __GLES_EGL_H_
1.24 +
1.25 +/**
1.26 +@publishedPartner
1.27 +
1.28 +__OPENGLESHEADERS_LEGACY_EGL_1_1
1.29 +
1.30 +The purpose of this define is to allow the staged migration to
1.31 +EGL 1.3 from EGL 1.1 taken from the perspective of OpenGL ES 1.X
1.32 +
1.33 +If __OPENGLESHEADERS_LEGACY_EGL_1_1 is defined, then GLES/egl.h and
1.34 +GLES/egltypes.h will only provide the EGL 1.1 API; in particular no
1.35 +symbols from a later version of EGL will be seen at a source code level.
1.36 +This is considered to be legacy behaviour. If
1.37 +__OPENGLESHEADERS_LEGACY_EGL_1_1 is not defined, the GLES/egl.h
1.38 +and GLES/egltypes.h header files will re-direct to the system-wide
1.39 +EGL/egl.h. and EGL/egltypes.h respectively.
1.40 +
1.41 +The use of GLES/egl.h or GLES/egltypes.h by applications is considered
1.42 +legacy behaviour because applications should instead use EGL/egl.h
1.43 +or EGL/egltypes.h respectively.
1.44 +
1.45 +When this legacy behaviour is desired, the define should be placed in an
1.46 +OEM-specific system-wide .hrh file. Symbian product configurations
1.47 +never set this legacy behaviour.
1.48 +*/
1.49 +#ifdef __OPENGLESHEADERS_LEGACY_EGL_1_1
1.50 +#include <GLES/legacy_egl_1_1/egl.h>
1.51 +#else
1.52 +#include <EGL/egl.h>
1.53 +#include <GLES/gl.h>
1.54 +#endif
1.55 +
1.56 +#endif /* __GLES_EGL_H_ */