1/* $Revision: 6810 $ on $Date:: 2008-10-29 14:31:37 +0000 #$ */
2
3/*------------------------------------------------------------------------
4 *
5 * VG platform specific header Reference Implementation
6 * ----------------------------------------------------
7 *
8 * Copyright (c) 2008 The Khronos Group Inc.
9 *
10 * Permission is hereby granted, free of charge, to any person obtaining a
11 * copy of this software and /or associated documentation files
12 * (the "Materials "), to deal in the Materials without restriction,
13 * including without limitation the rights to use, copy, modify, merge,
14 * publish, distribute, sublicense, and/or sell copies of the Materials,
15 * and to permit persons to whom the Materials are furnished to do so,
16 * subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Materials.
20 *
21 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
26 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
27 * THE USE OR OTHER DEALINGS IN THE MATERIALS.
28 *
29 *//**
30 * \file
31 * \brief VG platform specific header
32 *//*-------------------------------------------------------------------*/
33
34#ifndef _VGPLATFORM_H
35#define _VGPLATFORM_H
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#ifndef VG_API_CALL
42 #ifdef KHAPI
43 #define VG_API_CALL KHAPI
44 #else
45 #define VG_API_CALL extern
46 #endif
47#endif
48
49#ifndef VGU_API_CALL
50 #define VGU_API_CALL VG_API_CALL
51#endif
52
53#ifndef VG_API_ENTRY
54#define VG_API_ENTRY
55#endif
56
57#ifndef VG_API_EXIT
58#define VG_API_EXIT
59#endif
60
61#ifndef VGU_API_ENTRY
62#define VGU_API_ENTRY
63#endif
64
65#ifndef VGU_API_EXIT
66#define VGU_API_EXIT
67#endif
68
69#include "../KHR/khrplatform.h"
70typedef khronos_float_t VGfloat;
71typedef khronos_int8_t VGbyte;
72typedef khronos_uint8_t VGubyte;
73typedef khronos_int16_t VGshort;
74typedef khronos_int32_t VGint;
75typedef khronos_uint32_t VGuint;
76typedef khronos_uint32_t VGbitfield;
77
78#ifndef VG_VGEXT_PROTOTYPES
79#define VG_VGEXT_PROTOTYPES
80#endif
81
82#ifdef __cplusplus
83} /* extern "C" */
84#endif
85
86#endif /* _VGPLATFORM_H */
87