epoc32/include/EGL/egltypes.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
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) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of "Eclipse Public License v1.0"
williamr@2
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@4
    14
// EGL/EGLTYPES.H
williamr@2
    15
// 
williamr@2
    16
//
williamr@2
    17
williamr@4
    18
#ifndef __EGL_EGLTYPES_H__
williamr@4
    19
#define __EGL_EGLTYPES_H__
williamr@4
    20
williamr@4
    21
#include <e32def.h>
williamr@4
    22
williamr@4
    23
williamr@4
    24
#ifndef EGLAPIENTRY
williamr@4
    25
#define EGLAPIENTRY
williamr@4
    26
#endif
williamr@4
    27
williamr@4
    28
#ifndef EGLAPIENTRYP
williamr@4
    29
#define EGLAPIENTRYP EGLAPIENTRY*
williamr@4
    30
#endif
williamr@4
    31
williamr@4
    32
#ifndef EGL_APIENTRY
williamr@4
    33
#define EGL_APIENTRY EGLAPIENTRY
williamr@4
    34
#endif
williamr@4
    35
williamr@4
    36
#ifndef EGLAPI
williamr@4
    37
#define EGLAPI IMPORT_C
williamr@4
    38
#endif
williamr@2
    39
williamr@2
    40
williamr@2
    41
/**
williamr@4
    42
@publishedAll
williamr@4
    43
@released
williamr@4
    44
*/
williamr@2
    45
williamr@4
    46
/*
williamr@4
    47
** egltypes.h is platform dependent. It defines:
williamr@4
    48
**
williamr@4
    49
**     - EGL types and resources
williamr@4
    50
**     - Native types
williamr@4
    51
**     - EGL and native handle values
williamr@4
    52
**
williamr@4
    53
** EGL types and resources are to be typedef'ed with appropriate platform
williamr@4
    54
** dependent resource handle types. EGLint must be an integer of at least
williamr@4
    55
** 32-bit.
williamr@4
    56
**
williamr@4
    57
** NativeDisplayType, NativeWindowType and NativePixmapType are to be
williamr@4
    58
** replaced with corresponding types of the native window system in egl.h.
williamr@4
    59
**
williamr@4
    60
** EGL and native handle values must match their types.
williamr@4
    61
**
williamr@4
    62
*/
williamr@2
    63
williamr@2
    64
williamr@4
    65
typedef int EGLBoolean;
williamr@4
    66
typedef int EGLint;
williamr@4
    67
typedef int EGLenum;
williamr@2
    68
williamr@4
    69
typedef int EGLDisplay;
williamr@4
    70
typedef int EGLConfig;
williamr@4
    71
typedef int EGLSurface;
williamr@4
    72
typedef int EGLContext;
williamr@4
    73
typedef int EGLClientBuffer;
williamr@2
    74
williamr@4
    75
typedef int    NativeDisplayType;
williamr@4
    76
typedef void*  NativeWindowType;
williamr@4
    77
typedef void*  NativePixmapType;
williamr@4
    78
williamr@4
    79
/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
williamr@4
    80
typedef NativeDisplayType EGLNativeDisplayType;
williamr@4
    81
typedef NativePixmapType EGLNativePixmapType;
williamr@4
    82
typedef NativeWindowType EGLNativeWindowType;
williamr@4
    83
williamr@4
    84
#define EGL_DEFAULT_DISPLAY 0
williamr@4
    85
#define EGL_NO_CONTEXT 0
williamr@4
    86
#define EGL_NO_DISPLAY 0
williamr@4
    87
#define EGL_NO_SURFACE 0
williamr@4
    88
williamr@4
    89
#endif // __EGL_EGLTYPES_H__