sl@0
|
1 |
/*------------------------------------------------------------------------
|
sl@0
|
2 |
*
|
sl@0
|
3 |
* OpenVG 1.1 Reference Implementation
|
sl@0
|
4 |
* -------------------------------------
|
sl@0
|
5 |
*
|
sl@0
|
6 |
* Copyright (c) 2008-2009 The Khronos Group Inc.
|
sl@0
|
7 |
*
|
sl@0
|
8 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
sl@0
|
9 |
* copy of this software and /or associated documentation files
|
sl@0
|
10 |
* (the "Materials "), to deal in the Materials without restriction,
|
sl@0
|
11 |
* including without limitation the rights to use, copy, modify, merge,
|
sl@0
|
12 |
* publish, distribute, sublicense, and/or sell copies of the Materials,
|
sl@0
|
13 |
* and to permit persons to whom the Materials are furnished to do so,
|
sl@0
|
14 |
* subject to the following conditions:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
* The above copyright notice and this permission notice shall be included
|
sl@0
|
17 |
* in all copies or substantial portions of the Materials.
|
sl@0
|
18 |
*
|
sl@0
|
19 |
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
sl@0
|
20 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
sl@0
|
21 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
sl@0
|
22 |
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
sl@0
|
23 |
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
sl@0
|
24 |
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
|
sl@0
|
25 |
* THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
sl@0
|
26 |
*
|
sl@0
|
27 |
*//**
|
sl@0
|
28 |
* \file
|
sl@0
|
29 |
* \brief OpenVG 1.1 API.
|
sl@0
|
30 |
*//*-------------------------------------------------------------------*/
|
sl@0
|
31 |
|
sl@0
|
32 |
#ifndef __VG_1_1_OPENVG_H
|
sl@0
|
33 |
#define __VG_1_1_OPENVG_H
|
sl@0
|
34 |
|
sl@0
|
35 |
#ifndef __VG_OPENVG_H_
|
sl@0
|
36 |
#error Do not include this file directly. Use <VG/openvg.h>.
|
sl@0
|
37 |
#endif
|
sl@0
|
38 |
|
sl@0
|
39 |
/* differences from the actual sample implemtation provided by Khronos:
|
sl@0
|
40 |
- this comment
|
sl@0
|
41 |
- the Doxygen comment with tag 'publishedAll', and tag 'released'
|
sl@0
|
42 |
- changing
|
sl@0
|
43 |
#define VG_API_CALL extern
|
sl@0
|
44 |
to
|
sl@0
|
45 |
#define VG_API_CALL IMPORT_C
|
sl@0
|
46 |
- the addition of __SOFTFP to all function prototypes
|
sl@0
|
47 |
- the addition of VG_PATH_DATATYPE_INVALID in VGPathDatatype
|
sl@0
|
48 |
- the addition of VG_IMAGE_FORMAT_INVALID in VGImageFormat
|
sl@0
|
49 |
- the addition of VGeglImageKHR typedef for the VG_KHR_EGL_image extension
|
sl@0
|
50 |
*/
|
sl@0
|
51 |
|
sl@0
|
52 |
/**
|
sl@0
|
53 |
@publishedAll
|
sl@0
|
54 |
@released
|
sl@0
|
55 |
*/
|
sl@0
|
56 |
|
sl@0
|
57 |
#ifdef __cplusplus
|
sl@0
|
58 |
extern "C" {
|
sl@0
|
59 |
#endif
|
sl@0
|
60 |
|
sl@0
|
61 |
#include <khronos_types.h>
|
sl@0
|
62 |
|
sl@0
|
63 |
#define OPENVG_VERSION_1_0 1
|
sl@0
|
64 |
#define OPENVG_VERSION_1_0_1 1
|
sl@0
|
65 |
#define OPENVG_VERSION_1_1 2
|
sl@0
|
66 |
|
sl@0
|
67 |
typedef khronos_float_t VGfloat;
|
sl@0
|
68 |
typedef khronos_int8_t VGbyte;
|
sl@0
|
69 |
typedef khronos_uint8_t VGubyte;
|
sl@0
|
70 |
typedef khronos_int16_t VGshort;
|
sl@0
|
71 |
typedef khronos_int32_t VGint;
|
sl@0
|
72 |
typedef khronos_uint32_t VGuint;
|
sl@0
|
73 |
typedef khronos_uint32_t VGbitfield;
|
sl@0
|
74 |
|
sl@0
|
75 |
typedef enum {
|
sl@0
|
76 |
VG_FALSE = 0,
|
sl@0
|
77 |
VG_TRUE = 1
|
sl@0
|
78 |
} VGboolean;
|
sl@0
|
79 |
|
sl@0
|
80 |
#define VG_MAXSHORT ((VGshort)((~((unsigned)0)) >> 1))
|
sl@0
|
81 |
#define VG_MAXINT ((VGint)((~((unsigned)0)) >> 1))
|
sl@0
|
82 |
|
sl@0
|
83 |
typedef VGuint VGHandle;
|
sl@0
|
84 |
|
sl@0
|
85 |
#define VG_INVALID_HANDLE ((VGHandle)0)
|
sl@0
|
86 |
|
sl@0
|
87 |
typedef enum {
|
sl@0
|
88 |
VG_NO_ERROR = 0,
|
sl@0
|
89 |
VG_BAD_HANDLE_ERROR = 0x1000,
|
sl@0
|
90 |
VG_ILLEGAL_ARGUMENT_ERROR = 0x1001,
|
sl@0
|
91 |
VG_OUT_OF_MEMORY_ERROR = 0x1002,
|
sl@0
|
92 |
VG_PATH_CAPABILITY_ERROR = 0x1003,
|
sl@0
|
93 |
VG_UNSUPPORTED_IMAGE_FORMAT_ERROR = 0x1004,
|
sl@0
|
94 |
VG_UNSUPPORTED_PATH_FORMAT_ERROR = 0x1005,
|
sl@0
|
95 |
VG_IMAGE_IN_USE_ERROR = 0x1006,
|
sl@0
|
96 |
VG_NO_CONTEXT_ERROR = 0x1007
|
sl@0
|
97 |
} VGErrorCode;
|
sl@0
|
98 |
|
sl@0
|
99 |
typedef enum {
|
sl@0
|
100 |
/* Mode settings */
|
sl@0
|
101 |
VG_MATRIX_MODE = 0x1100,
|
sl@0
|
102 |
VG_FILL_RULE = 0x1101,
|
sl@0
|
103 |
VG_IMAGE_QUALITY = 0x1102,
|
sl@0
|
104 |
VG_RENDERING_QUALITY = 0x1103,
|
sl@0
|
105 |
VG_BLEND_MODE = 0x1104,
|
sl@0
|
106 |
VG_IMAGE_MODE = 0x1105,
|
sl@0
|
107 |
|
sl@0
|
108 |
/* Scissoring rectangles */
|
sl@0
|
109 |
VG_SCISSOR_RECTS = 0x1106,
|
sl@0
|
110 |
|
sl@0
|
111 |
/* Color Transformation */
|
sl@0
|
112 |
VG_COLOR_TRANSFORM = 0x1170,
|
sl@0
|
113 |
VG_COLOR_TRANSFORM_VALUES = 0x1171,
|
sl@0
|
114 |
|
sl@0
|
115 |
/* Stroke parameters */
|
sl@0
|
116 |
VG_STROKE_LINE_WIDTH = 0x1110,
|
sl@0
|
117 |
VG_STROKE_CAP_STYLE = 0x1111,
|
sl@0
|
118 |
VG_STROKE_JOIN_STYLE = 0x1112,
|
sl@0
|
119 |
VG_STROKE_MITER_LIMIT = 0x1113,
|
sl@0
|
120 |
VG_STROKE_DASH_PATTERN = 0x1114,
|
sl@0
|
121 |
VG_STROKE_DASH_PHASE = 0x1115,
|
sl@0
|
122 |
VG_STROKE_DASH_PHASE_RESET = 0x1116,
|
sl@0
|
123 |
|
sl@0
|
124 |
/* Edge fill color for VG_TILE_FILL tiling mode */
|
sl@0
|
125 |
VG_TILE_FILL_COLOR = 0x1120,
|
sl@0
|
126 |
|
sl@0
|
127 |
/* Color for vgClear */
|
sl@0
|
128 |
VG_CLEAR_COLOR = 0x1121,
|
sl@0
|
129 |
|
sl@0
|
130 |
/* Glyph origin */
|
sl@0
|
131 |
VG_GLYPH_ORIGIN = 0x1122,
|
sl@0
|
132 |
|
sl@0
|
133 |
/* Enable/disable alpha masking and scissoring */
|
sl@0
|
134 |
VG_MASKING = 0x1130,
|
sl@0
|
135 |
VG_SCISSORING = 0x1131,
|
sl@0
|
136 |
|
sl@0
|
137 |
/* Pixel layout information */
|
sl@0
|
138 |
VG_PIXEL_LAYOUT = 0x1140,
|
sl@0
|
139 |
VG_SCREEN_LAYOUT = 0x1141,
|
sl@0
|
140 |
|
sl@0
|
141 |
/* Source format selection for image filters */
|
sl@0
|
142 |
VG_FILTER_FORMAT_LINEAR = 0x1150,
|
sl@0
|
143 |
VG_FILTER_FORMAT_PREMULTIPLIED = 0x1151,
|
sl@0
|
144 |
|
sl@0
|
145 |
/* Destination write enable mask for image filters */
|
sl@0
|
146 |
VG_FILTER_CHANNEL_MASK = 0x1152,
|
sl@0
|
147 |
|
sl@0
|
148 |
/* Implementation limits (read-only) */
|
sl@0
|
149 |
VG_MAX_SCISSOR_RECTS = 0x1160,
|
sl@0
|
150 |
VG_MAX_DASH_COUNT = 0x1161,
|
sl@0
|
151 |
VG_MAX_KERNEL_SIZE = 0x1162,
|
sl@0
|
152 |
VG_MAX_SEPARABLE_KERNEL_SIZE = 0x1163,
|
sl@0
|
153 |
VG_MAX_COLOR_RAMP_STOPS = 0x1164,
|
sl@0
|
154 |
VG_MAX_IMAGE_WIDTH = 0x1165,
|
sl@0
|
155 |
VG_MAX_IMAGE_HEIGHT = 0x1166,
|
sl@0
|
156 |
VG_MAX_IMAGE_PIXELS = 0x1167,
|
sl@0
|
157 |
VG_MAX_IMAGE_BYTES = 0x1168,
|
sl@0
|
158 |
VG_MAX_FLOAT = 0x1169,
|
sl@0
|
159 |
VG_MAX_GAUSSIAN_STD_DEVIATION = 0x116A
|
sl@0
|
160 |
} VGParamType;
|
sl@0
|
161 |
|
sl@0
|
162 |
typedef enum {
|
sl@0
|
163 |
VG_RENDERING_QUALITY_NONANTIALIASED = 0x1200,
|
sl@0
|
164 |
VG_RENDERING_QUALITY_FASTER = 0x1201,
|
sl@0
|
165 |
VG_RENDERING_QUALITY_BETTER = 0x1202 /* Default */
|
sl@0
|
166 |
} VGRenderingQuality;
|
sl@0
|
167 |
|
sl@0
|
168 |
typedef enum {
|
sl@0
|
169 |
VG_PIXEL_LAYOUT_UNKNOWN = 0x1300,
|
sl@0
|
170 |
VG_PIXEL_LAYOUT_RGB_VERTICAL = 0x1301,
|
sl@0
|
171 |
VG_PIXEL_LAYOUT_BGR_VERTICAL = 0x1302,
|
sl@0
|
172 |
VG_PIXEL_LAYOUT_RGB_HORIZONTAL = 0x1303,
|
sl@0
|
173 |
VG_PIXEL_LAYOUT_BGR_HORIZONTAL = 0x1304
|
sl@0
|
174 |
} VGPixelLayout;
|
sl@0
|
175 |
|
sl@0
|
176 |
typedef enum {
|
sl@0
|
177 |
VG_MATRIX_PATH_USER_TO_SURFACE = 0x1400,
|
sl@0
|
178 |
VG_MATRIX_IMAGE_USER_TO_SURFACE = 0x1401,
|
sl@0
|
179 |
VG_MATRIX_FILL_PAINT_TO_USER = 0x1402,
|
sl@0
|
180 |
VG_MATRIX_STROKE_PAINT_TO_USER = 0x1403,
|
sl@0
|
181 |
VG_MATRIX_GLYPH_USER_TO_SURFACE = 0x1404
|
sl@0
|
182 |
} VGMatrixMode;
|
sl@0
|
183 |
|
sl@0
|
184 |
typedef enum {
|
sl@0
|
185 |
VG_CLEAR_MASK = 0x1500,
|
sl@0
|
186 |
VG_FILL_MASK = 0x1501,
|
sl@0
|
187 |
VG_SET_MASK = 0x1502,
|
sl@0
|
188 |
VG_UNION_MASK = 0x1503,
|
sl@0
|
189 |
VG_INTERSECT_MASK = 0x1504,
|
sl@0
|
190 |
VG_SUBTRACT_MASK = 0x1505
|
sl@0
|
191 |
} VGMaskOperation;
|
sl@0
|
192 |
|
sl@0
|
193 |
#define VG_PATH_FORMAT_STANDARD 0
|
sl@0
|
194 |
|
sl@0
|
195 |
typedef enum {
|
sl@0
|
196 |
VG_PATH_DATATYPE_INVALID = -1,
|
sl@0
|
197 |
VG_PATH_DATATYPE_S_8 = 0,
|
sl@0
|
198 |
VG_PATH_DATATYPE_S_16 = 1,
|
sl@0
|
199 |
VG_PATH_DATATYPE_S_32 = 2,
|
sl@0
|
200 |
VG_PATH_DATATYPE_F = 3
|
sl@0
|
201 |
} VGPathDatatype;
|
sl@0
|
202 |
|
sl@0
|
203 |
typedef enum {
|
sl@0
|
204 |
VG_ABSOLUTE = 0,
|
sl@0
|
205 |
VG_RELATIVE = 1
|
sl@0
|
206 |
} VGPathAbsRel;
|
sl@0
|
207 |
|
sl@0
|
208 |
typedef enum {
|
sl@0
|
209 |
VG_CLOSE_PATH = ( 0 << 1),
|
sl@0
|
210 |
VG_MOVE_TO = ( 1 << 1),
|
sl@0
|
211 |
VG_LINE_TO = ( 2 << 1),
|
sl@0
|
212 |
VG_HLINE_TO = ( 3 << 1),
|
sl@0
|
213 |
VG_VLINE_TO = ( 4 << 1),
|
sl@0
|
214 |
VG_QUAD_TO = ( 5 << 1),
|
sl@0
|
215 |
VG_CUBIC_TO = ( 6 << 1),
|
sl@0
|
216 |
VG_SQUAD_TO = ( 7 << 1),
|
sl@0
|
217 |
VG_SCUBIC_TO = ( 8 << 1),
|
sl@0
|
218 |
VG_SCCWARC_TO = ( 9 << 1),
|
sl@0
|
219 |
VG_SCWARC_TO = (10 << 1),
|
sl@0
|
220 |
VG_LCCWARC_TO = (11 << 1),
|
sl@0
|
221 |
VG_LCWARC_TO = (12 << 1)
|
sl@0
|
222 |
} VGPathSegment;
|
sl@0
|
223 |
|
sl@0
|
224 |
typedef enum {
|
sl@0
|
225 |
VG_MOVE_TO_ABS = VG_MOVE_TO | VG_ABSOLUTE,
|
sl@0
|
226 |
VG_MOVE_TO_REL = VG_MOVE_TO | VG_RELATIVE,
|
sl@0
|
227 |
VG_LINE_TO_ABS = VG_LINE_TO | VG_ABSOLUTE,
|
sl@0
|
228 |
VG_LINE_TO_REL = VG_LINE_TO | VG_RELATIVE,
|
sl@0
|
229 |
VG_HLINE_TO_ABS = VG_HLINE_TO | VG_ABSOLUTE,
|
sl@0
|
230 |
VG_HLINE_TO_REL = VG_HLINE_TO | VG_RELATIVE,
|
sl@0
|
231 |
VG_VLINE_TO_ABS = VG_VLINE_TO | VG_ABSOLUTE,
|
sl@0
|
232 |
VG_VLINE_TO_REL = VG_VLINE_TO | VG_RELATIVE,
|
sl@0
|
233 |
VG_QUAD_TO_ABS = VG_QUAD_TO | VG_ABSOLUTE,
|
sl@0
|
234 |
VG_QUAD_TO_REL = VG_QUAD_TO | VG_RELATIVE,
|
sl@0
|
235 |
VG_CUBIC_TO_ABS = VG_CUBIC_TO | VG_ABSOLUTE,
|
sl@0
|
236 |
VG_CUBIC_TO_REL = VG_CUBIC_TO | VG_RELATIVE,
|
sl@0
|
237 |
VG_SQUAD_TO_ABS = VG_SQUAD_TO | VG_ABSOLUTE,
|
sl@0
|
238 |
VG_SQUAD_TO_REL = VG_SQUAD_TO | VG_RELATIVE,
|
sl@0
|
239 |
VG_SCUBIC_TO_ABS = VG_SCUBIC_TO | VG_ABSOLUTE,
|
sl@0
|
240 |
VG_SCUBIC_TO_REL = VG_SCUBIC_TO | VG_RELATIVE,
|
sl@0
|
241 |
VG_SCCWARC_TO_ABS = VG_SCCWARC_TO | VG_ABSOLUTE,
|
sl@0
|
242 |
VG_SCCWARC_TO_REL = VG_SCCWARC_TO | VG_RELATIVE,
|
sl@0
|
243 |
VG_SCWARC_TO_ABS = VG_SCWARC_TO | VG_ABSOLUTE,
|
sl@0
|
244 |
VG_SCWARC_TO_REL = VG_SCWARC_TO | VG_RELATIVE,
|
sl@0
|
245 |
VG_LCCWARC_TO_ABS = VG_LCCWARC_TO | VG_ABSOLUTE,
|
sl@0
|
246 |
VG_LCCWARC_TO_REL = VG_LCCWARC_TO | VG_RELATIVE,
|
sl@0
|
247 |
VG_LCWARC_TO_ABS = VG_LCWARC_TO | VG_ABSOLUTE,
|
sl@0
|
248 |
VG_LCWARC_TO_REL = VG_LCWARC_TO | VG_RELATIVE
|
sl@0
|
249 |
} VGPathCommand;
|
sl@0
|
250 |
|
sl@0
|
251 |
typedef VGHandle VGPath;
|
sl@0
|
252 |
|
sl@0
|
253 |
typedef enum {
|
sl@0
|
254 |
VG_PATH_CAPABILITY_APPEND_FROM = (1 << 0),
|
sl@0
|
255 |
VG_PATH_CAPABILITY_APPEND_TO = (1 << 1),
|
sl@0
|
256 |
VG_PATH_CAPABILITY_MODIFY = (1 << 2),
|
sl@0
|
257 |
VG_PATH_CAPABILITY_TRANSFORM_FROM = (1 << 3),
|
sl@0
|
258 |
VG_PATH_CAPABILITY_TRANSFORM_TO = (1 << 4),
|
sl@0
|
259 |
VG_PATH_CAPABILITY_INTERPOLATE_FROM = (1 << 5),
|
sl@0
|
260 |
VG_PATH_CAPABILITY_INTERPOLATE_TO = (1 << 6),
|
sl@0
|
261 |
VG_PATH_CAPABILITY_PATH_LENGTH = (1 << 7),
|
sl@0
|
262 |
VG_PATH_CAPABILITY_POINT_ALONG_PATH = (1 << 8),
|
sl@0
|
263 |
VG_PATH_CAPABILITY_TANGENT_ALONG_PATH = (1 << 9),
|
sl@0
|
264 |
VG_PATH_CAPABILITY_PATH_BOUNDS = (1 << 10),
|
sl@0
|
265 |
VG_PATH_CAPABILITY_PATH_TRANSFORMED_BOUNDS = (1 << 11),
|
sl@0
|
266 |
VG_PATH_CAPABILITY_ALL = (1 << 12) - 1
|
sl@0
|
267 |
} VGPathCapabilities;
|
sl@0
|
268 |
|
sl@0
|
269 |
typedef enum {
|
sl@0
|
270 |
VG_PATH_FORMAT = 0x1600,
|
sl@0
|
271 |
VG_PATH_DATATYPE = 0x1601,
|
sl@0
|
272 |
VG_PATH_SCALE = 0x1602,
|
sl@0
|
273 |
VG_PATH_BIAS = 0x1603,
|
sl@0
|
274 |
VG_PATH_NUM_SEGMENTS = 0x1604,
|
sl@0
|
275 |
VG_PATH_NUM_COORDS = 0x1605
|
sl@0
|
276 |
} VGPathParamType;
|
sl@0
|
277 |
|
sl@0
|
278 |
typedef enum {
|
sl@0
|
279 |
VG_CAP_BUTT = 0x1700,
|
sl@0
|
280 |
VG_CAP_ROUND = 0x1701,
|
sl@0
|
281 |
VG_CAP_SQUARE = 0x1702
|
sl@0
|
282 |
} VGCapStyle;
|
sl@0
|
283 |
|
sl@0
|
284 |
typedef enum {
|
sl@0
|
285 |
VG_JOIN_MITER = 0x1800,
|
sl@0
|
286 |
VG_JOIN_ROUND = 0x1801,
|
sl@0
|
287 |
VG_JOIN_BEVEL = 0x1802
|
sl@0
|
288 |
} VGJoinStyle;
|
sl@0
|
289 |
|
sl@0
|
290 |
typedef enum {
|
sl@0
|
291 |
VG_EVEN_ODD = 0x1900,
|
sl@0
|
292 |
VG_NON_ZERO = 0x1901
|
sl@0
|
293 |
} VGFillRule;
|
sl@0
|
294 |
|
sl@0
|
295 |
typedef enum {
|
sl@0
|
296 |
VG_STROKE_PATH = (1 << 0),
|
sl@0
|
297 |
VG_FILL_PATH = (1 << 1)
|
sl@0
|
298 |
} VGPaintMode;
|
sl@0
|
299 |
|
sl@0
|
300 |
typedef VGHandle VGPaint;
|
sl@0
|
301 |
|
sl@0
|
302 |
typedef enum {
|
sl@0
|
303 |
/* Color paint parameters */
|
sl@0
|
304 |
VG_PAINT_TYPE = 0x1A00,
|
sl@0
|
305 |
VG_PAINT_COLOR = 0x1A01,
|
sl@0
|
306 |
VG_PAINT_COLOR_RAMP_SPREAD_MODE = 0x1A02,
|
sl@0
|
307 |
VG_PAINT_COLOR_RAMP_PREMULTIPLIED = 0x1A07,
|
sl@0
|
308 |
VG_PAINT_COLOR_RAMP_STOPS = 0x1A03,
|
sl@0
|
309 |
|
sl@0
|
310 |
/* Linear gradient paint parameters */
|
sl@0
|
311 |
VG_PAINT_LINEAR_GRADIENT = 0x1A04,
|
sl@0
|
312 |
|
sl@0
|
313 |
/* Radial gradient paint parameters */
|
sl@0
|
314 |
VG_PAINT_RADIAL_GRADIENT = 0x1A05,
|
sl@0
|
315 |
|
sl@0
|
316 |
/* Pattern paint parameters */
|
sl@0
|
317 |
VG_PAINT_PATTERN_TILING_MODE = 0x1A06
|
sl@0
|
318 |
} VGPaintParamType;
|
sl@0
|
319 |
|
sl@0
|
320 |
typedef enum {
|
sl@0
|
321 |
VG_PAINT_TYPE_COLOR = 0x1B00,
|
sl@0
|
322 |
VG_PAINT_TYPE_LINEAR_GRADIENT = 0x1B01,
|
sl@0
|
323 |
VG_PAINT_TYPE_RADIAL_GRADIENT = 0x1B02,
|
sl@0
|
324 |
VG_PAINT_TYPE_PATTERN = 0x1B03
|
sl@0
|
325 |
} VGPaintType;
|
sl@0
|
326 |
|
sl@0
|
327 |
typedef enum {
|
sl@0
|
328 |
VG_COLOR_RAMP_SPREAD_PAD = 0x1C00,
|
sl@0
|
329 |
VG_COLOR_RAMP_SPREAD_REPEAT = 0x1C01,
|
sl@0
|
330 |
VG_COLOR_RAMP_SPREAD_REFLECT = 0x1C02
|
sl@0
|
331 |
} VGColorRampSpreadMode;
|
sl@0
|
332 |
|
sl@0
|
333 |
typedef enum {
|
sl@0
|
334 |
VG_TILE_FILL = 0x1D00,
|
sl@0
|
335 |
VG_TILE_PAD = 0x1D01,
|
sl@0
|
336 |
VG_TILE_REPEAT = 0x1D02,
|
sl@0
|
337 |
VG_TILE_REFLECT = 0x1D03
|
sl@0
|
338 |
} VGTilingMode;
|
sl@0
|
339 |
|
sl@0
|
340 |
typedef enum {
|
sl@0
|
341 |
/* RGB{A,X} channel ordering */
|
sl@0
|
342 |
VG_IMAGE_FORMAT_INVALID = -1,
|
sl@0
|
343 |
VG_sRGBX_8888 = 0,
|
sl@0
|
344 |
VG_sRGBA_8888 = 1,
|
sl@0
|
345 |
VG_sRGBA_8888_PRE = 2,
|
sl@0
|
346 |
VG_sRGB_565 = 3,
|
sl@0
|
347 |
VG_sRGBA_5551 = 4,
|
sl@0
|
348 |
VG_sRGBA_4444 = 5,
|
sl@0
|
349 |
VG_sL_8 = 6,
|
sl@0
|
350 |
VG_lRGBX_8888 = 7,
|
sl@0
|
351 |
VG_lRGBA_8888 = 8,
|
sl@0
|
352 |
VG_lRGBA_8888_PRE = 9,
|
sl@0
|
353 |
VG_lL_8 = 10,
|
sl@0
|
354 |
VG_A_8 = 11,
|
sl@0
|
355 |
VG_BW_1 = 12,
|
sl@0
|
356 |
VG_A_1 = 13,
|
sl@0
|
357 |
VG_A_4 = 14,
|
sl@0
|
358 |
|
sl@0
|
359 |
/* {A,X}RGB channel ordering */
|
sl@0
|
360 |
VG_sXRGB_8888 = 0 | (1 << 6),
|
sl@0
|
361 |
VG_sARGB_8888 = 1 | (1 << 6),
|
sl@0
|
362 |
VG_sARGB_8888_PRE = 2 | (1 << 6),
|
sl@0
|
363 |
VG_sARGB_1555 = 4 | (1 << 6),
|
sl@0
|
364 |
VG_sARGB_4444 = 5 | (1 << 6),
|
sl@0
|
365 |
VG_lXRGB_8888 = 7 | (1 << 6),
|
sl@0
|
366 |
VG_lARGB_8888 = 8 | (1 << 6),
|
sl@0
|
367 |
VG_lARGB_8888_PRE = 9 | (1 << 6),
|
sl@0
|
368 |
|
sl@0
|
369 |
/* BGR{A,X} channel ordering */
|
sl@0
|
370 |
VG_sBGRX_8888 = 0 | (1 << 7),
|
sl@0
|
371 |
VG_sBGRA_8888 = 1 | (1 << 7),
|
sl@0
|
372 |
VG_sBGRA_8888_PRE = 2 | (1 << 7),
|
sl@0
|
373 |
VG_sBGR_565 = 3 | (1 << 7),
|
sl@0
|
374 |
VG_sBGRA_5551 = 4 | (1 << 7),
|
sl@0
|
375 |
VG_sBGRA_4444 = 5 | (1 << 7),
|
sl@0
|
376 |
VG_lBGRX_8888 = 7 | (1 << 7),
|
sl@0
|
377 |
VG_lBGRA_8888 = 8 | (1 << 7),
|
sl@0
|
378 |
VG_lBGRA_8888_PRE = 9 | (1 << 7),
|
sl@0
|
379 |
|
sl@0
|
380 |
/* {A,X}BGR channel ordering */
|
sl@0
|
381 |
VG_sXBGR_8888 = 0 | (1 << 6) | (1 << 7),
|
sl@0
|
382 |
VG_sABGR_8888 = 1 | (1 << 6) | (1 << 7),
|
sl@0
|
383 |
VG_sABGR_8888_PRE = 2 | (1 << 6) | (1 << 7),
|
sl@0
|
384 |
VG_sABGR_1555 = 4 | (1 << 6) | (1 << 7),
|
sl@0
|
385 |
VG_sABGR_4444 = 5 | (1 << 6) | (1 << 7),
|
sl@0
|
386 |
VG_lXBGR_8888 = 7 | (1 << 6) | (1 << 7),
|
sl@0
|
387 |
VG_lABGR_8888 = 8 | (1 << 6) | (1 << 7),
|
sl@0
|
388 |
VG_lABGR_8888_PRE = 9 | (1 << 6) | (1 << 7)
|
sl@0
|
389 |
} VGImageFormat;
|
sl@0
|
390 |
|
sl@0
|
391 |
typedef VGHandle VGImage;
|
sl@0
|
392 |
typedef int VGeglImageKHR;
|
sl@0
|
393 |
|
sl@0
|
394 |
typedef enum {
|
sl@0
|
395 |
VG_IMAGE_QUALITY_NONANTIALIASED = (1 << 0),
|
sl@0
|
396 |
VG_IMAGE_QUALITY_FASTER = (1 << 1),
|
sl@0
|
397 |
VG_IMAGE_QUALITY_BETTER = (1 << 2)
|
sl@0
|
398 |
} VGImageQuality;
|
sl@0
|
399 |
|
sl@0
|
400 |
typedef enum {
|
sl@0
|
401 |
VG_IMAGE_FORMAT = 0x1E00,
|
sl@0
|
402 |
VG_IMAGE_WIDTH = 0x1E01,
|
sl@0
|
403 |
VG_IMAGE_HEIGHT = 0x1E02
|
sl@0
|
404 |
} VGImageParamType;
|
sl@0
|
405 |
|
sl@0
|
406 |
typedef enum {
|
sl@0
|
407 |
VG_DRAW_IMAGE_NORMAL = 0x1F00,
|
sl@0
|
408 |
VG_DRAW_IMAGE_MULTIPLY = 0x1F01,
|
sl@0
|
409 |
VG_DRAW_IMAGE_STENCIL = 0x1F02
|
sl@0
|
410 |
} VGImageMode;
|
sl@0
|
411 |
|
sl@0
|
412 |
typedef enum {
|
sl@0
|
413 |
VG_RED = (1 << 3),
|
sl@0
|
414 |
VG_GREEN = (1 << 2),
|
sl@0
|
415 |
VG_BLUE = (1 << 1),
|
sl@0
|
416 |
VG_ALPHA = (1 << 0)
|
sl@0
|
417 |
} VGImageChannel;
|
sl@0
|
418 |
|
sl@0
|
419 |
typedef enum {
|
sl@0
|
420 |
VG_BLEND_SRC = 0x2000,
|
sl@0
|
421 |
VG_BLEND_SRC_OVER = 0x2001,
|
sl@0
|
422 |
VG_BLEND_DST_OVER = 0x2002,
|
sl@0
|
423 |
VG_BLEND_SRC_IN = 0x2003,
|
sl@0
|
424 |
VG_BLEND_DST_IN = 0x2004,
|
sl@0
|
425 |
VG_BLEND_MULTIPLY = 0x2005,
|
sl@0
|
426 |
VG_BLEND_SCREEN = 0x2006,
|
sl@0
|
427 |
VG_BLEND_DARKEN = 0x2007,
|
sl@0
|
428 |
VG_BLEND_LIGHTEN = 0x2008,
|
sl@0
|
429 |
VG_BLEND_ADDITIVE = 0x2009
|
sl@0
|
430 |
} VGBlendMode;
|
sl@0
|
431 |
|
sl@0
|
432 |
typedef enum {
|
sl@0
|
433 |
VG_IMAGE_FORMAT_QUERY = 0x2100,
|
sl@0
|
434 |
VG_PATH_DATATYPE_QUERY = 0x2101
|
sl@0
|
435 |
} VGHardwareQueryType;
|
sl@0
|
436 |
|
sl@0
|
437 |
typedef enum {
|
sl@0
|
438 |
VG_HARDWARE_ACCELERATED = 0x2200,
|
sl@0
|
439 |
VG_HARDWARE_UNACCELERATED = 0x2201
|
sl@0
|
440 |
} VGHardwareQueryResult;
|
sl@0
|
441 |
|
sl@0
|
442 |
typedef enum {
|
sl@0
|
443 |
VG_VENDOR = 0x2300,
|
sl@0
|
444 |
VG_RENDERER = 0x2301,
|
sl@0
|
445 |
VG_VERSION = 0x2302,
|
sl@0
|
446 |
VG_EXTENSIONS = 0x2303
|
sl@0
|
447 |
} VGStringID;
|
sl@0
|
448 |
|
sl@0
|
449 |
typedef enum {
|
sl@0
|
450 |
VG_FONT_NUM_GLYPHS = 0x2F00
|
sl@0
|
451 |
} VGFontParamType;
|
sl@0
|
452 |
|
sl@0
|
453 |
|
sl@0
|
454 |
/* Function Prototypes */
|
sl@0
|
455 |
|
sl@0
|
456 |
#ifndef VG_API_CALL
|
sl@0
|
457 |
# if defined(SYMBIAN_VG_DLL_EXPORTS)
|
sl@0
|
458 |
# define VG_API_CALL EXPORT_C
|
sl@0
|
459 |
# else
|
sl@0
|
460 |
# define VG_API_CALL IMPORT_C
|
sl@0
|
461 |
# endif //defined(SYMBIAN_VG_DLL_EXPORTS)
|
sl@0
|
462 |
#endif
|
sl@0
|
463 |
#ifndef VG_APIENTRY
|
sl@0
|
464 |
#define VG_APIENTRY /* nothing */
|
sl@0
|
465 |
#endif
|
sl@0
|
466 |
#ifndef VG_APIEXIT
|
sl@0
|
467 |
#define VG_APIEXIT __SOFTFP
|
sl@0
|
468 |
#endif
|
sl@0
|
469 |
|
sl@0
|
470 |
VG_API_CALL VGErrorCode VG_APIENTRY
|
sl@0
|
471 |
vgGetError(void) VG_APIEXIT;
|
sl@0
|
472 |
|
sl@0
|
473 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
474 |
vgFlush(void) VG_APIEXIT;
|
sl@0
|
475 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
476 |
vgFinish(void) VG_APIEXIT;
|
sl@0
|
477 |
|
sl@0
|
478 |
/* Getters and Setters */
|
sl@0
|
479 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
480 |
vgSetf (VGParamType type, VGfloat value) VG_APIEXIT;
|
sl@0
|
481 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
482 |
vgSeti (VGParamType type, VGint value) VG_APIEXIT;
|
sl@0
|
483 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
484 |
vgSetfv(VGParamType type, VGint count,
|
sl@0
|
485 |
const VGfloat * values) VG_APIEXIT;
|
sl@0
|
486 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
487 |
vgSetiv(VGParamType type, VGint count,
|
sl@0
|
488 |
const VGint * values) VG_APIEXIT;
|
sl@0
|
489 |
VG_API_CALL VGfloat VG_APIENTRY
|
sl@0
|
490 |
vgGetf(VGParamType type) VG_APIEXIT;
|
sl@0
|
491 |
VG_API_CALL VGint VG_APIENTRY
|
sl@0
|
492 |
vgGeti(VGParamType type) VG_APIEXIT;
|
sl@0
|
493 |
VG_API_CALL VGint VG_APIENTRY
|
sl@0
|
494 |
vgGetVectorSize(VGParamType type) VG_APIEXIT;
|
sl@0
|
495 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
496 |
vgGetfv(VGParamType type, VGint count,
|
sl@0
|
497 |
VGfloat * values) VG_APIEXIT;
|
sl@0
|
498 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
499 |
vgGetiv(VGParamType type, VGint count,
|
sl@0
|
500 |
VGint * values) VG_APIEXIT;
|
sl@0
|
501 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
502 |
vgSetParameterf(VGHandle object,
|
sl@0
|
503 |
VGint paramType,
|
sl@0
|
504 |
VGfloat value) VG_APIEXIT;
|
sl@0
|
505 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
506 |
vgSetParameteri(VGHandle object,
|
sl@0
|
507 |
VGint paramType,
|
sl@0
|
508 |
VGint value) VG_APIEXIT;
|
sl@0
|
509 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
510 |
vgSetParameterfv(VGHandle object,
|
sl@0
|
511 |
VGint paramType,
|
sl@0
|
512 |
VGint count,
|
sl@0
|
513 |
const VGfloat * values) VG_APIEXIT;
|
sl@0
|
514 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
515 |
vgSetParameteriv(VGHandle object,
|
sl@0
|
516 |
VGint paramType,
|
sl@0
|
517 |
VGint count,
|
sl@0
|
518 |
const VGint * values) VG_APIEXIT;
|
sl@0
|
519 |
|
sl@0
|
520 |
VG_API_CALL VGfloat VG_APIENTRY
|
sl@0
|
521 |
vgGetParameterf(VGHandle object,
|
sl@0
|
522 |
VGint paramType) VG_APIEXIT;
|
sl@0
|
523 |
VG_API_CALL VGint VG_APIENTRY
|
sl@0
|
524 |
vgGetParameteri(VGHandle object,
|
sl@0
|
525 |
VGint paramType) VG_APIEXIT;
|
sl@0
|
526 |
VG_API_CALL VGint VG_APIENTRY
|
sl@0
|
527 |
vgGetParameterVectorSize(VGHandle object,
|
sl@0
|
528 |
VGint paramType) VG_APIEXIT;
|
sl@0
|
529 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
530 |
vgGetParameterfv(VGHandle object,
|
sl@0
|
531 |
VGint paramType,
|
sl@0
|
532 |
VGint count,
|
sl@0
|
533 |
VGfloat * values) VG_APIEXIT;
|
sl@0
|
534 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
535 |
vgGetParameteriv(VGHandle object,
|
sl@0
|
536 |
VGint paramType,
|
sl@0
|
537 |
VGint count,
|
sl@0
|
538 |
VGint * values) VG_APIEXIT;
|
sl@0
|
539 |
|
sl@0
|
540 |
/* Matrix Manipulation */
|
sl@0
|
541 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
542 |
vgLoadIdentity(void) VG_APIEXIT;
|
sl@0
|
543 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
544 |
vgLoadMatrix(const VGfloat * m) VG_APIEXIT;
|
sl@0
|
545 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
546 |
vgGetMatrix(VGfloat * m) VG_APIEXIT;
|
sl@0
|
547 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
548 |
vgMultMatrix(const VGfloat * m) VG_APIEXIT;
|
sl@0
|
549 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
550 |
vgTranslate(VGfloat tx, VGfloat ty) VG_APIEXIT;
|
sl@0
|
551 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
552 |
vgScale(VGfloat sx, VGfloat sy) VG_APIEXIT;
|
sl@0
|
553 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
554 |
vgShear(VGfloat shx, VGfloat shy) VG_APIEXIT;
|
sl@0
|
555 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
556 |
vgRotate(VGfloat angle) VG_APIEXIT;
|
sl@0
|
557 |
|
sl@0
|
558 |
/* Masking and Clearing */
|
sl@0
|
559 |
typedef VGHandle VGMaskLayer;
|
sl@0
|
560 |
|
sl@0
|
561 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
562 |
vgMask(VGHandle mask, VGMaskOperation operation,
|
sl@0
|
563 |
VGint x, VGint y,
|
sl@0
|
564 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
565 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
566 |
vgRenderToMask(VGPath path,
|
sl@0
|
567 |
VGbitfield paintModes,
|
sl@0
|
568 |
VGMaskOperation operation) VG_APIEXIT;
|
sl@0
|
569 |
VG_API_CALL VGMaskLayer VG_APIENTRY
|
sl@0
|
570 |
vgCreateMaskLayer(VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
571 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
572 |
vgDestroyMaskLayer(VGMaskLayer maskLayer) VG_APIEXIT;
|
sl@0
|
573 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
574 |
vgFillMaskLayer(VGMaskLayer maskLayer,
|
sl@0
|
575 |
VGint x, VGint y,
|
sl@0
|
576 |
VGint width, VGint height,
|
sl@0
|
577 |
VGfloat value) VG_APIEXIT;
|
sl@0
|
578 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
579 |
vgCopyMask(VGMaskLayer maskLayer,
|
sl@0
|
580 |
VGint sx, VGint sy,
|
sl@0
|
581 |
VGint dx, VGint dy,
|
sl@0
|
582 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
583 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
584 |
vgClear(VGint x, VGint y,
|
sl@0
|
585 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
586 |
|
sl@0
|
587 |
/* Paths */
|
sl@0
|
588 |
VG_API_CALL VGPath VG_APIENTRY
|
sl@0
|
589 |
vgCreatePath(VGint pathFormat,
|
sl@0
|
590 |
VGPathDatatype datatype,
|
sl@0
|
591 |
VGfloat scale, VGfloat bias,
|
sl@0
|
592 |
VGint segmentCapacityHint,
|
sl@0
|
593 |
VGint coordCapacityHint,
|
sl@0
|
594 |
VGbitfield capabilities) VG_APIEXIT;
|
sl@0
|
595 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
596 |
vgClearPath(VGPath path, VGbitfield capabilities) VG_APIEXIT;
|
sl@0
|
597 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
598 |
vgDestroyPath(VGPath path) VG_APIEXIT;
|
sl@0
|
599 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
600 |
vgRemovePathCapabilities(VGPath path,
|
sl@0
|
601 |
VGbitfield capabilities) VG_APIEXIT;
|
sl@0
|
602 |
VG_API_CALL VGbitfield VG_APIENTRY
|
sl@0
|
603 |
vgGetPathCapabilities(VGPath path) VG_APIEXIT;
|
sl@0
|
604 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
605 |
vgAppendPath(VGPath dstPath, VGPath srcPath) VG_APIEXIT;
|
sl@0
|
606 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
607 |
vgAppendPathData(VGPath dstPath,
|
sl@0
|
608 |
VGint numSegments,
|
sl@0
|
609 |
const VGubyte * pathSegments,
|
sl@0
|
610 |
const void * pathData) VG_APIEXIT;
|
sl@0
|
611 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
612 |
vgModifyPathCoords(VGPath dstPath,
|
sl@0
|
613 |
VGint startIndex,
|
sl@0
|
614 |
VGint numSegments,
|
sl@0
|
615 |
const void * pathData) VG_APIEXIT;
|
sl@0
|
616 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
617 |
vgTransformPath(VGPath dstPath, VGPath srcPath) VG_APIEXIT;
|
sl@0
|
618 |
VG_API_CALL VGboolean VG_APIENTRY
|
sl@0
|
619 |
vgInterpolatePath(VGPath dstPath,
|
sl@0
|
620 |
VGPath startPath,
|
sl@0
|
621 |
VGPath endPath,
|
sl@0
|
622 |
VGfloat amount) VG_APIEXIT;
|
sl@0
|
623 |
VG_API_CALL VGfloat VG_APIENTRY
|
sl@0
|
624 |
vgPathLength(VGPath path,
|
sl@0
|
625 |
VGint startSegment,
|
sl@0
|
626 |
VGint numSegments) VG_APIEXIT;
|
sl@0
|
627 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
628 |
vgPointAlongPath(VGPath path,
|
sl@0
|
629 |
VGint startSegment,
|
sl@0
|
630 |
VGint numSegments,
|
sl@0
|
631 |
VGfloat distance,
|
sl@0
|
632 |
VGfloat * x, VGfloat * y,
|
sl@0
|
633 |
VGfloat * tangentX,
|
sl@0
|
634 |
VGfloat * tangentY) VG_APIEXIT;
|
sl@0
|
635 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
636 |
vgPathBounds(VGPath path,
|
sl@0
|
637 |
VGfloat * minX,
|
sl@0
|
638 |
VGfloat * minY,
|
sl@0
|
639 |
VGfloat * width,
|
sl@0
|
640 |
VGfloat * height) VG_APIEXIT;
|
sl@0
|
641 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
642 |
vgPathTransformedBounds(VGPath path,
|
sl@0
|
643 |
VGfloat * minX,
|
sl@0
|
644 |
VGfloat * minY,
|
sl@0
|
645 |
VGfloat * width,
|
sl@0
|
646 |
VGfloat * height) VG_APIEXIT;
|
sl@0
|
647 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
648 |
vgDrawPath(VGPath path, VGbitfield paintModes) VG_APIEXIT;
|
sl@0
|
649 |
|
sl@0
|
650 |
/* Paint */
|
sl@0
|
651 |
VG_API_CALL VGPaint VG_APIENTRY
|
sl@0
|
652 |
vgCreatePaint(void) VG_APIEXIT;
|
sl@0
|
653 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
654 |
vgDestroyPaint(VGPaint paint) VG_APIEXIT;
|
sl@0
|
655 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
656 |
vgSetPaint(VGPaint paint, VGbitfield paintModes) VG_APIEXIT;
|
sl@0
|
657 |
VG_API_CALL VGPaint VG_APIENTRY
|
sl@0
|
658 |
vgGetPaint(VGPaintMode paintMode) VG_APIEXIT;
|
sl@0
|
659 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
660 |
vgSetColor(VGPaint paint, VGuint rgba) VG_APIEXIT;
|
sl@0
|
661 |
VG_API_CALL VGuint VG_APIENTRY
|
sl@0
|
662 |
vgGetColor(VGPaint paint) VG_APIEXIT;
|
sl@0
|
663 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
664 |
vgPaintPattern(VGPaint paint, VGImage pattern) VG_APIEXIT;
|
sl@0
|
665 |
|
sl@0
|
666 |
/* Images */
|
sl@0
|
667 |
VG_API_CALL VGImage VG_APIENTRY
|
sl@0
|
668 |
vgCreateImage(VGImageFormat format,
|
sl@0
|
669 |
VGint width, VGint height,
|
sl@0
|
670 |
VGbitfield allowedQuality) VG_APIEXIT;
|
sl@0
|
671 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
672 |
vgDestroyImage(VGImage image) VG_APIEXIT;
|
sl@0
|
673 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
674 |
vgClearImage(VGImage image,
|
sl@0
|
675 |
VGint x, VGint y,
|
sl@0
|
676 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
677 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
678 |
vgImageSubData(VGImage image,
|
sl@0
|
679 |
const void * data,
|
sl@0
|
680 |
VGint dataStride,
|
sl@0
|
681 |
VGImageFormat dataFormat,
|
sl@0
|
682 |
VGint x, VGint y,
|
sl@0
|
683 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
684 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
685 |
vgGetImageSubData(VGImage image,
|
sl@0
|
686 |
void * data,
|
sl@0
|
687 |
VGint dataStride,
|
sl@0
|
688 |
VGImageFormat dataFormat,
|
sl@0
|
689 |
VGint x, VGint y,
|
sl@0
|
690 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
691 |
VG_API_CALL VGImage VG_APIENTRY
|
sl@0
|
692 |
vgChildImage(VGImage parent,
|
sl@0
|
693 |
VGint x, VGint y,
|
sl@0
|
694 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
695 |
VG_API_CALL VGImage VG_APIENTRY
|
sl@0
|
696 |
vgGetParent(VGImage image) VG_APIEXIT;
|
sl@0
|
697 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
698 |
vgCopyImage(VGImage dst, VGint dx, VGint dy,
|
sl@0
|
699 |
VGImage src, VGint sx, VGint sy,
|
sl@0
|
700 |
VGint width, VGint height,
|
sl@0
|
701 |
VGboolean dither) VG_APIEXIT;
|
sl@0
|
702 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
703 |
vgDrawImage(VGImage image) VG_APIEXIT;
|
sl@0
|
704 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
705 |
vgSetPixels(VGint dx, VGint dy,
|
sl@0
|
706 |
VGImage src, VGint sx, VGint sy,
|
sl@0
|
707 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
708 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
709 |
vgWritePixels(const void * data, VGint dataStride,
|
sl@0
|
710 |
VGImageFormat dataFormat,
|
sl@0
|
711 |
VGint dx, VGint dy,
|
sl@0
|
712 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
713 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
714 |
vgGetPixels(VGImage dst, VGint dx, VGint dy,
|
sl@0
|
715 |
VGint sx, VGint sy,
|
sl@0
|
716 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
717 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
718 |
vgReadPixels(void * data, VGint dataStride,
|
sl@0
|
719 |
VGImageFormat dataFormat,
|
sl@0
|
720 |
VGint sx, VGint sy,
|
sl@0
|
721 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
722 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
723 |
vgCopyPixels(VGint dx, VGint dy,
|
sl@0
|
724 |
VGint sx, VGint sy,
|
sl@0
|
725 |
VGint width, VGint height) VG_APIEXIT;
|
sl@0
|
726 |
|
sl@0
|
727 |
/* Text */
|
sl@0
|
728 |
typedef VGHandle VGFont;
|
sl@0
|
729 |
|
sl@0
|
730 |
VG_API_CALL VGFont VG_APIENTRY
|
sl@0
|
731 |
vgCreateFont(VGint glyphCapacityHint) VG_APIEXIT;
|
sl@0
|
732 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
733 |
vgDestroyFont(VGFont font) VG_APIEXIT;
|
sl@0
|
734 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
735 |
vgSetGlyphToPath(VGFont font,
|
sl@0
|
736 |
VGuint glyphIndex,
|
sl@0
|
737 |
VGPath path,
|
sl@0
|
738 |
VGboolean isHinted,
|
sl@0
|
739 |
const VGfloat glyphOrigin [2],
|
sl@0
|
740 |
const VGfloat escapement[2]) VG_APIEXIT;
|
sl@0
|
741 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
742 |
vgSetGlyphToImage(VGFont font,
|
sl@0
|
743 |
VGuint glyphIndex,
|
sl@0
|
744 |
VGImage image,
|
sl@0
|
745 |
const VGfloat glyphOrigin [2],
|
sl@0
|
746 |
const VGfloat escapement[2]) VG_APIEXIT;
|
sl@0
|
747 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
748 |
vgClearGlyph(VGFont font,
|
sl@0
|
749 |
VGuint glyphIndex) VG_APIEXIT;
|
sl@0
|
750 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
751 |
vgDrawGlyph(VGFont font,
|
sl@0
|
752 |
VGuint glyphIndex,
|
sl@0
|
753 |
VGbitfield paintModes,
|
sl@0
|
754 |
VGboolean allowAutoHinting) VG_APIEXIT;
|
sl@0
|
755 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
756 |
vgDrawGlyphs(VGFont font,
|
sl@0
|
757 |
VGint glyphCount,
|
sl@0
|
758 |
const VGuint * glyphIndices,
|
sl@0
|
759 |
const VGfloat * adjustments_x,
|
sl@0
|
760 |
const VGfloat * adjustments_y,
|
sl@0
|
761 |
VGbitfield paintModes,
|
sl@0
|
762 |
VGboolean allowAutoHinting) VG_APIEXIT;
|
sl@0
|
763 |
|
sl@0
|
764 |
/* Image Filters */
|
sl@0
|
765 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
766 |
vgColorMatrix(VGImage dst, VGImage src,
|
sl@0
|
767 |
const VGfloat * matrix) VG_APIEXIT;
|
sl@0
|
768 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
769 |
vgConvolve(VGImage dst, VGImage src,
|
sl@0
|
770 |
VGint kernelWidth, VGint kernelHeight,
|
sl@0
|
771 |
VGint shiftX, VGint shiftY,
|
sl@0
|
772 |
const VGshort * kernel,
|
sl@0
|
773 |
VGfloat scale,
|
sl@0
|
774 |
VGfloat bias,
|
sl@0
|
775 |
VGTilingMode tilingMode) VG_APIEXIT;
|
sl@0
|
776 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
777 |
vgSeparableConvolve(VGImage dst, VGImage src,
|
sl@0
|
778 |
VGint kernelWidth,
|
sl@0
|
779 |
VGint kernelHeight,
|
sl@0
|
780 |
VGint shiftX, VGint shiftY,
|
sl@0
|
781 |
const VGshort * kernelX,
|
sl@0
|
782 |
const VGshort * kernelY,
|
sl@0
|
783 |
VGfloat scale,
|
sl@0
|
784 |
VGfloat bias,
|
sl@0
|
785 |
VGTilingMode tilingMode) VG_APIEXIT;
|
sl@0
|
786 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
787 |
vgGaussianBlur(VGImage dst, VGImage src,
|
sl@0
|
788 |
VGfloat stdDeviationX,
|
sl@0
|
789 |
VGfloat stdDeviationY,
|
sl@0
|
790 |
VGTilingMode tilingMode) VG_APIEXIT;
|
sl@0
|
791 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
792 |
vgLookup(VGImage dst, VGImage src,
|
sl@0
|
793 |
const VGubyte * redLUT,
|
sl@0
|
794 |
const VGubyte * greenLUT,
|
sl@0
|
795 |
const VGubyte * blueLUT,
|
sl@0
|
796 |
const VGubyte * alphaLUT,
|
sl@0
|
797 |
VGboolean outputLinear,
|
sl@0
|
798 |
VGboolean outputPremultiplied) VG_APIEXIT;
|
sl@0
|
799 |
VG_API_CALL void VG_APIENTRY
|
sl@0
|
800 |
vgLookupSingle(VGImage dst, VGImage src,
|
sl@0
|
801 |
const VGuint * lookupTable,
|
sl@0
|
802 |
VGImageChannel sourceChannel,
|
sl@0
|
803 |
VGboolean outputLinear,
|
sl@0
|
804 |
VGboolean outputPremultiplied) VG_APIEXIT;
|
sl@0
|
805 |
|
sl@0
|
806 |
/* Hardware Queries */
|
sl@0
|
807 |
VG_API_CALL VGHardwareQueryResult VG_APIENTRY
|
sl@0
|
808 |
vgHardwareQuery
|
sl@0
|
809 |
(VGHardwareQueryType key,
|
sl@0
|
810 |
VGint setting) VG_APIEXIT;
|
sl@0
|
811 |
|
sl@0
|
812 |
/* Renderer and Extension Information */
|
sl@0
|
813 |
VG_API_CALL const VGubyte * VG_APIENTRY
|
sl@0
|
814 |
vgGetString(VGStringID name) VG_APIEXIT;
|
sl@0
|
815 |
|
sl@0
|
816 |
#ifdef __cplusplus
|
sl@0
|
817 |
} /* extern "C" */
|
sl@0
|
818 |
#endif
|
sl@0
|
819 |
|
sl@0
|
820 |
#endif /* __VG_1_1_OPENVG_H */
|