summaryrefslogtreecommitdiff
path: root/vapi/SDL2_gfx.vapi
blob: 8bf078260ed5a0738660ae72c9f6f61a7622b225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2016-2020 SDL2 VAPI Authors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Authors:
 *  Mario Daniel Ruiz Saavedra <desiderantes93@gmail.com>
 *  Gontzal Uriarte <txasatonga@gmail.com>
 *  Pedro H. Lara Campos <root@pedrohlc.com>
 */

namespace SDLGraphics {
	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Pixel {
		[CCode (cname = "pixelColor")]
		public static int color (SDL.Video.Renderer dst, int16 x, int16 y, uint32 color);

		[CCode (cname = "pixelRGBA")]
		public static int rgba (SDL.Video.Renderer dst, int16 x, int16 y,
			uchar r, uchar g, uchar b, uchar a);
	}// Pixel

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Line {
		[CCode (cname = "hlineColor")]
		public static int color_h (SDL.Video.Renderer dst, int16 x1, int16 x2,
			int16 y, uint32 color);

		[CCode (cname = "hlineRGBA")]
		public static int rgba_h (SDL.Video.Renderer dst, int16 x1, int16 x2,
			int16 y, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "vlineColor")]
		public static int color_v (SDL.Video.Renderer dst, int16 x, int16 y1,
			int16 y2, uint32 color);

		[CCode (cname = "vlineRGBA")]
		public static int rgba_v (SDL.Video.Renderer dst, int16 x, int16 y1,
			int16 y2, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "lineColor")]
		public static int color (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, uint32 color);

		[CCode (cname = "lineRGBA")]
		public static int rgba (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "aalineColor")]
		public static int color_aa (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, uint32 color);

		[CCode (cname = "aalineRGBA")]
		public static int rgba_aa (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, uchar r, uchar g, uchar b, uchar a);
	}// Line

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Rectangle {
		[CCode (cname = "rectangleColor")]
		public static int outline_color (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, uint32 color);

		[CCode (cname = "rectangleRGBA")]
		public static int outline_rgba (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "roundedRectangleColor")]
		public static int rounded_outline_color (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 rad, uint32 color);

		[CCode (cname = "roundedRectangleRGBA")]
		public static int rounded_outline_rgba (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 rad, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "boxColor")]
		public static int fill_color (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, uint32 color);

		[CCode (cname = "boxRGBA")]
		public static int fill_rgba (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "roundedBoxColor")]
		public static int rounded_fill_color (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 rad, uint32 color);

		[CCode (cname = "roundedBoxRGBA")]
		public static int rounded_fill_rgba (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 rad, uchar r, uchar g, uchar b, uchar a);
	}// Rectangle

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Circle {
		[CCode (cname = "circleColor")]
		public static int outline_color (SDL.Video.Renderer dst, int16 x, int16 y,
			int16 radius, uint32 color);

		[CCode (cname = "circleRGBA")]
		public static int outline_rgba (SDL.Video.Renderer dst, int16 x, int16 y, int16 radius,
			uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "aacircleColor")]
		public static int outline_color_aa (SDL.Video.Renderer dst, int16 x, int16 y,
			int16 radius, uint32 color);

		[CCode (cname = "aacircleRGBA")]
		public static int outline_rgba_aa (SDL.Video.Renderer dst, int16 x, int16 y, int16 radius,
			uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "filledCircleColor")]
		public static int fill_color (SDL.Video.Renderer dst, int16 x, int16 y,
			int16 radius, uint32 color);

		[CCode (cname = "filledCircleRGBA")]
		public static int fill_rgba (SDL.Video.Renderer dst, int16 x, int16 y, int16 radius,
			uchar r, uchar g, uchar b, uchar a);
	}// Circle

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Ellipse {
		[CCode (cname = "ellipseColor")]
		public static int outline_color (SDL.Video.Renderer dst, int16 xc, int16 yc,
			int16 rx, int16 ry, uint32 color);

		[CCode (cname = "ellipseRGBA")]
		public static int outline_rgba (SDL.Video.Renderer dst, int16 xc, int16 yc,
			int16 rx, int16 ry, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "aaellipseColor")]
		public static int outline_color_aa (SDL.Video.Renderer dst, int16 xc, int16 yc,
			int16 rx, int16 ry, uint32 color);

		[CCode (cname = "aaellipseRGBA")]
		public static int outline_rgba_aa (SDL.Video.Renderer dst, int16 xc, int16 yc,
			int16 rx, int16 ry, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "filledEllipseColor")]
		public static int fill_color (SDL.Video.Renderer dst, int16 xc, int16 yc,
			int16 rx, int16 ry, uint32 color);

		[CCode (cname = "filledEllipseRGBA")]
		public static int fill_rgba (SDL.Video.Renderer dst, int16 xc, int16 yc,
			int16 rx, int16 ry, uchar r, uchar g, uchar b, uchar a);
	}// Ellipse

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Arc {
		[CCode (cname = "pieColor")]
		public static int outline_color (SDL.Video.Renderer dst, int16 x, int16 y, int16 radius,
			int16 start, int16 end, uint32 color);

		[CCode (cname = "pieRGBA")]
		public static int outline_rgba (SDL.Video.Renderer dst, int16 x, int16 y, int16 radius,
			int16 start, int16 end, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "filledPieColor")]
		public static int fill_color (SDL.Video.Renderer dst, int16 x, int16 y, int16 radius,
			int16 start, int16 end, uint32 color);

		[CCode (cname = "filledPieRGBA")]
		public static int fill_rgba (SDL.Video.Renderer dst, int16 x, int16 y, int16 radius,
			int16 start, int16 end, uchar r, uchar g, uchar b, uchar a);
	}// Arc

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Trigon {
		[CCode (cname = "trigonColor")]
		public static int outline_color (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 x3, int16 y3, uint32 color);

		[CCode (cname = "trigonRGBA")]
		public static int outline_rgba (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 x3, int16 y3,
			uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "aatrigonColor")]
		public static int outline_color_aa (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 x3, int16 y3, uint32 color);

		[CCode (cname = "aatrigonRGBA")]
		public static int outline_rgba_aa (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 x3, int16 y3,
			uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "filledTrigonColor")]
		public static int fill_color (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 x3, int16 y3, uint32 color);

		[CCode (cname = "filledTrigonRGBA")]
		public static int fill_rgba (SDL.Video.Renderer dst, int16 x1, int16 y1,
			int16 x2, int16 y2, int16 x3, int16 y3,
			uchar r, uchar g, uchar b, uchar a);
	}// Trigon

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Polygon {
		[CCode (cname = "polygonColor")]
		public static int outline_color (SDL.Video.Renderer dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
			int n, uint32 color);

		[CCode (cname = "polygonRGBA")]
		public static int outline_rgba (SDL.Video.Renderer dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
			int n, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "aapolygonColor")]
		public static int outline_color_aa (SDL.Video.Renderer dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
			int n, uint32 color);

		[CCode (cname = "aapolygonRGBA")]
		public static int outline_rgba_aa (SDL.Video.Renderer dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
			int n, uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "filledPolygonColor")]
		public static int fill_color (SDL.Video.Renderer dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
			int n, uint32 color);

		[CCode (cname = "filledPolygonRGBA")]
		public static int fill_rgba (SDL.Video.Renderer dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
			int n, uchar r, uchar g, uchar b, uchar a);
	}// Polygon

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace BezierCurve {
		[CCode (cname = "bezierColor")]
		public static int color (SDL.Video.Renderer dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
			int vertices, int steps, uint32 color);

		[CCode (cname = "bezierRGBA")]
		public static int rgba (SDL.Video.Renderer dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
			int vertices, int steps, uchar r, uchar g, uchar b, uchar a);
	}// BezierCurve

	[CCode (cheader_filename = "SDL2/SDL2_gfxPrimitives.h")]
	namespace Text {
		[CCode (cname = "stringColor")]
		public static int color (SDL.Video.Renderer dst, int16 x, int16 y, string s, uint32 color);

		[CCode (cname = "stringRGBA")]
		public static int rgba (SDL.Video.Renderer dst, int16 x, int16 y, string s,
			uchar r, uchar g, uchar b, uchar a);

		[CCode (cname = "gfxPrimitivesSetFont")]
		public static int set_font (void* fontdata, int cw, int ch);
	}// Text

	[CCode (cheader_filename = "SDL2/SDL2_rotozoom.h")]
	namespace RotoZoom {
		[CCode (cname = "rotozoomSurface")]
		public static SDL.Video.Surface rotozoom (SDL.Video.Surface src, double degrees,
			double zoom, int smooth);

		[CCode (cname = "rotozoomSurfaceXY")]
		public static SDL.Video.Surface rotozoom_xy (SDL.Video.Surface src, double degrees,
			double zoomx, double zoomy, int smooth);

		[CCode (cname = "rotozoomSurfaceSize")]
		public static void rotozoom_size (int width, int height, double degrees,
			double zoom, ref int dstwidth, ref int dstheight);

		[CCode (cname = "rotozoomSurfaceSizeXY")]
		public static void rotozoom_size_xy (int width, int height, double degrees,
			double zoomx, double zoomy, ref int dstwidth, ref int dstheight);

		[CCode (cname = "zoomSurface")]
		public static SDL.Video.Surface zoom (SDL.Video.Surface src, double zoomx,
			double zoomy, int smooth);

		[CCode (cname = "zoomSurfaceSize")]
		public static void zoom_size (int width, int height, double zoomx,
			double zoomy, ref int dstwidth, ref int dstheight);
	}// RotoZoom

	[CCode (cheader_filename = "SDL2/SDL2_framerate.h", cname = "FPSmanager", free_function = "g_free")]
	[Compact]
	public struct FramerateManager {
		uint32 framecount;
		float rateticks;
		uint32 baseticks;
		uint32 lastticks;
		uint32 rate;

		[CCode (cname = "SDL_initFramerate")]
		public void init ();

		[CCode (cname = "SDL_setFramerate")]
		public int set_rate (int rate);

		[CCode (cname = "SDL_getFramerate")]
		public int get_rate ();

		[CCode (cname = "SDL_getFramecount")]
		public int get_count ();

		[CCode (cname = "SDL_framerateDelay")]
		public void run ();
	}// FramerateManager

	[CCode (cheader_filename = "SDL2/SDL2_imageFilter.h")]
	namespace Filter {
		[CCode (cname = "SDL_imageFilterMMXdetect")]
		public static int have_mmx ();

		[CCode (cname = "SDL_imageFilterMMXon")]
		public static void enable_mmx ();

		[CCode (cname = "SDL_imageFilterMMXoff")]
		public static void disable_mmx ();

		[CCode (cname = "SDL_imageFilterAdd")]
		public static int add ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterMean")]
		public static int mean ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterSub")]
		public static int subtract ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterAbsDiff")]
		public static int absolute_difference ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterMult")]
		public static int multiply ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterMultNor")]
		public static int multiply_normalized ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterMultDivby2")]
		public static int multiply_half ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterMultDivby4")]
		public static int multiply_quarter ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterBitAnd")]
		public static int and ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterBitOr")]
		public static int or ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterDiv")]
		public static int divide ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterBitNegation")]
		public static int negate ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length);

		[CCode (cname = "SDL_imageFilterAddByte")]
		public static int add_uchar ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar addend);

		[CCode (cname = "SDL_imageFilterAddUint")]
		public static int add_uint ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint addend);

		[CCode (cname = "SDL_imageFilterAddByteToHalf")]
		public static int halve_add_uchar ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar addend);

		[CCode (cname = "SDL_imageFilterSubByte")]
		public static int subtract_uchar ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar subtrahend);

		[CCode (cname = "SDL_imageFilterSubUint")]
		public static int subtract_uint ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint subtrahend);

		[CCode (cname = "SDL_imageFilterShiftRight")]
		public static int shift_right_uchar ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount);

		[CCode (cname = "SDL_imageFilterShiftRightUint")]
		public static int shift_right_uint ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint shiftcount);

		[CCode (cname = "SDL_imageFilterMultByByte")]
		public static int multiply_uchar ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar multiplicand);

		[CCode (cname = "SDL_imageFilterShiftRightAndMultByByte")]
		public static int shift_right_multiply_uchar ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount, uchar multiplicand);

		[CCode (cname = "SDL_imageFilterShiftLeftByte")]
		public static int shift_left_uchar ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount);

		[CCode (cname = "SDL_imageFilterShiftLeftUint")]
		public static int shift_left_uint ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint shiftcount);

		[CCode (cname = "SDL_imageFilterBinarizeUsingThreshold")]
		public static int binarize ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar threshold);

		[CCode (cname = "SDL_imageFilterClipToRange")]
		public static int clip ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar min, uchar max);

		[CCode (cname = "SDL_imageFilterNormalizeLinear")]
		public static int normalize_linear ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, int cmin, int cmax, int nmin, int nmax);

		[CCode (cname = "SDL_imageFilterConvolveKernel3x3Divide")]
		public static int convolve_3x3_divide ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);

		[CCode (cname = "SDL_imageFilterConvolveKernel5x5Divide")]
		public static int convolve_5x5_divide ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);

		[CCode (cname = "SDL_imageFilterConvolveKernel7x7Divide")]
		public static int convolve_7x7_divide ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);

		[CCode (cname = "SDL_imageFilterConvolveKernel9x9Divide")]
		public static int convolve_9x9_divide ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);

		[CCode (cname = "SDL_imageFilterConvolveKernel3x3ShiftRight")]
		public static int convolve_3x3_shift ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);

		[CCode (cname = "SDL_imageFilterConvolveKernel5x5ShiftRight")]
		public static int convolve_5x5_shift ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);

		[CCode (cname = "SDL_imageFilterConvolveKernel7x7ShiftRight")]
		public static int convolve_7x7_shift ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);

		[CCode (cname = "SDL_imageFilterConvolveKernel9x9ShiftRight")]
		public static int convolve_9x9_shift ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);

		[CCode (cname = "SDL_imageFilterSobelX")]
		public static int sobel ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns);

		[CCode (cname = "SDL_imageFilterSobelXShiftRight")]
		public static int sobel_shift ([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, uchar shiftcount);
	}// Filter
}// SDLGraphics