os/graphics/graphicscomposition/openwfcinterface/include/wfcplatform.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 /********************************************************************
     2  *                                                                   *
     3  * Sample implementation of wfcplatform.h, version 1.0, draft 18     *
     4  *                                                                   *
     5  * Copyright (c) 2007-2009 The Khronos Group                         *
     6  *                                                                   *
     7  *********************************************************************/
     8 
     9 #ifndef _WFCPLATFORM_H_
    10 #define _WFCPLATFORM_H_
    11 
    12 #include <KHR/khrplatform.h>
    13 #include <EGL/egl.h>
    14 
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
    18 
    19 #ifndef WFC_API_CALL
    20 #define WFC_API_CALL KHRONOS_APICALL
    21 #endif
    22 #ifndef WFC_APIENTRY
    23 #define WFC_APIENTRY KHRONOS_APIENTRY
    24 #endif
    25 #ifndef WFC_APIEXIT
    26 #define WFC_APIEXIT KHRONOS_APIATTRIBUTES
    27 #endif
    28 
    29 #ifndef WFC_DEFAULT_SCREEN_NUMBER
    30 #define WFC_DEFAULT_SCREEN_NUMBER (0)
    31 #endif
    32 
    33 /* for backward compatibility of wfcGetOnScreenStream symbol use */
    34 #define wfcGetOnScreenStream extwfcGetOnScreenStream
    35 
    36 typedef khronos_int32_t     WFCint;
    37 typedef khronos_float_t     WFCfloat;
    38 typedef khronos_uint32_t    WFCbitfield;
    39 typedef khronos_uint32_t    WFCHandle;
    40 
    41 typedef EGLDisplay          WFCEGLDisplay;
    42 typedef void*               WFCEGLSync;   /* An opaque handle to an EGLSyncKHR */
    43 typedef WFCHandle           WFCNativeStreamType;
    44 
    45 #ifdef __cplusplus
    46 }
    47 #endif
    48 
    49 #endif /* _WFCPLATFORM_H_ */