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