epoc32/include/GLES/egl.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     2
// All rights reserved.
williamr@4
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of "Eclipse Public License v1.0"
williamr@4
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@4
     7
//
williamr@4
     8
// Initial Contributors:
williamr@4
     9
// Nokia Corporation - initial contribution.
williamr@4
    10
//
williamr@4
    11
// Contributors:
williamr@4
    12
//
williamr@4
    13
// Description:
williamr@4
    14
// GLES/EGL.H
williamr@4
    15
// 
williamr@4
    16
//
williamr@4
    17
williamr@4
    18
#ifndef __GLES_EGL_H_
williamr@4
    19
#define __GLES_EGL_H_
williamr@4
    20
williamr@4
    21
williamr@4
    22
/**
williamr@4
    23
@publishedPartner
williamr@4
    24
@released
williamr@4
    25
williamr@4
    26
__OPENGLESHEADERS_LEGACY_EGL_1_1
williamr@4
    27
    
williamr@4
    28
The purpose of this define is to allow the staged migration to
williamr@4
    29
EGL 1.3 from EGL 1.1 taken from the perspective of OpenGL ES 1.X
williamr@4
    30
williamr@4
    31
If __OPENGLESHEADERS_LEGACY_EGL_1_1 is defined, then GLES/egl.h and
williamr@4
    32
GLES/egltypes.h will only provide the EGL 1.1 API; in particular no 
williamr@4
    33
symbols from a later version of EGL will be seen at a source code level.
williamr@4
    34
This is considered to be legacy behaviour.  If
williamr@4
    35
__OPENGLESHEADERS_LEGACY_EGL_1_1 is not defined, the GLES/egl.h 
williamr@4
    36
and GLES/egltypes.h header files will re-direct to the system-wide 
williamr@4
    37
EGL/egl.h. and EGL/egltypes.h respectively.
williamr@4
    38
williamr@4
    39
The use of GLES/egl.h or GLES/egltypes.h by applications is considered
williamr@4
    40
legacy behaviour because applications should instead use EGL/egl.h
williamr@4
    41
or EGL/egltypes.h respectively.
williamr@4
    42
williamr@4
    43
When this legacy behaviour is desired, the define should be placed in an
williamr@4
    44
OEM-specific system-wide .hrh file.  Symbian product configurations
williamr@4
    45
never set this legacy behaviour.
williamr@4
    46
*/
williamr@4
    47
#ifdef __OPENGLESHEADERS_LEGACY_EGL_1_1
williamr@4
    48
#include <GLES/legacy_egl_1_1/egl.h>
williamr@4
    49
#else
williamr@4
    50
#include <EGL/egl.h>
williamr@4
    51
#include <GLES/gl.h>
williamr@4
    52
#endif
williamr@4
    53
williamr@4
    54
#endif /* __GLES_EGL_H_ */
williamr@4
    55