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