os/graphics/egl/eglinterface/include/1.3/egltypes.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 #include <khronos_types.h>
    23 
    24 
    25 #ifndef EGLAPIENTRY
    26 #define EGLAPIENTRY
    27 #endif
    28 #ifndef EGL_APIENTRY
    29 
    30 #define EGL_APIENTRY EGLAPIENTRY
    31 #endif
    32 #ifndef EGLAPI
    33 #define EGLAPI IMPORT_C
    34 #endif
    35 
    36 
    37 /**
    38 @publishedAll
    39 @released
    40 */
    41 
    42 /*
    43 ** egltypes.h is platform dependent. It defines:
    44 **
    45 **     - EGL types and resources
    46 **     - Native types
    47 **     - EGL and native handle values
    48 **
    49 ** EGL types and resources are to be typedef'ed with appropriate platform
    50 ** dependent resource handle types. EGLint must be an integer of at least
    51 ** 32-bit.
    52 **
    53 ** NativeDisplayType, NativeWindowType and NativePixmapType are to be
    54 ** replaced with corresponding types of the native window system in egl.h.
    55 **
    56 ** EGL and native handle values must match their types.
    57 **
    58 */
    59 
    60 
    61 typedef int EGLBoolean;
    62 typedef int EGLint;
    63 typedef int EGLenum;
    64 
    65 typedef int EGLDisplay;
    66 typedef int EGLConfig;
    67 typedef int EGLSurface;
    68 typedef int EGLContext;
    69 typedef int EGLClientBuffer;
    70 typedef int EGLImageKHR;
    71 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
    72 typedef void*  EGLSyncKHR;
    73 
    74 typedef int    NativeDisplayType;
    75 typedef void*  NativeWindowType;
    76 typedef void*  NativePixmapType;
    77 
    78 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
    79 typedef NativeDisplayType EGLNativeDisplayType;
    80 typedef NativePixmapType EGLNativePixmapType;
    81 typedef NativeWindowType EGLNativeWindowType;
    82 
    83 #define EGL_DEFAULT_DISPLAY 0
    84 #define EGL_NO_CONTEXT 0
    85 #define EGL_NO_DISPLAY 0
    86 #define EGL_NO_SURFACE 0
    87 #define EGL_NO_IMAGE_KHR 0
    88 
    89 #endif // __EGL_EGLTYPES_H__
    90