1 /* cogl-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Cogl", lower_case_cprefix = "cogl_")]
5 [CCode (cheader_filename = "cogl/cogl.h")]
7 [IntegerType (rank = 0)]
8 public struct Angle : int32 {
10 [CCode (type_id = "COGL_TYPE_COLOR", cheader_filename = "cogl/cogl.h")]
16 public uint32 padding0;
17 public uint32 padding1;
18 public uint32 padding2;
19 public Cogl.Color copy ();
21 public float get_alpha ();
22 public uint8 get_alpha_byte ();
23 public float get_alpha_float ();
24 public float get_blue ();
25 public uint8 get_blue_byte ();
26 public float get_blue_float ();
27 public float get_green ();
28 public uint8 get_green_byte ();
29 public float get_green_float ();
30 public float get_red ();
31 public uint8 get_red_byte ();
32 public float get_red_float ();
33 public void set_from_4f (float red, float green, float blue, float alpha);
34 public void set_from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
36 [CCode (cheader_filename = "cogl/cogl.h")]
38 [IntegerType (rank = 0)]
39 public struct Fixed : int32 {
41 [CCode (type_id = "COGL_TYPE_HANDLE", cheader_filename = "cogl/cogl.h")]
42 public struct Handle {
44 public Cogl.Handle @ref ();
47 [CCode (type_id = "COGL_TYPE_MATRIX", cheader_filename = "cogl/cogl.h")]
48 public struct Matrix {
65 public weak float[] _padding0;
66 public ulong _padding1;
67 public ulong _padding2;
68 public ulong _padding3;
70 [CCode (type_id = "COGL_TYPE_TEXTURE_VERTEX", cheader_filename = "cogl/cogl.h")]
71 public struct TextureVertex {
77 public Cogl.Color color;
79 [CCode (cprefix = "COGL_ATTRIBUTE_TYPE_", cheader_filename = "cogl/cogl.h")]
80 public enum AttributeType {
87 [CCode (cprefix = "COGL_BUFFER_BIT_", cheader_filename = "cogl/cogl.h")]
88 public enum BufferBit {
93 [CCode (cprefix = "COGL_BUFFER_TARGET_", cheader_filename = "cogl/cogl.h")]
94 public enum BufferTarget {
95 [CCode (cname = "COGL_WINDOW_BUFFER")]
97 [CCode (cname = "COGL_OFFSCREEN_BUFFER")]
100 [CCode (cprefix = "COGL_DEBUG_FLAGS_", cheader_filename = "cogl/cogl.h")]
101 public enum DebugFlags {
102 [CCode (cname = "COGL_DEBUG_MISC")]
104 [CCode (cname = "COGL_DEBUG_TEXTURE")]
106 [CCode (cname = "COGL_DEBUG_MATERIAL")]
108 [CCode (cname = "COGL_DEBUG_SHADER")]
110 [CCode (cname = "COGL_DEBUG_OFFSCREEN")]
112 [CCode (cname = "COGL_DEBUG_DRAW")]
114 [CCode (cname = "COGL_DEBUG_PANGO")]
116 [CCode (cname = "COGL_DEBUG_RECTANGLES")]
118 [CCode (cname = "COGL_DEBUG_HANDLE")]
120 [CCode (cname = "COGL_DEBUG_BLEND_STRINGS")]
123 [CCode (cprefix = "COGL_FEATURE_FLAGS_", cheader_filename = "cogl/cogl.h")]
124 public enum FeatureFlags {
125 [CCode (cname = "COGL_FEATURE_TEXTURE_RECTANGLE")]
127 [CCode (cname = "COGL_FEATURE_TEXTURE_NPOT")]
129 [CCode (cname = "COGL_FEATURE_TEXTURE_YUV")]
131 [CCode (cname = "COGL_FEATURE_TEXTURE_READ_PIXELS")]
133 [CCode (cname = "COGL_FEATURE_SHADERS_GLSL")]
135 [CCode (cname = "COGL_FEATURE_OFFSCREEN")]
137 [CCode (cname = "COGL_FEATURE_OFFSCREEN_MULTISAMPLE")]
138 OFFSCREEN_MULTISAMPLE,
139 [CCode (cname = "COGL_FEATURE_OFFSCREEN_BLIT")]
141 [CCode (cname = "COGL_FEATURE_FOUR_CLIP_PLANES")]
143 [CCode (cname = "COGL_FEATURE_STENCIL_BUFFER")]
145 [CCode (cname = "COGL_FEATURE_VBOS")]
148 [CCode (cprefix = "COGL_FOG_MODE_", cheader_filename = "cogl/cogl.h")]
149 public enum FogMode {
154 [CCode (cprefix = "COGL_INDICES_TYPE_UNSIGNED_", cheader_filename = "cogl/cogl.h")]
155 public enum IndicesType {
160 [CCode (cprefix = "COGL_MATERIAL_ALPHA_FUNC_", cheader_filename = "cogl/cogl.h")]
161 public enum MaterialAlphaFunc {
171 [CCode (cprefix = "COGL_MATERIAL_FILTER_", cheader_filename = "cogl/cogl.h")]
172 public enum MaterialFilter {
175 NEAREST_MIPMAP_NEAREST,
176 LINEAR_MIPMAP_NEAREST,
177 NEAREST_MIPMAP_LINEAR,
180 [CCode (cprefix = "COGL_MATERIAL_LAYER_TYPE_", cheader_filename = "cogl/cogl.h")]
181 public enum MaterialLayerType {
184 [CCode (cprefix = "COGL_PIXEL_FORMAT_", cheader_filename = "cogl/cogl.h")]
185 public enum PixelFormat {
206 [CCode (cprefix = "COGL_SHADER_TYPE_", cheader_filename = "cogl/cogl.h")]
207 public enum ShaderType {
211 [CCode (cprefix = "COGL_TEXTURE_FLAGS_", cheader_filename = "cogl/cogl.h")]
212 public enum TextureFlags {
213 [CCode (cname = "COGL_TEXTURE_NONE")]
215 [CCode (cname = "COGL_TEXTURE_NO_AUTO_MIPMAP")]
217 [CCode (cname = "COGL_TEXTURE_NO_SLICING")]
220 [CCode (cprefix = "COGL_VERTICES_MODE_", cheader_filename = "cogl/cogl.h")]
221 public enum VerticesMode {
230 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
231 public delegate void FuncPtr ();
232 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
233 public delegate void PFNGLACTIVETEXTUREPROC (GL.enum texture);
234 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
235 public delegate void PFNGLATTACHOBJECTARBPROC (GL.handleARB containerObj, GL.handleARB obj);
236 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
237 public delegate void PFNGLBINDBUFFERARBPROC (GL.enum target, GL.uint buffer);
238 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
239 public delegate void PFNGLBINDFRAMEBUFFEREXTPROC (GL.enum target, GL.uint framebuffer);
240 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
241 public delegate void PFNGLBINDRENDERBUFFEREXTPROC (GL.enum target, GL.uint renderbuffer);
242 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
243 public delegate void PFNGLBLENDCOLORPROC (GL.clampf red, GL.clampf green, GL.clampf blue, GL.clampf alpha);
244 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
245 public delegate void PFNGLBLENDEQUATIONPROC (GL.enum mode);
246 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
247 public delegate void PFNGLBLENDEQUATIONSEPARATEPROC (GL.enum modeRGB, GL.enum modeAlpha);
248 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
249 public delegate void PFNGLBLENDFUNCSEPARATEPROC (GL.enum srcRGB, GL.enum dstRGB, GL.enum srcAlpha, GL.enum dstAlpha);
250 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
251 public delegate void PFNGLBLITFRAMEBUFFEREXTPROC (GL.int srcX0, GL.int srcY0, GL.int srcX1, GL.int srcY1, GL.int dstX0, GL.int dstY0, GL.int dstX1, GL.int dstY1, GL.bitfield mask, GL.enum filter);
252 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
253 public delegate GL.enum PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC (GL.enum target);
254 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
255 public delegate void PFNGLCLIENTACTIVETEXTUREPROC (GL.enum texture);
256 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
257 public delegate void PFNGLCOMPILESHADERARBPROC (GL.handleARB shaderObj);
258 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
259 public delegate GL.handleARB PFNGLCREATEPROGRAMOBJECTARBPROC ();
260 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
261 public delegate GL.handleARB PFNGLCREATESHADEROBJECTARBPROC (GL.enum shaderType);
262 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
263 public delegate void PFNGLDELETEBUFFERSARBPROC (GL.sizei n, GL.uint buffers);
264 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
265 public delegate void PFNGLDELETEFRAMEBUFFERSEXTPROC (GL.sizei n, GL.uint framebuffers);
266 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
267 public delegate void PFNGLDELETEOBJECTARBPROC (GL.handleARB obj);
268 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
269 public delegate void PFNGLDELETERENDERBUFFERSEXTPROC (GL.sizei n, GL.uint renderbuffers);
270 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
271 public delegate void PFNGLDISABLEVERTEXATTRIBARRAYARBPROC (GL.uint index);
272 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
273 public delegate void PFNGLDRAWRANGEELEMENTSPROC (GL.enum mode, GL.uint start, GL.uint end, GL.sizei count, GL.enum type, void indices);
274 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
275 public delegate void PFNGLENABLEVERTEXATTRIBARRAYARBPROC (GL.uint index);
276 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
277 public delegate void PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC (GL.enum target, GL.enum attachment, GL.enum renderbuffertarget, GL.uint renderbuffer);
278 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
279 public delegate void PFNGLFRAMEBUFFERTEXTURE2DEXTPROC (GL.enum target, GL.enum attachment, GL.enum textarget, GL.uint texture, GL.int level);
280 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
281 public delegate void PFNGLGENBUFFERSARBPROC (GL.uint n, GL.uint buffers);
282 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
283 public delegate void PFNGLGENERATEMIPMAPEXTPROC (GL.enum target);
284 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
285 public delegate void PFNGLGENFRAMEBUFFERSEXTPROC (GL.sizei n, GL.uint framebuffers);
286 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
287 public delegate void PFNGLGENRENDERBUFFERSEXTPROC (GL.sizei n, GL.uint renderbuffers);
288 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
289 public delegate void PFNGLGETINFOLOGARBPROC (GL.handleARB obj, GL.sizei maxLength, GL.sizei length, GL.charARB infoLog);
290 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
291 public delegate void PFNGLGETOBJECTPARAMETERIVARBPROC (GL.handleARB obj, GL.enum pname, GL.int @params);
292 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
293 public delegate GL.int PFNGLGETUNIFORMLOCATIONARBPROC (GL.handleARB programObj, GL.charARB name);
294 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
295 public delegate void PFNGLLINKPROGRAMARBPROC (GL.handleARB programObj);
296 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
297 public delegate void* PFNGLMAPBUFFERARBPROC (GL.enum target, GL.enum access);
298 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
299 public delegate void PFNGLRENDERBUFFERSTORAGEEXTPROC (GL.enum target, GL.enum internalformat, GL.sizei width, GL.sizei height);
300 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
301 public delegate void PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC (GL.enum target, GL.sizei samples, GL.enum internalformat, GL.sizei width, GL.sizei height);
302 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
303 public delegate void PFNGLSHADERSOURCEARBPROC (GL.handleARB shaderObj, GL.sizei count, GL.charARB string, GL.int length);
304 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
305 public delegate void PFNGLUNIFORM1FARBPROC (GL.int location, GL.float v0);
306 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
307 public delegate void PFNGLUNIFORM1FVARBPROC (GL.int location, GL.sizei count, GL.float value);
308 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
309 public delegate void PFNGLUNIFORM1IARBPROC (GL.int location, GL.int v0);
310 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
311 public delegate void PFNGLUNIFORM1IVARBPROC (GL.int location, GL.sizei count, GL.int value);
312 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
313 public delegate void PFNGLUNIFORM2FARBPROC (GL.int location, GL.float v0, GL.float v1);
314 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
315 public delegate void PFNGLUNIFORM2FVARBPROC (GL.int location, GL.sizei count, GL.float value);
316 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
317 public delegate void PFNGLUNIFORM2IARBPROC (GL.int location, GL.int v0, GL.int v1);
318 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
319 public delegate void PFNGLUNIFORM2IVARBPROC (GL.int location, GL.sizei count, GL.int value);
320 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
321 public delegate void PFNGLUNIFORM3FARBPROC (GL.int location, GL.float v0, GL.float v1, GL.float v2);
322 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
323 public delegate void PFNGLUNIFORM3FVARBPROC (GL.int location, GL.sizei count, GL.float value);
324 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
325 public delegate void PFNGLUNIFORM3IARBPROC (GL.int location, GL.int v0, GL.int v1, GL.int v2);
326 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
327 public delegate void PFNGLUNIFORM3IVARBPROC (GL.int location, GL.sizei count, GL.int value);
328 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
329 public delegate void PFNGLUNIFORM4FARBPROC (GL.int location, GL.float v0, GL.float v1, GL.float v2, GL.float v3);
330 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
331 public delegate void PFNGLUNIFORM4FVARBPROC (GL.int location, GL.sizei count, GL.float value);
332 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
333 public delegate void PFNGLUNIFORM4IARBPROC (GL.int location, GL.int v0, GL.int v1, GL.int v2, GL.int v3);
334 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
335 public delegate void PFNGLUNIFORM4IVARBPROC (GL.int location, GL.sizei count, GL.int value);
336 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
337 public delegate void PFNGLUNIFORMMATRIX2FVARBPROC (GL.int location, GL.sizei count, GL.boolean transpose, GL.float value);
338 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
339 public delegate void PFNGLUNIFORMMATRIX3FVARBPROC (GL.int location, GL.sizei count, GL.boolean transpose, GL.float value);
340 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
341 public delegate void PFNGLUNIFORMMATRIX4FVARBPROC (GL.int location, GL.sizei count, GL.boolean transpose, GL.float value);
342 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
343 public delegate GL.boolean PFNGLUNMAPBUFFERARBPROC (GL.enum target);
344 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
345 public delegate void PFNGLUSEPROGRAMOBJECTARBPROC (GL.handleARB programObj);
346 [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
347 public delegate void PFNGLVERTEXATTRIBPOINTERARBPROC (GL.uint index, GL.int size, GL.enum type, GL.boolean normalized, GL.sizei stride, void pointer);
348 [CCode (cheader_filename = "cogl/cogl.h")]
349 public const int AFIRST_BIT;
350 [CCode (cheader_filename = "cogl/cogl.h")]
351 public const int A_BIT;
352 [CCode (cheader_filename = "cogl/cogl.h")]
353 public const int BGR_BIT;
354 [CCode (cheader_filename = "cogl/cogl.h")]
355 public const int CGL_TEXTURE_RECTANGLE_ARB;
356 [CCode (cheader_filename = "cogl/cogl.h")]
357 public const int CGL_UNSIGNED_SHORT_8_8_MESA;
358 [CCode (cheader_filename = "cogl/cogl.h")]
359 public const int CGL_UNSIGNED_SHORT_8_8_REV_MESA;
360 [CCode (cheader_filename = "cogl/cogl.h")]
361 public const int CGL_YCBCR_MESA;
362 [CCode (cheader_filename = "cogl/cogl.h")]
363 public const int CLUTTER_COGL_HAS_GL;
364 [CCode (cheader_filename = "cogl/cogl.h")]
365 public const int FIXED_0_5;
366 [CCode (cheader_filename = "cogl/cogl.h")]
367 public const int FIXED_1;
368 [CCode (cheader_filename = "cogl/cogl.h")]
369 public const int FIXED_2_PI;
370 [CCode (cheader_filename = "cogl/cogl.h")]
371 public const int FIXED_BITS;
372 [CCode (cheader_filename = "cogl/cogl.h")]
373 public const int FIXED_EPSILON;
374 [CCode (cheader_filename = "cogl/cogl.h")]
375 public const int FIXED_MAX;
376 [CCode (cheader_filename = "cogl/cogl.h")]
377 public const int FIXED_MIN;
378 [CCode (cheader_filename = "cogl/cogl.h")]
379 public const int FIXED_PI;
380 [CCode (cheader_filename = "cogl/cogl.h")]
381 public const int FIXED_PI_2;
382 [CCode (cheader_filename = "cogl/cogl.h")]
383 public const int FIXED_PI_4;
384 [CCode (cheader_filename = "cogl/cogl.h")]
385 public const int FIXED_Q;
386 [CCode (cheader_filename = "cogl/cogl.h")]
387 public const int PIXEL_FORMAT_24;
388 [CCode (cheader_filename = "cogl/cogl.h")]
389 public const int PIXEL_FORMAT_32;
390 [CCode (cheader_filename = "cogl/cogl.h")]
391 public const int PREMULT_BIT;
392 [CCode (cheader_filename = "cogl/cogl.h")]
393 public const int RADIANS_TO_DEGREES;
394 [CCode (cheader_filename = "cogl/cogl.h")]
395 public const int SQRTI_ARG_10_PERCENT;
396 [CCode (cheader_filename = "cogl/cogl.h")]
397 public const int SQRTI_ARG_5_PERCENT;
398 [CCode (cheader_filename = "cogl/cogl.h")]
399 public const int SQRTI_ARG_MAX;
400 [CCode (cheader_filename = "cogl/cogl.h")]
401 public const int TEXTURE_MAX_WASTE;
402 [CCode (cheader_filename = "cogl/cogl.h")]
403 public const int UNORDERED_MASK;
404 [CCode (cheader_filename = "cogl/cogl.h")]
405 public const int UNPREMULT_MASK;
406 [CCode (cheader_filename = "cogl/cogl.h")]
407 public static Cogl.Fixed angle_cos (Cogl.Angle angle);
408 [CCode (cheader_filename = "cogl/cogl.h")]
409 public static Cogl.Fixed angle_sin (Cogl.Angle angle);
410 [CCode (cheader_filename = "cogl/cogl.h")]
411 public static Cogl.Fixed angle_tan (Cogl.Angle angle);
412 [CCode (cheader_filename = "cogl/cogl.h")]
413 public static bool bitmap_get_size_from_file (string filename, out int width, out int height);
414 [CCode (cheader_filename = "cogl/cogl.h")]
415 public static Cogl.Handle bitmap_new_from_file (string filename) throws GLib.Error;
416 [CCode (cheader_filename = "cogl/cogl.h")]
417 public static bool check_extension (string name, string ext);
418 [CCode (cheader_filename = "cogl/cogl.h")]
419 public static void clear (Cogl.Color color, ulong buffers);
420 [CCode (cheader_filename = "cogl/cogl.h")]
421 public static void clip_ensure ();
422 [CCode (cheader_filename = "cogl/cogl.h")]
423 public static void clip_pop ();
424 [CCode (cheader_filename = "cogl/cogl.h")]
425 public static void clip_push (float x_offset, float y_offset, float width, float height);
426 [CCode (cheader_filename = "cogl/cogl.h")]
427 public static void clip_push_from_path ();
428 [CCode (cheader_filename = "cogl/cogl.h")]
429 public static void clip_push_from_path_preserve ();
430 [CCode (cheader_filename = "cogl/cogl.h")]
431 public static void clip_push_window_rect (float x_offset, float y_offset, float width, float height);
432 [CCode (cheader_filename = "cogl/cogl.h")]
433 public static void clip_stack_restore ();
434 [CCode (cheader_filename = "cogl/cogl.h")]
435 public static void clip_stack_save ();
436 [CCode (cheader_filename = "cogl/cogl.h")]
437 public static Cogl.Handle create_program ();
438 [CCode (cheader_filename = "cogl/cogl.h")]
439 public static Cogl.Handle create_shader (Cogl.ShaderType shader_type);
440 [CCode (cheader_filename = "cogl/cogl.h")]
441 public static void disable_fog ();
442 [CCode (cheader_filename = "cogl/cogl.h")]
443 public static Cogl.Fixed double_to_fixed (double value);
444 [CCode (cheader_filename = "cogl/cogl.h")]
445 public static int double_to_int (double value);
446 [CCode (cheader_filename = "cogl/cogl.h")]
447 public static uint double_to_unit (double value);
448 [CCode (cheader_filename = "cogl/cogl.h")]
449 public static bool features_available (Cogl.FeatureFlags features);
450 [CCode (cheader_filename = "cogl/cogl.h")]
451 public static Cogl.Fixed fixed_atan2 (Cogl.Fixed a, Cogl.Fixed b);
452 [CCode (cheader_filename = "cogl/cogl.h")]
453 public static Cogl.Fixed fixed_atani (Cogl.Fixed a);
454 [CCode (cheader_filename = "cogl/cogl.h")]
455 public static Cogl.Fixed fixed_cos (Cogl.Fixed angle);
456 [CCode (cheader_filename = "cogl/cogl.h")]
457 public static Cogl.Fixed fixed_div (Cogl.Fixed a, Cogl.Fixed b);
458 [CCode (cheader_filename = "cogl/cogl.h")]
459 public static Cogl.Fixed fixed_log2 (uint x);
460 [CCode (cheader_filename = "cogl/cogl.h")]
461 public static Cogl.Fixed fixed_mul (Cogl.Fixed a, Cogl.Fixed b);
462 [CCode (cheader_filename = "cogl/cogl.h")]
463 public static Cogl.Fixed fixed_mul_div (Cogl.Fixed a, Cogl.Fixed b, Cogl.Fixed c);
464 [CCode (cheader_filename = "cogl/cogl.h")]
465 public static uint fixed_pow (uint x, Cogl.Fixed y);
466 [CCode (cheader_filename = "cogl/cogl.h")]
467 public static uint fixed_pow2 (Cogl.Fixed x);
468 [CCode (cheader_filename = "cogl/cogl.h")]
469 public static Cogl.Fixed fixed_sin (Cogl.Fixed angle);
470 [CCode (cheader_filename = "cogl/cogl.h")]
471 public static Cogl.Fixed fixed_sqrt (Cogl.Fixed x);
472 [CCode (cheader_filename = "cogl/cogl.h")]
473 public static Cogl.Fixed fixed_tan (Cogl.Fixed angle);
474 [CCode (cheader_filename = "cogl/cogl.h")]
475 public static void frustum (float left, float right, float bottom, float top, float z_near, float z_far);
476 [CCode (cheader_filename = "cogl/cogl.h")]
477 public static bool get_backface_culling_enabled ();
478 [CCode (cheader_filename = "cogl/cogl.h")]
479 public static void get_bitmasks (out int red, out int green, out int blue, out int alpha);
480 [CCode (cheader_filename = "cogl/cogl.h")]
481 public static bool get_depth_test_enable ();
482 [CCode (cheader_filename = "cogl/cogl.h")]
483 public static Cogl.FeatureFlags get_features ();
484 [CCode (cheader_filename = "cogl/cogl.h")]
485 public static void get_modelview_matrix (Cogl.Matrix matrix);
486 [CCode (cheader_filename = "cogl/cogl.h")]
487 public static GLib.OptionGroup get_option_group ();
488 [CCode (cheader_filename = "cogl/cogl.h")]
489 public static Cogl.FuncPtr get_proc_address (string name);
490 [CCode (cheader_filename = "cogl/cogl.h")]
491 public static void get_projection_matrix (Cogl.Matrix matrix);
492 [CCode (cheader_filename = "cogl/cogl.h")]
493 public static void get_viewport (float v);
494 [CCode (cheader_filename = "cogl/cogl.h")]
495 public static bool is_material (Cogl.Handle handle);
496 [CCode (cheader_filename = "cogl/cogl.h")]
497 public static bool is_offscreen (Cogl.Handle handle);
498 [CCode (cheader_filename = "cogl/cogl.h")]
499 public static bool is_program (Cogl.Handle handle);
500 [CCode (cheader_filename = "cogl/cogl.h")]
501 public static bool is_shader (Cogl.Handle handle);
502 [CCode (cheader_filename = "cogl/cogl.h")]
503 public static bool is_texture (Cogl.Handle handle);
504 [CCode (cheader_filename = "cogl/cogl.h")]
505 public static void material_get_ambient (Cogl.Handle material, Cogl.Color ambient);
506 [CCode (cheader_filename = "cogl/cogl.h")]
507 public static void material_get_color (Cogl.Handle material, Cogl.Color color);
508 [CCode (cheader_filename = "cogl/cogl.h")]
509 public static void material_get_diffuse (Cogl.Handle material, Cogl.Color diffuse);
510 [CCode (cheader_filename = "cogl/cogl.h")]
511 public static void material_get_emission (Cogl.Handle material, Cogl.Color emission);
512 [CCode (cheader_filename = "cogl/cogl.h")]
513 public static unowned GLib.List material_get_layers (Cogl.Handle material_handle);
514 [CCode (cheader_filename = "cogl/cogl.h")]
515 public static float material_get_shininess (Cogl.Handle material);
516 [CCode (cheader_filename = "cogl/cogl.h")]
517 public static void material_get_specular (Cogl.Handle material, Cogl.Color specular);
518 [CCode (cheader_filename = "cogl/cogl.h")]
519 public static Cogl.MaterialFilter material_layer_get_mag_filter (Cogl.Handle layer_handle);
520 [CCode (cheader_filename = "cogl/cogl.h")]
521 public static Cogl.MaterialFilter material_layer_get_min_filter (Cogl.Handle layer_handle);
522 [CCode (cheader_filename = "cogl/cogl.h")]
523 public static Cogl.Handle material_layer_get_texture (Cogl.Handle layer_handle);
524 [CCode (cheader_filename = "cogl/cogl.h")]
525 public static Cogl.MaterialLayerType material_layer_get_type (Cogl.Handle layer_handle);
526 [CCode (cheader_filename = "cogl/cogl.h")]
527 public static Cogl.Handle material_new ();
528 [CCode (cheader_filename = "cogl/cogl.h")]
529 public static Cogl.Handle material_ref (Cogl.Handle handle);
530 [CCode (cheader_filename = "cogl/cogl.h")]
531 public static void material_remove_layer (Cogl.Handle material, int layer_index);
532 [CCode (cheader_filename = "cogl/cogl.h")]
533 public static void material_set_alpha_test_function (Cogl.Handle material, Cogl.MaterialAlphaFunc alpha_func, float alpha_reference);
534 [CCode (cheader_filename = "cogl/cogl.h")]
535 public static void material_set_ambient (Cogl.Handle material, Cogl.Color ambient);
536 [CCode (cheader_filename = "cogl/cogl.h")]
537 public static void material_set_ambient_and_diffuse (Cogl.Handle material, Cogl.Color color);
538 [CCode (cheader_filename = "cogl/cogl.h")]
539 public static bool material_set_blend (Cogl.Handle material, string blend_string) throws GLib.Error;
540 [CCode (cheader_filename = "cogl/cogl.h")]
541 public static void material_set_blend_constant (Cogl.Handle material, Cogl.Color constant_color);
542 [CCode (cheader_filename = "cogl/cogl.h")]
543 public static void material_set_color (Cogl.Handle material, Cogl.Color color);
544 [CCode (cheader_filename = "cogl/cogl.h")]
545 public static void material_set_color4f (Cogl.Handle material, float red, float green, float blue, float alpha);
546 [CCode (cheader_filename = "cogl/cogl.h")]
547 public static void material_set_color4ub (Cogl.Handle material, uint8 red, uint8 green, uint8 blue, uint8 alpha);
548 [CCode (cheader_filename = "cogl/cogl.h")]
549 public static void material_set_diffuse (Cogl.Handle material, Cogl.Color diffuse);
550 [CCode (cheader_filename = "cogl/cogl.h")]
551 public static void material_set_emission (Cogl.Handle material, Cogl.Color emission);
552 [CCode (cheader_filename = "cogl/cogl.h")]
553 public static void material_set_layer (Cogl.Handle material, int layer_index, Cogl.Handle texture);
554 [CCode (cheader_filename = "cogl/cogl.h")]
555 public static bool material_set_layer_combine (Cogl.Handle material, int layer_index, string blend_string) throws GLib.Error;
556 [CCode (cheader_filename = "cogl/cogl.h")]
557 public static void material_set_layer_combine_constant (Cogl.Handle material, int layer_index, Cogl.Color constant);
558 [CCode (cheader_filename = "cogl/cogl.h")]
559 public static void material_set_layer_filters (Cogl.Handle handle, int layer_index, Cogl.MaterialFilter min_filter, Cogl.MaterialFilter mag_filter);
560 [CCode (cheader_filename = "cogl/cogl.h")]
561 public static void material_set_layer_matrix (Cogl.Handle material, int layer_index, Cogl.Matrix matrix);
562 [CCode (cheader_filename = "cogl/cogl.h")]
563 public static void material_set_shininess (Cogl.Handle material, float shininess);
564 [CCode (cheader_filename = "cogl/cogl.h")]
565 public static void material_set_specular (Cogl.Handle material, Cogl.Color specular);
566 [CCode (cheader_filename = "cogl/cogl.h")]
567 public static void material_unref (Cogl.Handle handle);
568 [CCode (cheader_filename = "cogl/cogl.h")]
569 public static void matrix_frustum (Cogl.Matrix matrix, float left, float right, float bottom, float top, float z_near, float z_far);
570 [CCode (cheader_filename = "cogl/cogl.h")]
571 public static float matrix_get_array (Cogl.Matrix matrix);
572 [CCode (cheader_filename = "cogl/cogl.h")]
573 public static void matrix_init_from_array (Cogl.Matrix matrix, out float array);
574 [CCode (cheader_filename = "cogl/cogl.h")]
575 public static void matrix_init_identity (Cogl.Matrix matrix);
576 [CCode (cheader_filename = "cogl/cogl.h")]
577 public static void matrix_multiply (Cogl.Matrix result, Cogl.Matrix a, Cogl.Matrix b);
578 [CCode (cheader_filename = "cogl/cogl.h")]
579 public static void matrix_ortho (Cogl.Matrix matrix, float left, float right, float bottom, float top, float z_near, float z_far);
580 [CCode (cheader_filename = "cogl/cogl.h")]
581 public static void matrix_perspective (Cogl.Matrix matrix, float fov_y, float aspect, float z_near, float z_far);
582 [CCode (cheader_filename = "cogl/cogl.h")]
583 public static void matrix_rotate (Cogl.Matrix matrix, float angle, float x, float y, float z);
584 [CCode (cheader_filename = "cogl/cogl.h")]
585 public static void matrix_scale (Cogl.Matrix matrix, float sx, float sy, float sz);
586 [CCode (cheader_filename = "cogl/cogl.h")]
587 public static void matrix_transform_point (Cogl.Matrix matrix, out float x, out float y, out float z, out float w);
588 [CCode (cheader_filename = "cogl/cogl.h")]
589 public static void matrix_translate (Cogl.Matrix matrix, float x, float y, float z);
590 [CCode (cheader_filename = "cogl/cogl.h")]
591 public static Cogl.Handle offscreen_new_to_texture (Cogl.Handle texhandle);
592 [CCode (cheader_filename = "cogl/cogl.h")]
593 public static Cogl.Handle offscreen_ref (Cogl.Handle handle);
594 [CCode (cheader_filename = "cogl/cogl.h")]
595 public static void offscreen_unref (Cogl.Handle handle);
596 [CCode (cheader_filename = "cogl/cogl.h")]
597 public static void ortho (float left, float right, float bottom, float top, float near, float far);
598 [CCode (cheader_filename = "cogl/cogl.h")]
599 public static void path_arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2);
600 [CCode (cheader_filename = "cogl/cogl.h")]
601 public static void path_close ();
602 [CCode (cheader_filename = "cogl/cogl.h")]
603 public static void path_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3);
604 [CCode (cheader_filename = "cogl/cogl.h")]
605 public static void path_ellipse (float center_x, float center_y, float radius_x, float radius_y);
606 [CCode (cheader_filename = "cogl/cogl.h")]
607 public static void path_fill ();
608 [CCode (cheader_filename = "cogl/cogl.h")]
609 public static void path_fill_preserve ();
610 [CCode (cheader_filename = "cogl/cogl.h")]
611 public static void path_line (float x_1, float y_1, float x_2, float y_2);
612 [CCode (cheader_filename = "cogl/cogl.h")]
613 public static void path_line_to (float x, float y);
614 [CCode (cheader_filename = "cogl/cogl.h")]
615 public static void path_move_to (float x, float y);
616 [CCode (cheader_filename = "cogl/cogl.h")]
617 public static void path_new ();
618 [CCode (cheader_filename = "cogl/cogl.h")]
619 public static void path_polygon (out float coords, int num_points);
620 [CCode (cheader_filename = "cogl/cogl.h")]
621 public static void path_polyline (out float coords, int num_points);
622 [CCode (cheader_filename = "cogl/cogl.h")]
623 public static void path_rectangle (float x_1, float y_1, float x_2, float y_2);
624 [CCode (cheader_filename = "cogl/cogl.h")]
625 public static void path_rel_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3);
626 [CCode (cheader_filename = "cogl/cogl.h")]
627 public static void path_rel_line_to (float x, float y);
628 [CCode (cheader_filename = "cogl/cogl.h")]
629 public static void path_rel_move_to (float x, float y);
630 [CCode (cheader_filename = "cogl/cogl.h")]
631 public static void path_round_rectangle (float x_1, float y_1, float x_2, float y_2, float radius, float arc_step);
632 [CCode (cheader_filename = "cogl/cogl.h")]
633 public static void path_stroke ();
634 [CCode (cheader_filename = "cogl/cogl.h")]
635 public static void path_stroke_preserve ();
636 [CCode (cheader_filename = "cogl/cogl.h")]
637 public static void perspective (float fovy, float aspect, float z_near, float z_far);
638 [CCode (cheader_filename = "cogl/cogl.h")]
639 public static void polygon (Cogl.TextureVertex vertices, uint n_vertices, bool use_color);
640 [CCode (cheader_filename = "cogl/cogl.h")]
641 public static void pop_draw_buffer ();
642 [CCode (cheader_filename = "cogl/cogl.h")]
643 public static void pop_matrix ();
644 [CCode (cheader_filename = "cogl/cogl.h")]
645 public static void program_attach_shader (Cogl.Handle program_handle, Cogl.Handle shader_handle);
646 [CCode (cheader_filename = "cogl/cogl.h")]
647 public static int program_get_uniform_location (Cogl.Handle handle, string uniform_name);
648 [CCode (cheader_filename = "cogl/cogl.h")]
649 public static void program_link (Cogl.Handle handle);
650 [CCode (cheader_filename = "cogl/cogl.h")]
651 public static Cogl.Handle program_ref (Cogl.Handle handle);
652 [CCode (cheader_filename = "cogl/cogl.h")]
653 public static void program_uniform_1f (int uniform_no, float value);
654 [CCode (cheader_filename = "cogl/cogl.h")]
655 public static void program_uniform_1i (int uniform_no, int value);
656 [CCode (cheader_filename = "cogl/cogl.h")]
657 public static void program_uniform_int (int uniform_no, int size, int count, out int value);
658 [CCode (cheader_filename = "cogl/cogl.h")]
659 public static void program_uniform_matrix (int uniform_no, int size, int count, bool transpose, out float value);
660 [CCode (cheader_filename = "cogl/cogl.h")]
661 public static void program_unref (Cogl.Handle handle);
662 [CCode (cheader_filename = "cogl/cogl.h")]
663 public static void program_use (Cogl.Handle handle);
664 [CCode (cheader_filename = "cogl/cogl.h")]
665 public static void push_draw_buffer ();
666 [CCode (cheader_filename = "cogl/cogl.h")]
667 public static void push_matrix ();
668 [CCode (cheader_filename = "cogl/cogl.h")]
669 public static void rectangle (float x_1, float y_1, float x_2, float y_2);
670 [CCode (cheader_filename = "cogl/cogl.h")]
671 public static void rectangle_with_multitexture_coords (float x1, float y1, float x2, float y2, out float tex_coords, int tex_coords_len);
672 [CCode (cheader_filename = "cogl/cogl.h")]
673 public static void rectangle_with_texture_coords (float x1, float y1, float x2, float y2, float tx1, float ty1, float tx2, float ty2);
674 [CCode (cheader_filename = "cogl/cogl.h")]
675 public static void rectangles (out float verts, uint n_rects);
676 [CCode (cheader_filename = "cogl/cogl.h")]
677 public static void rectangles_with_texture_coords (out float verts, uint n_rects);
678 [CCode (cheader_filename = "cogl/cogl.h")]
679 public static void rotate (float angle, float x, float y, float z);
680 [CCode (cheader_filename = "cogl/cogl.h")]
681 public static void scale (float x, float y, float z);
682 [CCode (cheader_filename = "cogl/cogl.h")]
683 public static void set_backface_culling_enabled (bool setting);
684 [CCode (cheader_filename = "cogl/cogl.h")]
685 public static void set_depth_test_enable (bool setting);
686 [CCode (cheader_filename = "cogl/cogl.h")]
687 public static void set_draw_buffer (Cogl.BufferTarget target, Cogl.Handle offscreen);
688 [CCode (cheader_filename = "cogl/cogl.h")]
689 public static void set_fog (Cogl.Color fog_color, Cogl.FogMode mode, float density, float z_near, float z_far);
690 [CCode (cheader_filename = "cogl/cogl.h")]
691 public static void set_modelview_matrix (Cogl.Matrix matrix);
692 [CCode (cheader_filename = "cogl/cogl.h")]
693 public static void set_projection_matrix (Cogl.Matrix matrix);
694 [CCode (cheader_filename = "cogl/cogl.h")]
695 public static void set_source (Cogl.Handle material);
696 [CCode (cheader_filename = "cogl/cogl.h")]
697 public static void set_source_color (Cogl.Color color);
698 [CCode (cheader_filename = "cogl/cogl.h")]
699 public static void set_source_color4f (float red, float green, float blue, float alpha);
700 [CCode (cheader_filename = "cogl/cogl.h")]
701 public static void set_source_color4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
702 [CCode (cheader_filename = "cogl/cogl.h")]
703 public static void set_source_texture (Cogl.Handle texture_handle);
704 [CCode (cheader_filename = "cogl/cogl.h")]
705 public static void shader_compile (Cogl.Handle handle);
706 [CCode (cheader_filename = "cogl/cogl.h")]
707 public static string shader_get_info_log (Cogl.Handle handle);
708 [CCode (cheader_filename = "cogl/cogl.h")]
709 public static Cogl.ShaderType shader_get_type (Cogl.Handle handle);
710 [CCode (cheader_filename = "cogl/cogl.h")]
711 public static bool shader_is_compiled (Cogl.Handle handle);
712 [CCode (cheader_filename = "cogl/cogl.h")]
713 public static Cogl.Handle shader_ref (Cogl.Handle handle);
714 [CCode (cheader_filename = "cogl/cogl.h")]
715 public static void shader_source (Cogl.Handle shader, string source);
716 [CCode (cheader_filename = "cogl/cogl.h")]
717 public static void shader_unref (Cogl.Handle handle);
718 [CCode (cheader_filename = "cogl/cogl.h")]
719 public static int sqrti (int x);
720 [CCode (cheader_filename = "cogl/cogl.h")]
721 public static int texture_get_data (Cogl.Handle handle, Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)] uint8[] data);
722 [CCode (cheader_filename = "cogl/cogl.h")]
723 public static Cogl.PixelFormat texture_get_format (Cogl.Handle handle);
724 [CCode (cheader_filename = "cogl/cogl.h")]
725 public static uint texture_get_height (Cogl.Handle handle);
726 [CCode (cheader_filename = "cogl/cogl.h")]
727 public static int texture_get_max_waste (Cogl.Handle handle);
728 [CCode (cheader_filename = "cogl/cogl.h")]
729 public static uint texture_get_rowstride (Cogl.Handle handle);
730 [CCode (cheader_filename = "cogl/cogl.h")]
731 public static uint texture_get_width (Cogl.Handle handle);
732 [CCode (cheader_filename = "cogl/cogl.h")]
733 public static bool texture_is_sliced (Cogl.Handle handle);
734 [CCode (cheader_filename = "cogl/cogl.h")]
735 public static Cogl.Handle texture_new_from_bitmap (Cogl.Handle bmp_handle, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
736 [CCode (cheader_filename = "cogl/cogl.h")]
737 public static Cogl.Handle texture_new_from_data (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat format, Cogl.PixelFormat internal_format, uint rowstride, [CCode (array_length = false)] uint8[] data);
738 [CCode (cheader_filename = "cogl/cogl.h")]
739 public static Cogl.Handle texture_new_from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format) throws GLib.Error;
740 [CCode (cheader_filename = "cogl/cogl.h")]
741 public static Cogl.Handle texture_new_with_size (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
742 [CCode (cheader_filename = "cogl/cogl.h")]
743 public static Cogl.Handle texture_ref (Cogl.Handle handle);
744 [CCode (cheader_filename = "cogl/cogl.h")]
745 public static bool texture_set_region (Cogl.Handle handle, int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint dst_height, int width, int height, Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)] uint8[] data);
746 [CCode (cheader_filename = "cogl/cogl.h")]
747 public static void texture_unref (Cogl.Handle handle);
748 [CCode (cheader_filename = "cogl/cogl.h")]
749 public static void translate (float x, float y, float z);
750 [CCode (cheader_filename = "cogl/cogl.h")]
751 public static void vertex_buffer_add (Cogl.Handle handle, string attribute_name, uint8 n_components, Cogl.AttributeType type, bool normalized, uint16 stride, void* pointer);
752 [CCode (cheader_filename = "cogl/cogl.h")]
753 public static void vertex_buffer_delete (Cogl.Handle handle, string attribute_name);
754 [CCode (cheader_filename = "cogl/cogl.h")]
755 public static void vertex_buffer_delete_indices (Cogl.Handle handle, int indices_id);
756 [CCode (cheader_filename = "cogl/cogl.h")]
757 public static void vertex_buffer_disable (Cogl.Handle handle, string attribute_name);
758 [CCode (cheader_filename = "cogl/cogl.h")]
759 public static void vertex_buffer_draw (Cogl.Handle handle, Cogl.VerticesMode mode, int first, int count);
760 [CCode (cheader_filename = "cogl/cogl.h")]
761 public static void vertex_buffer_draw_elements (Cogl.Handle handle, Cogl.VerticesMode mode, Cogl.Handle indices, int min_index, int max_index, int indices_offset, int count);
762 [CCode (cheader_filename = "cogl/cogl.h")]
763 public static void vertex_buffer_enable (Cogl.Handle handle, string attribute_name);
764 [CCode (cheader_filename = "cogl/cogl.h")]
765 public static uint vertex_buffer_get_n_vertices (Cogl.Handle handle);
766 [CCode (cheader_filename = "cogl/cogl.h")]
767 public static Cogl.Handle vertex_buffer_indices_get_for_quads (uint n_indices);
768 [CCode (cheader_filename = "cogl/cogl.h")]
769 public static Cogl.Handle vertex_buffer_indices_new (Cogl.IndicesType indices_type, void* indices_array, int indices_len);
770 [CCode (cheader_filename = "cogl/cogl.h")]
771 public static Cogl.Handle vertex_buffer_new (uint n_vertices);
772 [CCode (cheader_filename = "cogl/cogl.h")]
773 public static Cogl.Handle vertex_buffer_ref (Cogl.Handle handle);
774 [CCode (cheader_filename = "cogl/cogl.h")]
775 public static void vertex_buffer_submit (Cogl.Handle handle);
776 [CCode (cheader_filename = "cogl/cogl.h")]
777 public static void vertex_buffer_unref (Cogl.Handle handle);
778 [CCode (cheader_filename = "cogl/cogl.h")]
779 public static void viewport (uint width, uint height);