1.1 --- a/epoc32/include/VG/1.0/vgu.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/VG/1.0/vgu.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,9 +1,9 @@
1.4 /*------------------------------------------------------------------------
1.5 - *
1.6 - * VGU 1.1 Reference Implementation
1.7 + *
1.8 + * OpenVG 1.0.1 Reference Implementation
1.9 * -------------------------------------
1.10 *
1.11 - * Copyright (c) 2008 The Khronos Group Inc.
1.12 + * Copyright (c) 2007-2009 The Khronos Group Inc.
1.13 *
1.14 * Permission is hereby granted, free of charge, to any person obtaining a
1.15 * copy of this software and /or associated documentation files
1.16 @@ -26,11 +26,11 @@
1.17 *
1.18 *//**
1.19 * \file
1.20 - * \brief VGU 1.1 API.
1.21 + * \brief OpenVG VGU 1.0.1 API.
1.22 *//*-------------------------------------------------------------------*/
1.23
1.24 -#ifndef __VG_1_1_VGU_H
1.25 -#define __VG_1_1_VGU_H
1.26 +#ifndef __VG_1_0_VGU_H
1.27 +#define __VG_1_0_VGU_H
1.28
1.29 #ifndef __VG_VGU_H_
1.30 #error Do not include this file directly. Use <VG/vgu.h>.
1.31 @@ -50,23 +50,22 @@
1.32 @publishedAll
1.33 @released
1.34 */
1.35 -#ifdef __cplusplus
1.36 -extern "C" {
1.37 +
1.38 +#ifdef __cplusplus
1.39 +extern "C" {
1.40 #endif
1.41
1.42 #include <VG/openvg.h>
1.43
1.44 -#define VGU_VERSION_1_0 1
1.45 -#define VGU_VERSION_1_1 2
1.46 +#define VGU_VERSION_1_0 1
1.47 +#define VGU_VERSION_1_0_1 1
1.48
1.49 #ifndef VGU_API_CALL
1.50 -#define VGU_API_CALL IMPORT_C
1.51 -#endif
1.52 -#ifndef VGU_APIENTRY
1.53 -#define VGU_APIENTRY /* nothing */
1.54 -#endif
1.55 -#ifndef VGU_APIEXIT
1.56 -#define VGU_APIEXIT __SOFTFP
1.57 +# if defined(SYMBIAN_VG_DLL_EXPORTS)
1.58 +# define VGU_API_CALL EXPORT_C
1.59 +# else
1.60 +# define VGU_API_CALL IMPORT_C
1.61 +# endif //defined(SYMBIAN_VG_DLL_EXPORTS)
1.62 #endif
1.63
1.64 typedef enum {
1.65 @@ -84,71 +83,57 @@
1.66 VGU_ARC_PIE = 0xF102
1.67 } VGUArcType;
1.68
1.69 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.70 - vguLine(VGPath path,
1.71 - VGfloat x0, VGfloat y0,
1.72 - VGfloat x1, VGfloat y1) VGU_APIEXIT;
1.73 +VGU_API_CALL VGUErrorCode vguLine(VGPath path,
1.74 + VGfloat x0, VGfloat y0,
1.75 + VGfloat x1, VGfloat y1) __SOFTFP;
1.76
1.77 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.78 - vguPolygon(VGPath path,
1.79 - const VGfloat * points,
1.80 - VGint count,
1.81 - VGboolean closed) VGU_APIEXIT;
1.82 +VGU_API_CALL VGUErrorCode vguPolygon(VGPath path,
1.83 + const VGfloat * points, VGint count,
1.84 + VGboolean closed);
1.85
1.86 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.87 - vguRect(VGPath path,
1.88 - VGfloat x, VGfloat y,
1.89 - VGfloat width, VGfloat height) VGU_APIEXIT;
1.90 +VGU_API_CALL VGUErrorCode vguRect(VGPath path,
1.91 + VGfloat x, VGfloat y,
1.92 + VGfloat width, VGfloat height) __SOFTFP;
1.93
1.94 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.95 - vguRoundRect(VGPath path,
1.96 - VGfloat x, VGfloat y,
1.97 - VGfloat width,
1.98 - VGfloat height,
1.99 - VGfloat arcWidth,
1.100 - VGfloat arcHeight) VGU_APIEXIT;
1.101 +VGU_API_CALL VGUErrorCode vguRoundRect(VGPath path,
1.102 + VGfloat x, VGfloat y,
1.103 + VGfloat width, VGfloat height,
1.104 + VGfloat arcWidth, VGfloat arcHeight) __SOFTFP;
1.105
1.106 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.107 - vguEllipse(VGPath path,
1.108 - VGfloat cx, VGfloat cy,
1.109 - VGfloat width,
1.110 - VGfloat height) VGU_APIEXIT;
1.111 +VGU_API_CALL VGUErrorCode vguEllipse(VGPath path,
1.112 + VGfloat cx, VGfloat cy,
1.113 + VGfloat width, VGfloat height) __SOFTFP;
1.114
1.115 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.116 - vguArc(VGPath path,
1.117 - VGfloat x, VGfloat y,
1.118 - VGfloat width, VGfloat height,
1.119 - VGfloat startAngle,
1.120 - VGfloat angleExtent,
1.121 - VGUArcType arcType) VGU_APIEXIT;
1.122 +VGU_API_CALL VGUErrorCode vguArc(VGPath path,
1.123 + VGfloat x, VGfloat y,
1.124 + VGfloat width, VGfloat height,
1.125 + VGfloat startAngle, VGfloat angleExtent,
1.126 + VGUArcType arcType) __SOFTFP;
1.127
1.128 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.129 - vguComputeWarpQuadToSquare(VGfloat sx0, VGfloat sy0,
1.130 - VGfloat sx1, VGfloat sy1,
1.131 - VGfloat sx2, VGfloat sy2,
1.132 - VGfloat sx3, VGfloat sy3,
1.133 - VGfloat * matrix) VGU_APIEXIT;
1.134 +VGU_API_CALL VGUErrorCode vguComputeWarpQuadToSquare(VGfloat sx0, VGfloat sy0,
1.135 + VGfloat sx1, VGfloat sy1,
1.136 + VGfloat sx2, VGfloat sy2,
1.137 + VGfloat sx3, VGfloat sy3,
1.138 + VGfloat * matrix) __SOFTFP;
1.139
1.140 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.141 - vguComputeWarpSquareToQuad(VGfloat dx0, VGfloat dy0,
1.142 - VGfloat dx1, VGfloat dy1,
1.143 - VGfloat dx2, VGfloat dy2,
1.144 - VGfloat dx3, VGfloat dy3,
1.145 - VGfloat * matrix) VGU_APIEXIT;
1.146 +VGU_API_CALL VGUErrorCode vguComputeWarpSquareToQuad(VGfloat dx0, VGfloat dy0,
1.147 + VGfloat dx1, VGfloat dy1,
1.148 + VGfloat dx2, VGfloat dy2,
1.149 + VGfloat dx3, VGfloat dy3,
1.150 + VGfloat * matrix) __SOFTFP;
1.151
1.152 -VGU_API_CALL VGUErrorCode VGU_APIENTRY
1.153 - vguComputeWarpQuadToQuad(VGfloat dx0, VGfloat dy0,
1.154 - VGfloat dx1, VGfloat dy1,
1.155 - VGfloat dx2, VGfloat dy2,
1.156 - VGfloat dx3, VGfloat dy3,
1.157 - VGfloat sx0, VGfloat sy0,
1.158 - VGfloat sx1, VGfloat sy1,
1.159 - VGfloat sx2, VGfloat sy2,
1.160 - VGfloat sx3, VGfloat sy3,
1.161 - VGfloat * matrix) VGU_APIEXIT;
1.162 +VGU_API_CALL VGUErrorCode vguComputeWarpQuadToQuad(VGfloat dx0, VGfloat dy0,
1.163 + VGfloat dx1, VGfloat dy1,
1.164 + VGfloat dx2, VGfloat dy2,
1.165 + VGfloat dx3, VGfloat dy3,
1.166 + VGfloat sx0, VGfloat sy0,
1.167 + VGfloat sx1, VGfloat sy1,
1.168 + VGfloat sx2, VGfloat sy2,
1.169 + VGfloat sx3, VGfloat sy3,
1.170 + VGfloat * matrix) __SOFTFP;
1.171
1.172 -#ifdef __cplusplus
1.173 +#ifdef __cplusplus
1.174 } /* extern "C" */
1.175 #endif
1.176
1.177 -#endif /* __VG_1_1_VGU_H */
1.178 +#endif /*__VG_1_0_VGU_H */