Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 /*------------------------------------------------------------------------
3 * VGU 1.1 Reference Implementation
4 * -------------------------------------
6 * Copyright (c) 2008 The Khronos Group Inc.
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and /or associated documentation files
10 * (the "Materials "), to deal in the Materials without restriction,
11 * including without limitation the rights to use, copy, modify, merge,
12 * publish, distribute, sublicense, and/or sell copies of the Materials,
13 * and to permit persons to whom the Materials are furnished to do so,
14 * subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Materials.
19 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
23 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
25 * THE USE OR OTHER DEALINGS IN THE MATERIALS.
30 *//*-------------------------------------------------------------------*/
32 #ifndef __VG_1_1_VGU_H
33 #define __VG_1_1_VGU_H
36 #error Do not include this file directly. Use <VG/vgu.h>.
39 /* differences from the actual sample implemtation provided by Khronos:
41 - the Doxygen comment with tag 'publishedAll', and tag 'released'
43 #define VG_API_CALL extern
45 #define VG_API_CALL IMPORT_C
46 - the addition of __SOFTFP in some of the function prototypes
57 #include <VG/openvg.h>
59 #define VGU_VERSION_1_0 1
60 #define VGU_VERSION_1_1 2
63 #define VGU_API_CALL IMPORT_C
66 #define VGU_APIENTRY /* nothing */
69 #define VGU_APIEXIT __SOFTFP
74 VGU_BAD_HANDLE_ERROR = 0xF000,
75 VGU_ILLEGAL_ARGUMENT_ERROR = 0xF001,
76 VGU_OUT_OF_MEMORY_ERROR = 0xF002,
77 VGU_PATH_CAPABILITY_ERROR = 0xF003,
78 VGU_BAD_WARP_ERROR = 0xF004
82 VGU_ARC_OPEN = 0xF100,
83 VGU_ARC_CHORD = 0xF101,
87 VGU_API_CALL VGUErrorCode VGU_APIENTRY
89 VGfloat x0, VGfloat y0,
90 VGfloat x1, VGfloat y1) VGU_APIEXIT;
92 VGU_API_CALL VGUErrorCode VGU_APIENTRY
93 vguPolygon(VGPath path,
94 const VGfloat * points,
96 VGboolean closed) VGU_APIEXIT;
98 VGU_API_CALL VGUErrorCode VGU_APIENTRY
100 VGfloat x, VGfloat y,
101 VGfloat width, VGfloat height) VGU_APIEXIT;
103 VGU_API_CALL VGUErrorCode VGU_APIENTRY
104 vguRoundRect(VGPath path,
105 VGfloat x, VGfloat y,
109 VGfloat arcHeight) VGU_APIEXIT;
111 VGU_API_CALL VGUErrorCode VGU_APIENTRY
112 vguEllipse(VGPath path,
113 VGfloat cx, VGfloat cy,
115 VGfloat height) VGU_APIEXIT;
117 VGU_API_CALL VGUErrorCode VGU_APIENTRY
119 VGfloat x, VGfloat y,
120 VGfloat width, VGfloat height,
123 VGUArcType arcType) VGU_APIEXIT;
125 VGU_API_CALL VGUErrorCode VGU_APIENTRY
126 vguComputeWarpQuadToSquare(VGfloat sx0, VGfloat sy0,
127 VGfloat sx1, VGfloat sy1,
128 VGfloat sx2, VGfloat sy2,
129 VGfloat sx3, VGfloat sy3,
130 VGfloat * matrix) VGU_APIEXIT;
132 VGU_API_CALL VGUErrorCode VGU_APIENTRY
133 vguComputeWarpSquareToQuad(VGfloat dx0, VGfloat dy0,
134 VGfloat dx1, VGfloat dy1,
135 VGfloat dx2, VGfloat dy2,
136 VGfloat dx3, VGfloat dy3,
137 VGfloat * matrix) VGU_APIEXIT;
139 VGU_API_CALL VGUErrorCode VGU_APIENTRY
140 vguComputeWarpQuadToQuad(VGfloat dx0, VGfloat dy0,
141 VGfloat dx1, VGfloat dy1,
142 VGfloat dx2, VGfloat dy2,
143 VGfloat dx3, VGfloat dy3,
144 VGfloat sx0, VGfloat sy0,
145 VGfloat sx1, VGfloat sy1,
146 VGfloat sx2, VGfloat sy2,
147 VGfloat sx3, VGfloat sy3,
148 VGfloat * matrix) VGU_APIEXIT;
154 #endif /* __VG_1_1_VGU_H */