[vala] cogl-1.0: Replaced the cogl-1.0 bindings with generated ones
- From: Ali Sabil <asabil src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] cogl-1.0: Replaced the cogl-1.0 bindings with generated ones
- Date: Tue, 10 Nov 2009 22:50:48 +0000 (UTC)
commit 776c1fd74f2126d101ddb19da3a0d68232d75054
Author: Ali Sabil <ali sabil gmail com>
Date: Tue Nov 10 23:44:56 2009 +0100
cogl-1.0: Replaced the cogl-1.0 bindings with generated ones
vapi/cogl-1.0.deps | 2 +-
vapi/cogl-1.0.vapi | 686 ++++-------
vapi/gl-1.0.vapi | 57 -
vapi/packages/cogl-1.0/cogl-1.0-custom.vala | 161 +++
vapi/packages/cogl-1.0/cogl-1.0.defines | 2 +
vapi/packages/cogl-1.0/cogl-1.0.deps | 1 +
vapi/packages/cogl-1.0/cogl-1.0.excludes | 2 +
vapi/packages/cogl-1.0/cogl-1.0.files | 2 +
vapi/packages/cogl-1.0/cogl-1.0.gi | 1753 +++++++++++++++++++++++++++
vapi/packages/cogl-1.0/cogl-1.0.metadata | 63 +
vapi/packages/cogl-1.0/cogl-1.0.namespace | 1 +
11 files changed, 2240 insertions(+), 490 deletions(-)
---
diff --git a/vapi/cogl-1.0.deps b/vapi/cogl-1.0.deps
index cac8e74..98ccac5 100644
--- a/vapi/cogl-1.0.deps
+++ b/vapi/cogl-1.0.deps
@@ -1 +1 @@
-gl-1.0
+pango
diff --git a/vapi/cogl-1.0.vapi b/vapi/cogl-1.0.vapi
index 460846d..7a143d9 100644
--- a/vapi/cogl-1.0.vapi
+++ b/vapi/cogl-1.0.vapi
@@ -2,47 +2,211 @@
[CCode (cprefix = "Cogl", lower_case_cprefix = "cogl_")]
namespace Cogl {
+ [Compact]
+ [CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class Bitmap : Cogl.Handle {
+ public static bool get_size_from_file (string filename, out int width, out int height);
+ public static Cogl.Bitmap new_from_file (string filename) throws GLib.Error;
+ }
+ [Compact]
+ [CCode (ref_function = "cogl_handle_ref", unref_function = "cogl_handle_unref", cheader_filename = "cogl/cogl.h")]
+ public class Handle {
+ [CCode (cname = "cogl_is_material")]
+ public bool is_material ();
+ [CCode (cname = "cogl_is_offscreen")]
+ public bool is_offscreen ();
+ [CCode (cname = "cogl_is_program")]
+ public bool is_program ();
+ [CCode (cname = "cogl_is_shader")]
+ public bool is_shader ();
+ [CCode (cname = "cogl_is_texture")]
+ public bool is_texture ();
+ [CCode (cname = "cogl_is_vertex_buffer")]
+ public bool is_vertex_buffer ();
+ }
+ [Compact]
+ [CCode (ref_function = "cogl_material_ref", unref_function = "cogl_material_unref", cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class Material : Cogl.Handle {
+ [CCode (has_construct_function = false)]
+ public Material ();
+ public void get_ambient (out Cogl.Color ambient);
+ public void get_color (out Cogl.Color color);
+ public void get_diffuse (out Cogl.Color diffuse);
+ public void get_emission (out Cogl.Color emission);
+ public unowned GLib.List<Cogl.MaterialLayer> get_layers ();
+ public int get_n_layers ();
+ public float get_shininess ();
+ public void get_specular (out Cogl.Color specular);
+ public void remove_layer (int layer_index);
+ public void set_alpha_test_function (Cogl.MaterialAlphaFunc alpha_func, float alpha_reference);
+ public void set_ambient (Cogl.Color ambient);
+ public void set_ambient_and_diffuse (Cogl.Color color);
+ public bool set_blend (string blend_string) throws Cogl.BlendStringError;
+ public void set_blend_constant (Cogl.Color constant_color);
+ public void set_color (Cogl.Color color);
+ public void set_color4f (float red, float green, float blue, float alpha);
+ public void set_color4ub (uchar red, uchar green, uchar blue, uchar alpha);
+ public void set_diffuse (Cogl.Color diffuse);
+ public void set_emission (Cogl.Color emission);
+ public void set_layer (int layer_index, Cogl.Texture texture);
+ public bool set_layer_combine (int layer_index, string blend_string) throws Cogl.BlendStringError;
+ public void set_layer_combine_constant (int layer_index, Cogl.Color constant);
+ public void set_layer_filters (int layer_index, Cogl.MaterialFilter min_filter, Cogl.MaterialFilter mag_filter);
+ public void set_layer_matrix (int layer_index, Cogl.Matrix matrix);
+ public void set_shininess (float shininess);
+ public void set_specular (Cogl.Color specular);
+ }
+ [Compact]
+ [CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class MaterialLayer : Cogl.Handle {
+ public Cogl.MaterialFilter get_mag_filter ();
+ public Cogl.MaterialFilter get_min_filter ();
+ public unowned Cogl.Texture? get_texture ();
+ public Cogl.MaterialLayerType get_type ();
+ }
+ [Compact]
+ [CCode (ref_function = "cogl_offscreen_ref", unref_function = "cogl_offscreen_unref", cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class Offscreen : Cogl.Handle {
+ [CCode (cname = "cogl_pop_draw_buffer")]
+ public static void pop_draw_buffer ();
+ [CCode (cname = "cogl_push_draw_buffer")]
+ public static void push_draw_buffer ();
+ [CCode (instance_pos = -1)]
+ public void set_draw_buffer (Cogl.BufferTarget target);
+ [CCode (has_construct_function = false)]
+ public Offscreen.to_texture (Cogl.Texture handle);
+ }
+ [Compact]
+ [CCode (cheader_filename = "cogl/cogl.h")]
+ public class PangoFontMap {
+ [CCode (type = "PangoFontMap*", has_construct_function = false)]
+ public PangoFontMap ();
+ public void clear_glyph_cache ();
+ public unowned Pango.Context create_context ();
+ public unowned Pango.Renderer get_renderer ();
+ public bool get_use_mipmapping ();
+ public void set_resolution (double dpi);
+ public void set_use_mipmapping (bool value);
+ }
[CCode (cheader_filename = "cogl/cogl.h")]
- [SimpleType]
- [IntegerType (rank = 0)]
- public struct Angle : int32 {
+ public class PangoRenderer : Pango.Renderer {
+ }
+ [Compact]
+ [CCode (cheader_filename = "cogl/cogl.h")]
+ public class PangoRendererClass {
+ }
+ [Compact]
+ [CCode (ref_function = "cogl_program_ref", unref_function = "cogl_program_unref", cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class Program : Cogl.Handle {
+ [CCode (cname = "cogl_create_program", has_construct_function = false)]
+ public Program ();
+ public void attach_shader (Cogl.Shader shader_handle);
+ public int get_uniform_location (string uniform_name);
+ public void link ();
+ public static void uniform_1f (int uniform_no, float value);
+ public static void uniform_1i (int uniform_no, int value);
+ public static void uniform_float (int uniform_no, int size, [CCode (array_length_pos = 2.9)] float[] value);
+ public static void uniform_int (int uniform_no, int size, [CCode (array_length_pos = 2.9)] int[] value);
+ public static void uniform_matrix (int uniform_no, int size, bool transpose, [CCode (array_length_pos = 2.9)] float[] value);
+ public void use ();
+ }
+ [Compact]
+ [CCode (ref_function = "cogl_shader_ref", unref_function = "cogl_shader_unref", cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class Shader : Cogl.Handle {
+ [CCode (cname = "cogl_create_shader", has_construct_function = false)]
+ public Shader (Cogl.ShaderType shader_type);
+ public void compile ();
+ public string get_info_log ();
+ public Cogl.ShaderType get_type ();
+ public bool is_compiled ();
+ public void source (string source);
+ }
+ [Compact]
+ [CCode (ref_function = "cogl_texture_ref", unref_function = "cogl_texture_unref", cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class Texture : Cogl.Handle {
+ public Texture.from_bitmap (Cogl.Bitmap bmp_handle, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
+ public Texture.from_data (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat format, Cogl.PixelFormat internal_format, uint rowstride, uchar[] data);
+ public Texture.from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format) throws GLib.Error;
+ public int get_data (Cogl.PixelFormat format, uint rowstride, uchar[] data);
+ public Cogl.PixelFormat get_format ();
+ public uint get_height ();
+ public int get_max_waste ();
+ public uint get_rowstride ();
+ public uint get_width ();
+ public bool is_sliced ();
+ public bool set_region (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, uchar[] data);
+ public Texture.with_size (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
+ }
+ [Compact]
+ [CCode (ref_function = "cogl_vertex_buffer_ref", unref_function = "cogl_vertex_buffer_unref", cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class VertexBuffer : Cogl.Handle {
+ [CCode (has_construct_function = false)]
+ public VertexBuffer (uint n_vertices);
+ public void add (string attribute_name, uchar n_components, Cogl.AttributeType type, bool normalized, uint16 stride, void* pointer);
+ public void @delete (string attribute_name);
+ public void disable (string attribute_name);
+ public void draw (Cogl.VerticesMode mode, int first, int count);
+ public void draw_elements (Cogl.VerticesMode mode, Cogl.VertexBufferIndices indices, int min_index, int max_index, int indices_offset, int count);
+ public void enable (string attribute_name);
+ public uint get_n_vertices ();
+ public void submit ();
+ }
+ [Compact]
+ [CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h")]
+ public class VertexBufferIndices : Cogl.Handle {
+ public VertexBufferIndices (Cogl.IndicesType indices_type, void* indices_array, int indices_len);
+ public static unowned Cogl.VertexBufferIndices get_for_quads (uint n_indices);
+ public Cogl.IndicesType get_type ();
+ }
+ [CCode (type_id = "COGL_TYPE_ANGLE", cheader_filename = "cogl/cogl.h")]
+ public struct Angle {
+ public Cogl.Fixed cos ();
+ public Cogl.Fixed sin ();
+ public Cogl.Fixed tan ();
}
[CCode (type_id = "COGL_TYPE_COLOR", cheader_filename = "cogl/cogl.h")]
public struct Color {
- public uint8 red;
- public uint8 green;
- public uint8 blue;
- public uint8 alpha;
+ public uchar red;
+ public uchar green;
+ public uchar blue;
+ public uchar alpha;
public uint32 padding0;
public uint32 padding1;
public uint32 padding2;
+ [CCode (cname = "cogl_color_new", has_construct_function = false)]
+ public Color ();
public Cogl.Color copy ();
- public void free ();
+ public static bool equal (void* v1, void* v2);
public float get_alpha ();
- public uint8 get_alpha_byte ();
+ public uint get_alpha_byte ();
public float get_alpha_float ();
public float get_blue ();
- public uint8 get_blue_byte ();
+ public uint get_blue_byte ();
public float get_blue_float ();
public float get_green ();
- public uint8 get_green_byte ();
+ public uint get_green_byte ();
public float get_green_float ();
public float get_red ();
- public uint8 get_red_byte ();
+ public uint get_red_byte ();
public float get_red_float ();
+ public void premultiply ();
public void set_from_4f (float red, float green, float blue, float alpha);
- public void set_from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
- }
- [CCode (cheader_filename = "cogl/cogl.h")]
- [SimpleType]
- [IntegerType (rank = 0)]
- public struct Fixed : int32 {
+ public void set_from_4ub (uchar red, uchar green, uchar blue, uchar alpha);
}
- [CCode (type_id = "COGL_TYPE_HANDLE", cheader_filename = "cogl/cogl.h")]
- public struct Handle {
- public int ignoreme;
- public Cogl.Handle @ref ();
- public void unref ();
+ [CCode (type_id = "COGL_TYPE_FIXED", cheader_filename = "cogl/cogl.h")]
+ public struct Fixed {
+ public Cogl.Fixed atan2 (Cogl.Fixed b);
+ public Cogl.Fixed atani ();
+ public Cogl.Fixed cos ();
+ public Cogl.Fixed div (Cogl.Fixed b);
+ public static Cogl.Fixed log2 (uint x);
+ public Cogl.Fixed mul (Cogl.Fixed b);
+ public Cogl.Fixed mul_div (Cogl.Fixed b, Cogl.Fixed c);
+ public static uint pow (uint x, Cogl.Fixed y);
+ public uint pow2 ();
+ public Cogl.Fixed sin ();
+ public Cogl.Fixed sqrt ();
+ public Cogl.Fixed tan ();
}
[CCode (type_id = "COGL_TYPE_MATRIX", cheader_filename = "cogl/cogl.h")]
public struct Matrix {
@@ -62,10 +226,18 @@ namespace Cogl {
public float yw;
public float zw;
public float ww;
- public weak float[] _padding0;
- public ulong _padding1;
- public ulong _padding2;
- public ulong _padding3;
+ public Matrix.from_array (float[] array);
+ public void frustum (float left, float right, float bottom, float top, float z_near, float z_far);
+ public unowned float[] get_array ();
+ public Matrix.identity ();
+ [CCode (cname = "cogl_matrix_multiply")]
+ public Matrix.multiply (Cogl.Matrix a, Cogl.Matrix b);
+ public void ortho (float left, float right, float bottom, float top, float z_near, float z_far);
+ public void perspective (float fov_y, float aspect, float z_near, float z_far);
+ public void rotate (float angle, float x, float y, float z);
+ public void scale (float sx, float sy, float sz);
+ public void transform_point (float x, float y, float z, float w);
+ public void translate (float x, float y, float z);
}
[CCode (type_id = "COGL_TYPE_TEXTURE_VERTEX", cheader_filename = "cogl/cogl.h")]
public struct TextureVertex {
@@ -85,64 +257,51 @@ namespace Cogl {
FLOAT
}
[CCode (cprefix = "COGL_BUFFER_BIT_", cheader_filename = "cogl/cogl.h")]
+ [Flags]
public enum BufferBit {
COLOR,
DEPTH,
STENCIL
}
- [CCode (cprefix = "COGL_BUFFER_TARGET_", cheader_filename = "cogl/cogl.h")]
+ [CCode (cprefix = "COGL_", cheader_filename = "cogl/cogl.h")]
+ [Flags]
public enum BufferTarget {
- [CCode (cname = "COGL_WINDOW_BUFFER")]
WINDOW_BUFFER,
- [CCode (cname = "COGL_OFFSCREEN_BUFFER")]
OFFSCREEN_BUFFER
}
- [CCode (cprefix = "COGL_DEBUG_FLAGS_", cheader_filename = "cogl/cogl.h")]
+ [CCode (cprefix = "COGL_DEBUG_", cheader_filename = "cogl/cogl.h")]
+ [Flags]
public enum DebugFlags {
- [CCode (cname = "COGL_DEBUG_MISC")]
MISC,
- [CCode (cname = "COGL_DEBUG_TEXTURE")]
TEXTURE,
- [CCode (cname = "COGL_DEBUG_MATERIAL")]
MATERIAL,
- [CCode (cname = "COGL_DEBUG_SHADER")]
SHADER,
- [CCode (cname = "COGL_DEBUG_OFFSCREEN")]
OFFSCREEN,
- [CCode (cname = "COGL_DEBUG_DRAW")]
DRAW,
- [CCode (cname = "COGL_DEBUG_PANGO")]
PANGO,
- [CCode (cname = "COGL_DEBUG_RECTANGLES")]
RECTANGLES,
- [CCode (cname = "COGL_DEBUG_HANDLE")]
HANDLE,
- [CCode (cname = "COGL_DEBUG_BLEND_STRINGS")]
- BLEND_STRINGS
+ BLEND_STRINGS,
+ DISABLE_BATCHING,
+ FORCE_CLIENT_SIDE_MATRICES,
+ DISABLE_VBOS,
+ JOURNAL,
+ BATCHING,
+ DISABLE_SOFTWARE_TRANSFORM
}
- [CCode (cprefix = "COGL_FEATURE_FLAGS_", cheader_filename = "cogl/cogl.h")]
+ [CCode (cprefix = "COGL_FEATURE_", cheader_filename = "cogl/cogl.h")]
+ [Flags]
public enum FeatureFlags {
- [CCode (cname = "COGL_FEATURE_TEXTURE_RECTANGLE")]
TEXTURE_RECTANGLE,
- [CCode (cname = "COGL_FEATURE_TEXTURE_NPOT")]
TEXTURE_NPOT,
- [CCode (cname = "COGL_FEATURE_TEXTURE_YUV")]
TEXTURE_YUV,
- [CCode (cname = "COGL_FEATURE_TEXTURE_READ_PIXELS")]
TEXTURE_READ_PIXELS,
- [CCode (cname = "COGL_FEATURE_SHADERS_GLSL")]
SHADERS_GLSL,
- [CCode (cname = "COGL_FEATURE_OFFSCREEN")]
OFFSCREEN,
- [CCode (cname = "COGL_FEATURE_OFFSCREEN_MULTISAMPLE")]
OFFSCREEN_MULTISAMPLE,
- [CCode (cname = "COGL_FEATURE_OFFSCREEN_BLIT")]
OFFSCREEN_BLIT,
- [CCode (cname = "COGL_FEATURE_FOUR_CLIP_PLANES")]
FOUR_CLIP_PLANES,
- [CCode (cname = "COGL_FEATURE_STENCIL_BUFFER")]
STENCIL_BUFFER,
- [CCode (cname = "COGL_FEATURE_VBOS")]
VBOS
}
[CCode (cprefix = "COGL_FOG_MODE_", cheader_filename = "cogl/cogl.h")]
@@ -154,8 +313,7 @@ namespace Cogl {
[CCode (cprefix = "COGL_INDICES_TYPE_UNSIGNED_", cheader_filename = "cogl/cogl.h")]
public enum IndicesType {
BYTE,
- SHORT,
- INT
+ SHORT
}
[CCode (cprefix = "COGL_MATERIAL_ALPHA_FUNC_", cheader_filename = "cogl/cogl.h")]
public enum MaterialAlphaFunc {
@@ -203,18 +361,21 @@ namespace Cogl {
RGBA_4444_PRE,
RGBA_5551_PRE
}
+ [CCode (cprefix = "COGL_READ_PIXELS_COLOR_", cheader_filename = "cogl/cogl.h")]
+ [Flags]
+ public enum ReadPixelsFlags {
+ BUFFER
+ }
[CCode (cprefix = "COGL_SHADER_TYPE_", cheader_filename = "cogl/cogl.h")]
public enum ShaderType {
VERTEX,
FRAGMENT
}
- [CCode (cprefix = "COGL_TEXTURE_FLAGS_", cheader_filename = "cogl/cogl.h")]
+ [CCode (cprefix = "COGL_TEXTURE_", cheader_filename = "cogl/cogl.h")]
+ [Flags]
public enum TextureFlags {
- [CCode (cname = "COGL_TEXTURE_NONE")]
NONE,
- [CCode (cname = "COGL_TEXTURE_NO_AUTO_MIPMAP")]
NO_AUTO_MIPMAP,
- [CCode (cname = "COGL_TEXTURE_NO_SLICING")]
NO_SLICING
}
[CCode (cprefix = "COGL_VERTICES_MODE_", cheader_filename = "cogl/cogl.h")]
@@ -227,124 +388,15 @@ namespace Cogl {
TRIANGLE_FAN,
TRIANGLES
}
+ [CCode (cprefix = "COGL_BLEND_STRING_ERROR_", cheader_filename = "cogl/cogl.h")]
+ public errordomain BlendStringError {
+ PARSE_ERROR,
+ ARGUMENT_PARSE_ERROR,
+ INVALID_ERROR,
+ GPU_UNSUPPORTED_ERROR,
+ }
[CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
public delegate void FuncPtr ();
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLACTIVETEXTUREPROC (GL.enum texture);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLATTACHOBJECTARBPROC (GL.handleARB containerObj, GL.handleARB obj);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLBINDBUFFERARBPROC (GL.enum target, GL.uint buffer);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLBINDFRAMEBUFFEREXTPROC (GL.enum target, GL.uint framebuffer);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLBINDRENDERBUFFEREXTPROC (GL.enum target, GL.uint renderbuffer);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLBLENDCOLORPROC (GL.clampf red, GL.clampf green, GL.clampf blue, GL.clampf alpha);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLBLENDEQUATIONPROC (GL.enum mode);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLBLENDEQUATIONSEPARATEPROC (GL.enum modeRGB, GL.enum modeAlpha);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLBLENDFUNCSEPARATEPROC (GL.enum srcRGB, GL.enum dstRGB, GL.enum srcAlpha, GL.enum dstAlpha);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- 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);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate GL.enum PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC (GL.enum target);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLCLIENTACTIVETEXTUREPROC (GL.enum texture);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLCOMPILESHADERARBPROC (GL.handleARB shaderObj);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate GL.handleARB PFNGLCREATEPROGRAMOBJECTARBPROC ();
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate GL.handleARB PFNGLCREATESHADEROBJECTARBPROC (GL.enum shaderType);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLDELETEBUFFERSARBPROC (GL.sizei n, GL.uint buffers);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLDELETEFRAMEBUFFERSEXTPROC (GL.sizei n, GL.uint framebuffers);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLDELETEOBJECTARBPROC (GL.handleARB obj);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLDELETERENDERBUFFERSEXTPROC (GL.sizei n, GL.uint renderbuffers);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLDISABLEVERTEXATTRIBARRAYARBPROC (GL.uint index);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLDRAWRANGEELEMENTSPROC (GL.enum mode, GL.uint start, GL.uint end, GL.sizei count, GL.enum type, void indices);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLENABLEVERTEXATTRIBARRAYARBPROC (GL.uint index);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC (GL.enum target, GL.enum attachment, GL.enum renderbuffertarget, GL.uint renderbuffer);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLFRAMEBUFFERTEXTURE2DEXTPROC (GL.enum target, GL.enum attachment, GL.enum textarget, GL.uint texture, GL.int level);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLGENBUFFERSARBPROC (GL.uint n, GL.uint buffers);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLGENERATEMIPMAPEXTPROC (GL.enum target);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLGENFRAMEBUFFERSEXTPROC (GL.sizei n, GL.uint framebuffers);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLGENRENDERBUFFERSEXTPROC (GL.sizei n, GL.uint renderbuffers);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLGETINFOLOGARBPROC (GL.handleARB obj, GL.sizei maxLength, GL.sizei length, GL.charARB infoLog);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLGETOBJECTPARAMETERIVARBPROC (GL.handleARB obj, GL.enum pname, GL.int @params);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate GL.int PFNGLGETUNIFORMLOCATIONARBPROC (GL.handleARB programObj, GL.charARB name);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLLINKPROGRAMARBPROC (GL.handleARB programObj);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void* PFNGLMAPBUFFERARBPROC (GL.enum target, GL.enum access);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLRENDERBUFFERSTORAGEEXTPROC (GL.enum target, GL.enum internalformat, GL.sizei width, GL.sizei height);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC (GL.enum target, GL.sizei samples, GL.enum internalformat, GL.sizei width, GL.sizei height);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLSHADERSOURCEARBPROC (GL.handleARB shaderObj, GL.sizei count, GL.charARB string, GL.int length);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM1FARBPROC (GL.int location, GL.float v0);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM1FVARBPROC (GL.int location, GL.sizei count, GL.float value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM1IARBPROC (GL.int location, GL.int v0);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM1IVARBPROC (GL.int location, GL.sizei count, GL.int value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM2FARBPROC (GL.int location, GL.float v0, GL.float v1);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM2FVARBPROC (GL.int location, GL.sizei count, GL.float value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM2IARBPROC (GL.int location, GL.int v0, GL.int v1);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM2IVARBPROC (GL.int location, GL.sizei count, GL.int value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM3FARBPROC (GL.int location, GL.float v0, GL.float v1, GL.float v2);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM3FVARBPROC (GL.int location, GL.sizei count, GL.float value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM3IARBPROC (GL.int location, GL.int v0, GL.int v1, GL.int v2);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM3IVARBPROC (GL.int location, GL.sizei count, GL.int value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM4FARBPROC (GL.int location, GL.float v0, GL.float v1, GL.float v2, GL.float v3);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM4FVARBPROC (GL.int location, GL.sizei count, GL.float value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM4IARBPROC (GL.int location, GL.int v0, GL.int v1, GL.int v2, GL.int v3);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORM4IVARBPROC (GL.int location, GL.sizei count, GL.int value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORMMATRIX2FVARBPROC (GL.int location, GL.sizei count, GL.boolean transpose, GL.float value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORMMATRIX3FVARBPROC (GL.int location, GL.sizei count, GL.boolean transpose, GL.float value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUNIFORMMATRIX4FVARBPROC (GL.int location, GL.sizei count, GL.boolean transpose, GL.float value);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate GL.boolean PFNGLUNMAPBUFFERARBPROC (GL.enum target);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLUSEPROGRAMOBJECTARBPROC (GL.handleARB programObj);
- [CCode (cheader_filename = "cogl/cogl.h", has_target = false)]
- public delegate void PFNGLVERTEXATTRIBPOINTERARBPROC (GL.uint index, GL.int size, GL.enum type, GL.boolean normalized, GL.sizei stride, void pointer);
[CCode (cheader_filename = "cogl/cogl.h")]
public const int AFIRST_BIT;
[CCode (cheader_filename = "cogl/cogl.h")]
@@ -352,16 +404,6 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
public const int BGR_BIT;
[CCode (cheader_filename = "cogl/cogl.h")]
- public const int CGL_TEXTURE_RECTANGLE_ARB;
- [CCode (cheader_filename = "cogl/cogl.h")]
- public const int CGL_UNSIGNED_SHORT_8_8_MESA;
- [CCode (cheader_filename = "cogl/cogl.h")]
- public const int CGL_UNSIGNED_SHORT_8_8_REV_MESA;
- [CCode (cheader_filename = "cogl/cogl.h")]
- public const int CGL_YCBCR_MESA;
- [CCode (cheader_filename = "cogl/cogl.h")]
- public const int CLUTTER_COGL_HAS_GL;
- [CCode (cheader_filename = "cogl/cogl.h")]
public const int FIXED_0_5;
[CCode (cheader_filename = "cogl/cogl.h")]
public const int FIXED_1;
@@ -404,15 +446,7 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
public const int UNPREMULT_MASK;
[CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed angle_cos (Cogl.Angle angle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed angle_sin (Cogl.Angle angle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed angle_tan (Cogl.Angle angle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool bitmap_get_size_from_file (string filename, out int width, out int height);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle bitmap_new_from_file (string filename) throws GLib.Error;
+ public static void begin_gl ();
[CCode (cheader_filename = "cogl/cogl.h")]
public static bool check_extension (string name, string ext);
[CCode (cheader_filename = "cogl/cogl.h")]
@@ -434,10 +468,6 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
public static void clip_stack_save ();
[CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle create_program ();
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle create_shader (Cogl.ShaderType shader_type);
- [CCode (cheader_filename = "cogl/cogl.h")]
public static void disable_fog ();
[CCode (cheader_filename = "cogl/cogl.h")]
public static Cogl.Fixed double_to_fixed (double value);
@@ -446,155 +476,41 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
public static uint double_to_unit (double value);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static bool features_available (Cogl.FeatureFlags features);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_atan2 (Cogl.Fixed a, Cogl.Fixed b);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_atani (Cogl.Fixed a);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_cos (Cogl.Fixed angle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_div (Cogl.Fixed a, Cogl.Fixed b);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_log2 (uint x);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_mul (Cogl.Fixed a, Cogl.Fixed b);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_mul_div (Cogl.Fixed a, Cogl.Fixed b, Cogl.Fixed c);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static uint fixed_pow (uint x, Cogl.Fixed y);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static uint fixed_pow2 (Cogl.Fixed x);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_sin (Cogl.Fixed angle);
+ public static void end_gl ();
[CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_sqrt (Cogl.Fixed x);
+ public static bool features_available (Cogl.FeatureFlags features);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Fixed fixed_tan (Cogl.Fixed angle);
+ public static void flush ();
[CCode (cheader_filename = "cogl/cogl.h")]
public static void frustum (float left, float right, float bottom, float top, float z_near, float z_far);
[CCode (cheader_filename = "cogl/cogl.h")]
public static bool get_backface_culling_enabled ();
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void get_bitmasks (out int red, out int green, out int blue, out int alpha);
+ public static void get_bitmasks (int red, int green, int blue, int alpha);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static bool get_depth_test_enable ();
+ public static bool get_depth_test_enabled ();
[CCode (cheader_filename = "cogl/cogl.h")]
public static Cogl.FeatureFlags get_features ();
[CCode (cheader_filename = "cogl/cogl.h")]
public static void get_modelview_matrix (Cogl.Matrix matrix);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static GLib.OptionGroup get_option_group ();
+ public static unowned GLib.OptionGroup get_option_group ();
[CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.FuncPtr get_proc_address (string name);
+ public static unowned Cogl.FuncPtr get_proc_address (string name);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void get_projection_matrix (Cogl.Matrix matrix);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void get_viewport (float v);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool is_material (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool is_offscreen (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool is_program (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool is_shader (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool is_texture (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_get_ambient (Cogl.Handle material, Cogl.Color ambient);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_get_color (Cogl.Handle material, Cogl.Color color);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_get_diffuse (Cogl.Handle material, Cogl.Color diffuse);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_get_emission (Cogl.Handle material, Cogl.Color emission);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static unowned GLib.List material_get_layers (Cogl.Handle material_handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static float material_get_shininess (Cogl.Handle material);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_get_specular (Cogl.Handle material, Cogl.Color specular);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.MaterialFilter material_layer_get_mag_filter (Cogl.Handle layer_handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.MaterialFilter material_layer_get_min_filter (Cogl.Handle layer_handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle material_layer_get_texture (Cogl.Handle layer_handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.MaterialLayerType material_layer_get_type (Cogl.Handle layer_handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle material_new ();
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle material_ref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_remove_layer (Cogl.Handle material, int layer_index);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_alpha_test_function (Cogl.Handle material, Cogl.MaterialAlphaFunc alpha_func, float alpha_reference);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_ambient (Cogl.Handle material, Cogl.Color ambient);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_ambient_and_diffuse (Cogl.Handle material, Cogl.Color color);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool material_set_blend (Cogl.Handle material, string blend_string) throws GLib.Error;
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_blend_constant (Cogl.Handle material, Cogl.Color constant_color);
+ public static void get_viewport (float[] v);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_color (Cogl.Handle material, Cogl.Color color);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_color4f (Cogl.Handle material, float red, float green, float blue, float alpha);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_color4ub (Cogl.Handle material, uint8 red, uint8 green, uint8 blue, uint8 alpha);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_diffuse (Cogl.Handle material, Cogl.Color diffuse);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_emission (Cogl.Handle material, Cogl.Color emission);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_layer (Cogl.Handle material, int layer_index, Cogl.Handle texture);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool material_set_layer_combine (Cogl.Handle material, int layer_index, string blend_string) throws GLib.Error;
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_layer_combine_constant (Cogl.Handle material, int layer_index, Cogl.Color constant);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_layer_filters (Cogl.Handle handle, int layer_index, Cogl.MaterialFilter min_filter, Cogl.MaterialFilter mag_filter);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_layer_matrix (Cogl.Handle material, int layer_index, Cogl.Matrix matrix);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_shininess (Cogl.Handle material, float shininess);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_set_specular (Cogl.Handle material, Cogl.Color specular);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void material_unref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_frustum (Cogl.Matrix matrix, float left, float right, float bottom, float top, float z_near, float z_far);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static float matrix_get_array (Cogl.Matrix matrix);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_init_from_array (Cogl.Matrix matrix, out float array);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_init_identity (Cogl.Matrix matrix);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_multiply (Cogl.Matrix result, Cogl.Matrix a, Cogl.Matrix b);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_ortho (Cogl.Matrix matrix, float left, float right, float bottom, float top, float z_near, float z_far);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_perspective (Cogl.Matrix matrix, float fov_y, float aspect, float z_near, float z_far);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_rotate (Cogl.Matrix matrix, float angle, float x, float y, float z);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_scale (Cogl.Matrix matrix, float sx, float sy, float sz);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_transform_point (Cogl.Matrix matrix, out float x, out float y, out float z, out float w);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void matrix_translate (Cogl.Matrix matrix, float x, float y, float z);
+ public static void ortho (float left, float right, float bottom, float top, float near, float far);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle offscreen_new_to_texture (Cogl.Handle texhandle);
+ public static void pango_ensure_glyph_cache_for_layout (Pango.Layout layout);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle offscreen_ref (Cogl.Handle handle);
+ public static void pango_render_layout (Pango.Layout layout, int x, int y, Cogl.Color color, int flags);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void offscreen_unref (Cogl.Handle handle);
+ public static void pango_render_layout_line (Pango.LayoutLine line, int x, int y, Cogl.Color color);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void ortho (float left, float right, float bottom, float top, float near, float far);
+ public static void pango_render_layout_subpixel (Pango.Layout layout, int x, int y, Cogl.Color color, int flags);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void path_arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2);
[CCode (cheader_filename = "cogl/cogl.h")]
@@ -616,9 +532,9 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
public static void path_new ();
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void path_polygon (out float coords, int num_points);
+ public static void path_polygon (float coords, int num_points);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void path_polyline (out float coords, int num_points);
+ public static void path_polyline (float coords, int num_points);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void path_rectangle (float x_1, float y_1, float x_2, float y_2);
[CCode (cheader_filename = "cogl/cogl.h")]
@@ -636,45 +552,23 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
public static void perspective (float fovy, float aspect, float z_near, float z_far);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void polygon (Cogl.TextureVertex vertices, uint n_vertices, bool use_color);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void pop_draw_buffer ();
+ public static void polygon (Cogl.TextureVertex[] vertices, bool use_color);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void pop_matrix ();
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void program_attach_shader (Cogl.Handle program_handle, Cogl.Handle shader_handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static int program_get_uniform_location (Cogl.Handle handle, string uniform_name);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void program_link (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle program_ref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void program_uniform_1f (int uniform_no, float value);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void program_uniform_1i (int uniform_no, int value);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void program_uniform_int (int uniform_no, int size, int count, out int value);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void program_uniform_matrix (int uniform_no, int size, int count, bool transpose, out float value);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void program_unref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void program_use (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void push_draw_buffer ();
- [CCode (cheader_filename = "cogl/cogl.h")]
public static void push_matrix ();
[CCode (cheader_filename = "cogl/cogl.h")]
+ public static void read_pixels (int x, int y, int width, int height, Cogl.ReadPixelsFlags source, Cogl.PixelFormat format, uchar pixels);
+ [CCode (cheader_filename = "cogl/cogl.h")]
public static void rectangle (float x_1, float y_1, float x_2, float y_2);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void rectangle_with_multitexture_coords (float x1, float y1, float x2, float y2, out float tex_coords, int tex_coords_len);
+ public static void rectangle_with_multitexture_coords (float x1, float y1, float x2, float y2, float tex_coords, int tex_coords_len);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void rectangle_with_texture_coords (float x1, float y1, float x2, float y2, float tx1, float ty1, float tx2, float ty2);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void rectangles (out float verts, uint n_rects);
+ public static void rectangles ([CCode (array_length = false)] float[] verts, uint n_rects);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void rectangles_with_texture_coords (out float verts, uint n_rects);
+ public static void rectangles_with_texture_coords ([CCode (array_length = false)] float[] verts, uint n_rects);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void rotate (float angle, float x, float y, float z);
[CCode (cheader_filename = "cogl/cogl.h")]
@@ -682,9 +576,7 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_backface_culling_enabled (bool setting);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void set_depth_test_enable (bool setting);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void set_draw_buffer (Cogl.BufferTarget target, Cogl.Handle offscreen);
+ public static void set_depth_test_enabled (bool setting);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_fog (Cogl.Color fog_color, Cogl.FogMode mode, float density, float z_near, float z_far);
[CCode (cheader_filename = "cogl/cogl.h")]
@@ -692,89 +584,19 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_projection_matrix (Cogl.Matrix matrix);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void set_source (Cogl.Handle material);
+ public static void set_source (Cogl.Material material);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_source_color (Cogl.Color color);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_source_color4f (float red, float green, float blue, float alpha);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void set_source_color4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void set_source_texture (Cogl.Handle texture_handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void shader_compile (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static string shader_get_info_log (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.ShaderType shader_get_type (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool shader_is_compiled (Cogl.Handle handle);
+ public static void set_source_color4ub (uchar red, uchar green, uchar blue, uchar alpha);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle shader_ref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void shader_source (Cogl.Handle shader, string source);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void shader_unref (Cogl.Handle handle);
+ public static void set_source_texture (Cogl.Texture texture_handle);
[CCode (cheader_filename = "cogl/cogl.h")]
public static int sqrti (int x);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static int texture_get_data (Cogl.Handle handle, Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)] uint8[] data);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.PixelFormat texture_get_format (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static uint texture_get_height (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static int texture_get_max_waste (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static uint texture_get_rowstride (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static uint texture_get_width (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static bool texture_is_sliced (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle texture_new_from_bitmap (Cogl.Handle bmp_handle, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
- [CCode (cheader_filename = "cogl/cogl.h")]
- 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);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle texture_new_from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format) throws GLib.Error;
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle texture_new_with_size (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle texture_ref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- 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);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void texture_unref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
public static void translate (float x, float y, float z);
[CCode (cheader_filename = "cogl/cogl.h")]
- public static void vertex_buffer_add (Cogl.Handle handle, string attribute_name, uint8 n_components, Cogl.AttributeType type, bool normalized, uint16 stride, void* pointer);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void vertex_buffer_delete (Cogl.Handle handle, string attribute_name);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void vertex_buffer_delete_indices (Cogl.Handle handle, int indices_id);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void vertex_buffer_disable (Cogl.Handle handle, string attribute_name);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void vertex_buffer_draw (Cogl.Handle handle, Cogl.VerticesMode mode, int first, int count);
- [CCode (cheader_filename = "cogl/cogl.h")]
- 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);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void vertex_buffer_enable (Cogl.Handle handle, string attribute_name);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static uint vertex_buffer_get_n_vertices (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle vertex_buffer_indices_get_for_quads (uint n_indices);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle vertex_buffer_indices_new (Cogl.IndicesType indices_type, void* indices_array, int indices_len);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle vertex_buffer_new (uint n_vertices);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static Cogl.Handle vertex_buffer_ref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void vertex_buffer_submit (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
- public static void vertex_buffer_unref (Cogl.Handle handle);
- [CCode (cheader_filename = "cogl/cogl.h")]
public static void viewport (uint width, uint height);
}
diff --git a/vapi/packages/cogl-1.0/cogl-1.0-custom.vala b/vapi/packages/cogl-1.0/cogl-1.0-custom.vala
new file mode 100644
index 0000000..ba7653c
--- /dev/null
+++ b/vapi/packages/cogl-1.0/cogl-1.0-custom.vala
@@ -0,0 +1,161 @@
+
+namespace Cogl {
+ [Compact]
+ [CCode (cname = "CoglHandle")]
+ public class Bitmap: Handle {
+ public static bool get_size_from_file (string filename, out int width, out int height);
+ public static Bitmap new_from_file (string filename) throws GLib.Error;
+ }
+
+ [Compact]
+ [CCode (ref_function = "cogl_handle_ref", unref_function = "cogl_handle_unref")]
+ public class Handle {
+ [CCode (cname = "cogl_is_material")]
+ public bool is_material ();
+ [CCode (cname = "cogl_is_offscreen")]
+ public bool is_offscreen ();
+ [CCode (cname = "cogl_is_program")]
+ public bool is_program ();
+ [CCode (cname = "cogl_is_shader")]
+ public bool is_shader ();
+ [CCode (cname = "cogl_is_texture")]
+ public bool is_texture ();
+ [CCode (cname = "cogl_is_vertex_buffer")]
+ public bool is_vertex_buffer ();
+ }
+
+ [Compact]
+ [CCode (cname = "CoglHandle", ref_function = "cogl_material_ref", unref_function = "cogl_material_unref")]
+ public class Material: Handle {
+ [CCode (type = "CoglHandle*", has_construct_function = false)]
+ public Material ();
+ public void get_ambient (out Cogl.Color ambient);
+ public void get_color (out Cogl.Color color);
+ public void get_diffuse (out Cogl.Color diffuse);
+ public void get_emission (out Cogl.Color emission);
+ public unowned GLib.List<Cogl.MaterialLayer> get_layers ();
+ public int get_n_layers ();
+ public float get_shininess ();
+ public void get_specular (out Cogl.Color specular);
+
+ public void remove_layer (int layer_index);
+ public void set_alpha_test_function (Cogl.MaterialAlphaFunc alpha_func, float alpha_reference);
+ public void set_ambient (Cogl.Color ambient);
+ public void set_ambient_and_diffuse (Cogl.Color color);
+ public bool set_blend (string blend_string) throws Cogl.BlendStringError;
+ public void set_blend_constant (Cogl.Color constant_color);
+ public void set_color (Cogl.Color color);
+ public void set_color4f (float red, float green, float blue, float alpha);
+ public void set_color4ub (uchar red, uchar green, uchar blue, uchar alpha);
+ public void set_diffuse (Cogl.Color diffuse);
+ public void set_emission (Cogl.Color emission);
+ public void set_layer (int layer_index, Cogl.Texture texture);
+ public bool set_layer_combine (int layer_index, string blend_string) throws BlendStringError;
+ public void set_layer_combine_constant (int layer_index, Cogl.Color constant);
+ public void set_layer_filters (int layer_index, Cogl.MaterialFilter min_filter, Cogl.MaterialFilter mag_filter);
+ public void set_layer_matrix (int layer_index, Cogl.Matrix matrix);
+ public void set_shininess (float shininess);
+ public void set_specular (Cogl.Color specular);
+ }
+
+ [Compact]
+ [CCode (cname = "CoglHandle")]
+ public class MaterialLayer: Handle {
+ public Cogl.MaterialFilter get_mag_filter ();
+ public Cogl.MaterialFilter get_min_filter ();
+ public unowned Cogl.Texture? get_texture ();
+ public Cogl.MaterialLayerType get_type ();
+ }
+
+ [Compact]
+ [CCode (cname = "CoglHandle", ref_function = "cogl_offscreen_ref", unref_function = "cogl_offscreen_unref")]
+ public class Offscreen: Handle {
+ [CCode (cname = "cogl_offscreen_new_to_texture", type = "CoglHandle*", has_construct_function = false)]
+ public Offscreen.to_texture (Cogl.Texture handle);
+ [CCode (instance_pos = -1)]
+ public void set_draw_buffer (Cogl.BufferTarget target);
+ [CCode (cname = "cogl_pop_draw_buffer")]
+ public static void pop_draw_buffer ();
+ [CCode (cname = "cogl_push_draw_buffer")]
+ public static void push_draw_buffer ();
+ }
+
+ [Compact]
+ [CCode (cname = "CoglHandle", ref_function = "cogl_program_ref", unref_function = "cogl_program_unref")]
+ public class Program: Handle {
+ [CCode (cname = "cogl_create_program", type = "CoglHandle*", has_construct_function = false)]
+ public Program ();
+ public void attach_shader (Cogl.Shader shader_handle);
+ public int get_uniform_location (string uniform_name);
+ public void link ();
+ public static void uniform_1f (int uniform_no, float value);
+ public static void uniform_1i (int uniform_no, int value);
+ public static void uniform_float (int uniform_no, int size, [CCode (array_length_pos = 2.9)] float[] value);
+ public static void uniform_int (int uniform_no, int size, [CCode (array_length_pos = 2.9)] int[] value);
+ public static void uniform_matrix (int uniform_no, int size, bool transpose, [CCode (array_length_pos = 2.9)] float[] value);
+ public void use ();
+ }
+
+ [Compact]
+ [CCode (cname = "CoglHandle", ref_function = "cogl_shader_ref", unref_function = "cogl_shader_unref")]
+ public class Shader: Handle {
+ [CCode (cname = "cogl_create_shader", type = "CoglHandle*", has_construct_function = false)]
+ public Shader (Cogl.ShaderType shader_type);
+ public void compile ();
+ public string get_info_log ();
+ public Cogl.ShaderType get_type ();
+ public bool is_compiled ();
+ public void source (string source);
+
+ }
+
+ [Compact]
+ [CCode (cname = "CoglHandle", ref_function = "cogl_texture_ref", unref_function = "cogl_texture_unref")]
+ public class Texture: Handle {
+ public int get_data (Cogl.PixelFormat format, uint rowstride, uchar[] data);
+ public Cogl.PixelFormat get_format ();
+ public uint get_height ();
+ public int get_max_waste ();
+ public uint get_rowstride ();
+ public uint get_width ();
+ public bool is_sliced ();
+ public Texture.from_bitmap (Cogl.Bitmap bmp_handle, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
+ public Texture.from_data (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat format, Cogl.PixelFormat internal_format, uint rowstride, uchar[] data);
+ public Texture.from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format) throws GLib.Error;
+ public Texture.with_size (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
+ public bool set_region (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, uchar[] data);
+ }
+
+ [Compact]
+ [CCode (cname = "CoglHandle", ref_function = "cogl_vertex_buffer_ref", unref_function = "cogl_vertex_buffer_unref")]
+ public class VertexBuffer: Handle {
+ [CCode (type = "CoglHandle*", has_construct_function = false)]
+ public VertexBuffer (uint n_vertices);
+ public void add (string attribute_name, uchar n_components, Cogl.AttributeType type, bool normalized, uint16 stride, void* pointer);
+ public void delete (string attribute_name);
+ public void disable (string attribute_name);
+ public void draw (Cogl.VerticesMode mode, int first, int count);
+ public void draw_elements (Cogl.VerticesMode mode, VertexBufferIndices indices, int min_index, int max_index, int indices_offset, int count);
+ public void enable (string attribute_name);
+ public uint get_n_vertices ();
+ public void submit ();
+ }
+
+ [Compact]
+ [CCode (cname = "CoglHandle")]
+ public class VertexBufferIndices: Handle {
+ public VertexBufferIndices (Cogl.IndicesType indices_type, void* indices_array, int indices_len);
+ public static unowned Cogl.VertexBufferIndices get_for_quads (uint n_indices);
+ public Cogl.IndicesType get_type ();
+ }
+
+ [CCode (type_id = "COGL_TYPE_MATRIX", cheader_filename = "cogl/cogl.h")]
+ public struct Matrix {
+ [CCode (cname = "cogl_matrix_init_from_array", array_length = false, array_null_terminated = false)]
+ public Matrix.from_array (float[] array);
+ [CCode (cname = "cogl_matrix_init_identity")]
+ public Matrix.identity ();
+ [CCode (cname = "cogl_matrix_multiply")]
+ public Matrix.multiply (Cogl.Matrix a, Cogl.Matrix b);
+ }
+}
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.defines b/vapi/packages/cogl-1.0/cogl-1.0.defines
new file mode 100644
index 0000000..e6e34ed
--- /dev/null
+++ b/vapi/packages/cogl-1.0/cogl-1.0.defines
@@ -0,0 +1,2 @@
+-DCLUTTER_COMPILATION
+-DCLUTTER_DISABLE_DEPRECATED
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.deps b/vapi/packages/cogl-1.0/cogl-1.0.deps
new file mode 100644
index 0000000..98ccac5
--- /dev/null
+++ b/vapi/packages/cogl-1.0/cogl-1.0.deps
@@ -0,0 +1 @@
+pango
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.excludes b/vapi/packages/cogl-1.0/cogl-1.0.excludes
new file mode 100644
index 0000000..c460277
--- /dev/null
+++ b/vapi/packages/cogl-1.0/cogl-1.0.excludes
@@ -0,0 +1,2 @@
+cogl-defines-gl.h
+cogl-deprecated.h
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.files b/vapi/packages/cogl-1.0/cogl-1.0.files
new file mode 100644
index 0000000..6b1d66f
--- /dev/null
+++ b/vapi/packages/cogl-1.0/cogl-1.0.files
@@ -0,0 +1,2 @@
+include/clutter-1.0/cogl/
+lib/libclutter-glx-1.0.so
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.gi b/vapi/packages/cogl-1.0/cogl-1.0.gi
new file mode 100644
index 0000000..634b9d5
--- /dev/null
+++ b/vapi/packages/cogl-1.0/cogl-1.0.gi
@@ -0,0 +1,1753 @@
+<?xml version="1.0"?>
+<api version="1.0">
+ <namespace name="Cogl">
+ <function name="begin_gl" symbol="cogl_begin_gl">
+ <return-type type="void"/>
+ </function>
+ <function name="bitmap_get_size_from_file" symbol="cogl_bitmap_get_size_from_file">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="filename" type="gchar*"/>
+ <parameter name="width" type="gint*"/>
+ <parameter name="height" type="gint*"/>
+ </parameters>
+ </function>
+ <function name="bitmap_new_from_file" symbol="cogl_bitmap_new_from_file">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="filename" type="gchar*"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
+ <function name="blend_string_error_quark" symbol="cogl_blend_string_error_quark">
+ <return-type type="GQuark"/>
+ </function>
+ <function name="check_extension" symbol="cogl_check_extension">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="name" type="gchar*"/>
+ <parameter name="ext" type="gchar*"/>
+ </parameters>
+ </function>
+ <function name="clear" symbol="cogl_clear">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ <parameter name="buffers" type="gulong"/>
+ </parameters>
+ </function>
+ <function name="clip_ensure" symbol="cogl_clip_ensure">
+ <return-type type="void"/>
+ </function>
+ <function name="clip_pop" symbol="cogl_clip_pop">
+ <return-type type="void"/>
+ </function>
+ <function name="clip_push" symbol="cogl_clip_push">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x_offset" type="float"/>
+ <parameter name="y_offset" type="float"/>
+ <parameter name="width" type="float"/>
+ <parameter name="height" type="float"/>
+ </parameters>
+ </function>
+ <function name="clip_push_from_path" symbol="cogl_clip_push_from_path">
+ <return-type type="void"/>
+ </function>
+ <function name="clip_push_from_path_preserve" symbol="cogl_clip_push_from_path_preserve">
+ <return-type type="void"/>
+ </function>
+ <function name="clip_push_window_rect" symbol="cogl_clip_push_window_rect">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x_offset" type="float"/>
+ <parameter name="y_offset" type="float"/>
+ <parameter name="width" type="float"/>
+ <parameter name="height" type="float"/>
+ </parameters>
+ </function>
+ <function name="clip_stack_restore" symbol="cogl_clip_stack_restore">
+ <return-type type="void"/>
+ </function>
+ <function name="clip_stack_save" symbol="cogl_clip_stack_save">
+ <return-type type="void"/>
+ </function>
+ <function name="create_program" symbol="cogl_create_program">
+ <return-type type="CoglHandle"/>
+ </function>
+ <function name="create_shader" symbol="cogl_create_shader">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="shader_type" type="CoglShaderType"/>
+ </parameters>
+ </function>
+ <function name="disable_fog" symbol="cogl_disable_fog">
+ <return-type type="void"/>
+ </function>
+ <function name="double_to_fixed" symbol="cogl_double_to_fixed">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="value" type="double"/>
+ </parameters>
+ </function>
+ <function name="double_to_int" symbol="cogl_double_to_int">
+ <return-type type="gint"/>
+ <parameters>
+ <parameter name="value" type="double"/>
+ </parameters>
+ </function>
+ <function name="double_to_unit" symbol="cogl_double_to_unit">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="value" type="double"/>
+ </parameters>
+ </function>
+ <function name="end_gl" symbol="cogl_end_gl">
+ <return-type type="void"/>
+ </function>
+ <function name="features_available" symbol="cogl_features_available">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="features" type="CoglFeatureFlags"/>
+ </parameters>
+ </function>
+ <function name="flush" symbol="cogl_flush">
+ <return-type type="void"/>
+ </function>
+ <function name="frustum" symbol="cogl_frustum">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="left" type="float"/>
+ <parameter name="right" type="float"/>
+ <parameter name="bottom" type="float"/>
+ <parameter name="top" type="float"/>
+ <parameter name="z_near" type="float"/>
+ <parameter name="z_far" type="float"/>
+ </parameters>
+ </function>
+ <function name="get_backface_culling_enabled" symbol="cogl_get_backface_culling_enabled">
+ <return-type type="gboolean"/>
+ </function>
+ <function name="get_bitmasks" symbol="cogl_get_bitmasks">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="red" type="gint*"/>
+ <parameter name="green" type="gint*"/>
+ <parameter name="blue" type="gint*"/>
+ <parameter name="alpha" type="gint*"/>
+ </parameters>
+ </function>
+ <function name="get_depth_test_enabled" symbol="cogl_get_depth_test_enabled">
+ <return-type type="gboolean"/>
+ </function>
+ <function name="get_features" symbol="cogl_get_features">
+ <return-type type="CoglFeatureFlags"/>
+ </function>
+ <function name="get_modelview_matrix" symbol="cogl_get_modelview_matrix">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ </parameters>
+ </function>
+ <function name="get_option_group" symbol="cogl_get_option_group">
+ <return-type type="GOptionGroup*"/>
+ </function>
+ <function name="get_proc_address" symbol="cogl_get_proc_address">
+ <return-type type="CoglFuncPtr"/>
+ <parameters>
+ <parameter name="name" type="gchar*"/>
+ </parameters>
+ </function>
+ <function name="get_projection_matrix" symbol="cogl_get_projection_matrix">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ </parameters>
+ </function>
+ <function name="get_viewport" symbol="cogl_get_viewport">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="v" type="float[]"/>
+ </parameters>
+ </function>
+ <function name="is_material" symbol="cogl_is_material">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="is_offscreen" symbol="cogl_is_offscreen">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="is_program" symbol="cogl_is_program">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="is_shader" symbol="cogl_is_shader">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="is_texture" symbol="cogl_is_texture">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="is_vertex_buffer" symbol="cogl_is_vertex_buffer">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_get_ambient" symbol="cogl_material_get_ambient">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="ambient" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_get_color" symbol="cogl_material_get_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_get_diffuse" symbol="cogl_material_get_diffuse">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="diffuse" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_get_emission" symbol="cogl_material_get_emission">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="emission" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_get_layers" symbol="cogl_material_get_layers">
+ <return-type type="GList*"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_get_n_layers" symbol="cogl_material_get_n_layers">
+ <return-type type="int"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_get_shininess" symbol="cogl_material_get_shininess">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_get_specular" symbol="cogl_material_get_specular">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="specular" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_layer_get_mag_filter" symbol="cogl_material_layer_get_mag_filter">
+ <return-type type="CoglMaterialFilter"/>
+ <parameters>
+ <parameter name="layer_handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_layer_get_min_filter" symbol="cogl_material_layer_get_min_filter">
+ <return-type type="CoglMaterialFilter"/>
+ <parameters>
+ <parameter name="layer_handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_layer_get_texture" symbol="cogl_material_layer_get_texture">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="layer_handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_layer_get_type" symbol="cogl_material_layer_get_type">
+ <return-type type="CoglMaterialLayerType"/>
+ <parameters>
+ <parameter name="layer_handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_new" symbol="cogl_material_new">
+ <return-type type="CoglHandle"/>
+ </function>
+ <function name="material_ref" symbol="cogl_material_ref">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_remove_layer" symbol="cogl_material_remove_layer">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="layer_index" type="gint"/>
+ </parameters>
+ </function>
+ <function name="material_set_alpha_test_function" symbol="cogl_material_set_alpha_test_function">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="alpha_func" type="CoglMaterialAlphaFunc"/>
+ <parameter name="alpha_reference" type="float"/>
+ </parameters>
+ </function>
+ <function name="material_set_ambient" symbol="cogl_material_set_ambient">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="ambient" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_set_ambient_and_diffuse" symbol="cogl_material_set_ambient_and_diffuse">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_set_blend" symbol="cogl_material_set_blend">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="blend_string" type="char*"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
+ <function name="material_set_blend_constant" symbol="cogl_material_set_blend_constant">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="constant_color" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_set_color" symbol="cogl_material_set_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_set_color4f" symbol="cogl_material_set_color4f">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="red" type="float"/>
+ <parameter name="green" type="float"/>
+ <parameter name="blue" type="float"/>
+ <parameter name="alpha" type="float"/>
+ </parameters>
+ </function>
+ <function name="material_set_color4ub" symbol="cogl_material_set_color4ub">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="red" type="guint8"/>
+ <parameter name="green" type="guint8"/>
+ <parameter name="blue" type="guint8"/>
+ <parameter name="alpha" type="guint8"/>
+ </parameters>
+ </function>
+ <function name="material_set_diffuse" symbol="cogl_material_set_diffuse">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="diffuse" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_set_emission" symbol="cogl_material_set_emission">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="emission" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_set_layer" symbol="cogl_material_set_layer">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="layer_index" type="int"/>
+ <parameter name="texture" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="material_set_layer_combine" symbol="cogl_material_set_layer_combine">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="layer_index" type="gint"/>
+ <parameter name="blend_string" type="char*"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
+ <function name="material_set_layer_combine_constant" symbol="cogl_material_set_layer_combine_constant">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="layer_index" type="int"/>
+ <parameter name="constant" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_set_layer_filters" symbol="cogl_material_set_layer_filters">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="layer_index" type="gint"/>
+ <parameter name="min_filter" type="CoglMaterialFilter"/>
+ <parameter name="mag_filter" type="CoglMaterialFilter"/>
+ </parameters>
+ </function>
+ <function name="material_set_layer_matrix" symbol="cogl_material_set_layer_matrix">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="layer_index" type="int"/>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ </parameters>
+ </function>
+ <function name="material_set_shininess" symbol="cogl_material_set_shininess">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="shininess" type="float"/>
+ </parameters>
+ </function>
+ <function name="material_set_specular" symbol="cogl_material_set_specular">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ <parameter name="specular" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="material_unref" symbol="cogl_material_unref">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="offscreen_new_to_texture" symbol="cogl_offscreen_new_to_texture">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="offscreen_ref" symbol="cogl_offscreen_ref">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="offscreen_unref" symbol="cogl_offscreen_unref">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="ortho" symbol="cogl_ortho">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="left" type="float"/>
+ <parameter name="right" type="float"/>
+ <parameter name="bottom" type="float"/>
+ <parameter name="top" type="float"/>
+ <parameter name="near" type="float"/>
+ <parameter name="far" type="float"/>
+ </parameters>
+ </function>
+ <function name="pango_ensure_glyph_cache_for_layout" symbol="cogl_pango_ensure_glyph_cache_for_layout">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="layout" type="PangoLayout*"/>
+ </parameters>
+ </function>
+ <function name="pango_render_layout" symbol="cogl_pango_render_layout">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="layout" type="PangoLayout*"/>
+ <parameter name="x" type="int"/>
+ <parameter name="y" type="int"/>
+ <parameter name="color" type="CoglColor*"/>
+ <parameter name="flags" type="int"/>
+ </parameters>
+ </function>
+ <function name="pango_render_layout_line" symbol="cogl_pango_render_layout_line">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="line" type="PangoLayoutLine*"/>
+ <parameter name="x" type="int"/>
+ <parameter name="y" type="int"/>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="pango_render_layout_subpixel" symbol="cogl_pango_render_layout_subpixel">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="layout" type="PangoLayout*"/>
+ <parameter name="x" type="int"/>
+ <parameter name="y" type="int"/>
+ <parameter name="color" type="CoglColor*"/>
+ <parameter name="flags" type="int"/>
+ </parameters>
+ </function>
+ <function name="path_arc" symbol="cogl_path_arc">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="center_x" type="float"/>
+ <parameter name="center_y" type="float"/>
+ <parameter name="radius_x" type="float"/>
+ <parameter name="radius_y" type="float"/>
+ <parameter name="angle_1" type="float"/>
+ <parameter name="angle_2" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_close" symbol="cogl_path_close">
+ <return-type type="void"/>
+ </function>
+ <function name="path_curve_to" symbol="cogl_path_curve_to">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x_1" type="float"/>
+ <parameter name="y_1" type="float"/>
+ <parameter name="x_2" type="float"/>
+ <parameter name="y_2" type="float"/>
+ <parameter name="x_3" type="float"/>
+ <parameter name="y_3" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_ellipse" symbol="cogl_path_ellipse">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="center_x" type="float"/>
+ <parameter name="center_y" type="float"/>
+ <parameter name="radius_x" type="float"/>
+ <parameter name="radius_y" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_fill" symbol="cogl_path_fill">
+ <return-type type="void"/>
+ </function>
+ <function name="path_fill_preserve" symbol="cogl_path_fill_preserve">
+ <return-type type="void"/>
+ </function>
+ <function name="path_line" symbol="cogl_path_line">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x_1" type="float"/>
+ <parameter name="y_1" type="float"/>
+ <parameter name="x_2" type="float"/>
+ <parameter name="y_2" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_line_to" symbol="cogl_path_line_to">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_move_to" symbol="cogl_path_move_to">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_new" symbol="cogl_path_new">
+ <return-type type="void"/>
+ </function>
+ <function name="path_polygon" symbol="cogl_path_polygon">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="coords" type="float*"/>
+ <parameter name="num_points" type="gint"/>
+ </parameters>
+ </function>
+ <function name="path_polyline" symbol="cogl_path_polyline">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="coords" type="float*"/>
+ <parameter name="num_points" type="gint"/>
+ </parameters>
+ </function>
+ <function name="path_rectangle" symbol="cogl_path_rectangle">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x_1" type="float"/>
+ <parameter name="y_1" type="float"/>
+ <parameter name="x_2" type="float"/>
+ <parameter name="y_2" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_rel_curve_to" symbol="cogl_path_rel_curve_to">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x_1" type="float"/>
+ <parameter name="y_1" type="float"/>
+ <parameter name="x_2" type="float"/>
+ <parameter name="y_2" type="float"/>
+ <parameter name="x_3" type="float"/>
+ <parameter name="y_3" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_rel_line_to" symbol="cogl_path_rel_line_to">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_rel_move_to" symbol="cogl_path_rel_move_to">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_round_rectangle" symbol="cogl_path_round_rectangle">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x_1" type="float"/>
+ <parameter name="y_1" type="float"/>
+ <parameter name="x_2" type="float"/>
+ <parameter name="y_2" type="float"/>
+ <parameter name="radius" type="float"/>
+ <parameter name="arc_step" type="float"/>
+ </parameters>
+ </function>
+ <function name="path_stroke" symbol="cogl_path_stroke">
+ <return-type type="void"/>
+ </function>
+ <function name="path_stroke_preserve" symbol="cogl_path_stroke_preserve">
+ <return-type type="void"/>
+ </function>
+ <function name="perspective" symbol="cogl_perspective">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="fovy" type="float"/>
+ <parameter name="aspect" type="float"/>
+ <parameter name="z_near" type="float"/>
+ <parameter name="z_far" type="float"/>
+ </parameters>
+ </function>
+ <function name="polygon" symbol="cogl_polygon">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="vertices" type="CoglTextureVertex*"/>
+ <parameter name="n_vertices" type="guint"/>
+ <parameter name="use_color" type="gboolean"/>
+ </parameters>
+ </function>
+ <function name="pop_draw_buffer" symbol="cogl_pop_draw_buffer">
+ <return-type type="void"/>
+ </function>
+ <function name="pop_matrix" symbol="cogl_pop_matrix">
+ <return-type type="void"/>
+ </function>
+ <function name="program_attach_shader" symbol="cogl_program_attach_shader">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="program_handle" type="CoglHandle"/>
+ <parameter name="shader_handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="program_get_uniform_location" symbol="cogl_program_get_uniform_location">
+ <return-type type="int"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="uniform_name" type="char*"/>
+ </parameters>
+ </function>
+ <function name="program_link" symbol="cogl_program_link">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="program_ref" symbol="cogl_program_ref">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="program_uniform_1f" symbol="cogl_program_uniform_1f">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="uniform_no" type="int"/>
+ <parameter name="value" type="float"/>
+ </parameters>
+ </function>
+ <function name="program_uniform_1i" symbol="cogl_program_uniform_1i">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="uniform_no" type="int"/>
+ <parameter name="value" type="int"/>
+ </parameters>
+ </function>
+ <function name="program_uniform_float" symbol="cogl_program_uniform_float">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="uniform_no" type="int"/>
+ <parameter name="size" type="int"/>
+ <parameter name="count" type="int"/>
+ <parameter name="value" type="GLfloat*"/>
+ </parameters>
+ </function>
+ <function name="program_uniform_int" symbol="cogl_program_uniform_int">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="uniform_no" type="int"/>
+ <parameter name="size" type="int"/>
+ <parameter name="count" type="int"/>
+ <parameter name="value" type="int*"/>
+ </parameters>
+ </function>
+ <function name="program_uniform_matrix" symbol="cogl_program_uniform_matrix">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="uniform_no" type="int"/>
+ <parameter name="size" type="int"/>
+ <parameter name="count" type="int"/>
+ <parameter name="transpose" type="gboolean"/>
+ <parameter name="value" type="float*"/>
+ </parameters>
+ </function>
+ <function name="program_unref" symbol="cogl_program_unref">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="program_use" symbol="cogl_program_use">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="push_draw_buffer" symbol="cogl_push_draw_buffer">
+ <return-type type="void"/>
+ </function>
+ <function name="push_matrix" symbol="cogl_push_matrix">
+ <return-type type="void"/>
+ </function>
+ <function name="read_pixels" symbol="cogl_read_pixels">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x" type="int"/>
+ <parameter name="y" type="int"/>
+ <parameter name="width" type="int"/>
+ <parameter name="height" type="int"/>
+ <parameter name="source" type="CoglReadPixelsFlags"/>
+ <parameter name="format" type="CoglPixelFormat"/>
+ <parameter name="pixels" type="guint8*"/>
+ </parameters>
+ </function>
+ <function name="rectangle" symbol="cogl_rectangle">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x_1" type="float"/>
+ <parameter name="y_1" type="float"/>
+ <parameter name="x_2" type="float"/>
+ <parameter name="y_2" type="float"/>
+ </parameters>
+ </function>
+ <function name="rectangle_with_multitexture_coords" symbol="cogl_rectangle_with_multitexture_coords">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x1" type="float"/>
+ <parameter name="y1" type="float"/>
+ <parameter name="x2" type="float"/>
+ <parameter name="y2" type="float"/>
+ <parameter name="tex_coords" type="float*"/>
+ <parameter name="tex_coords_len" type="gint"/>
+ </parameters>
+ </function>
+ <function name="rectangle_with_texture_coords" symbol="cogl_rectangle_with_texture_coords">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x1" type="float"/>
+ <parameter name="y1" type="float"/>
+ <parameter name="x2" type="float"/>
+ <parameter name="y2" type="float"/>
+ <parameter name="tx1" type="float"/>
+ <parameter name="ty1" type="float"/>
+ <parameter name="tx2" type="float"/>
+ <parameter name="ty2" type="float"/>
+ </parameters>
+ </function>
+ <function name="rectangles" symbol="cogl_rectangles">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="verts" type="float*"/>
+ <parameter name="n_rects" type="guint"/>
+ </parameters>
+ </function>
+ <function name="rectangles_with_texture_coords" symbol="cogl_rectangles_with_texture_coords">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="verts" type="float*"/>
+ <parameter name="n_rects" type="guint"/>
+ </parameters>
+ </function>
+ <function name="rotate" symbol="cogl_rotate">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="angle" type="float"/>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ <parameter name="z" type="float"/>
+ </parameters>
+ </function>
+ <function name="scale" symbol="cogl_scale">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ <parameter name="z" type="float"/>
+ </parameters>
+ </function>
+ <function name="set_backface_culling_enabled" symbol="cogl_set_backface_culling_enabled">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="setting" type="gboolean"/>
+ </parameters>
+ </function>
+ <function name="set_depth_test_enabled" symbol="cogl_set_depth_test_enabled">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="setting" type="gboolean"/>
+ </parameters>
+ </function>
+ <function name="set_draw_buffer" symbol="cogl_set_draw_buffer">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="target" type="CoglBufferTarget"/>
+ <parameter name="offscreen" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="set_fog" symbol="cogl_set_fog">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="fog_color" type="CoglColor*"/>
+ <parameter name="mode" type="CoglFogMode"/>
+ <parameter name="density" type="float"/>
+ <parameter name="z_near" type="float"/>
+ <parameter name="z_far" type="float"/>
+ </parameters>
+ </function>
+ <function name="set_modelview_matrix" symbol="cogl_set_modelview_matrix">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ </parameters>
+ </function>
+ <function name="set_projection_matrix" symbol="cogl_set_projection_matrix">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ </parameters>
+ </function>
+ <function name="set_source" symbol="cogl_set_source">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="material" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="set_source_color" symbol="cogl_set_source_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </function>
+ <function name="set_source_color4f" symbol="cogl_set_source_color4f">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="red" type="float"/>
+ <parameter name="green" type="float"/>
+ <parameter name="blue" type="float"/>
+ <parameter name="alpha" type="float"/>
+ </parameters>
+ </function>
+ <function name="set_source_color4ub" symbol="cogl_set_source_color4ub">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="red" type="guint8"/>
+ <parameter name="green" type="guint8"/>
+ <parameter name="blue" type="guint8"/>
+ <parameter name="alpha" type="guint8"/>
+ </parameters>
+ </function>
+ <function name="set_source_texture" symbol="cogl_set_source_texture">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="texture_handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="shader_compile" symbol="cogl_shader_compile">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="shader_get_info_log" symbol="cogl_shader_get_info_log">
+ <return-type type="gchar*"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="shader_get_type" symbol="cogl_shader_get_type">
+ <return-type type="CoglShaderType"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="shader_is_compiled" symbol="cogl_shader_is_compiled">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="shader_ref" symbol="cogl_shader_ref">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="shader_source" symbol="cogl_shader_source">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="shader" type="CoglHandle"/>
+ <parameter name="source" type="gchar*"/>
+ </parameters>
+ </function>
+ <function name="shader_unref" symbol="cogl_shader_unref">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="sqrti" symbol="cogl_sqrti">
+ <return-type type="gint"/>
+ <parameters>
+ <parameter name="x" type="gint"/>
+ </parameters>
+ </function>
+ <function name="texture_get_data" symbol="cogl_texture_get_data">
+ <return-type type="gint"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="format" type="CoglPixelFormat"/>
+ <parameter name="rowstride" type="guint"/>
+ <parameter name="data" type="guchar*"/>
+ </parameters>
+ </function>
+ <function name="texture_get_format" symbol="cogl_texture_get_format">
+ <return-type type="CoglPixelFormat"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="texture_get_height" symbol="cogl_texture_get_height">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="texture_get_max_waste" symbol="cogl_texture_get_max_waste">
+ <return-type type="gint"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="texture_get_rowstride" symbol="cogl_texture_get_rowstride">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="texture_get_width" symbol="cogl_texture_get_width">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="texture_is_sliced" symbol="cogl_texture_is_sliced">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="texture_new_from_bitmap" symbol="cogl_texture_new_from_bitmap">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="bmp_handle" type="CoglHandle"/>
+ <parameter name="flags" type="CoglTextureFlags"/>
+ <parameter name="internal_format" type="CoglPixelFormat"/>
+ </parameters>
+ </function>
+ <function name="texture_new_from_data" symbol="cogl_texture_new_from_data">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="width" type="guint"/>
+ <parameter name="height" type="guint"/>
+ <parameter name="flags" type="CoglTextureFlags"/>
+ <parameter name="format" type="CoglPixelFormat"/>
+ <parameter name="internal_format" type="CoglPixelFormat"/>
+ <parameter name="rowstride" type="guint"/>
+ <parameter name="data" type="guchar*"/>
+ </parameters>
+ </function>
+ <function name="texture_new_from_file" symbol="cogl_texture_new_from_file">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="filename" type="gchar*"/>
+ <parameter name="flags" type="CoglTextureFlags"/>
+ <parameter name="internal_format" type="CoglPixelFormat"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
+ <function name="texture_new_with_size" symbol="cogl_texture_new_with_size">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="width" type="guint"/>
+ <parameter name="height" type="guint"/>
+ <parameter name="flags" type="CoglTextureFlags"/>
+ <parameter name="internal_format" type="CoglPixelFormat"/>
+ </parameters>
+ </function>
+ <function name="texture_ref" symbol="cogl_texture_ref">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="texture_set_region" symbol="cogl_texture_set_region">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="src_x" type="gint"/>
+ <parameter name="src_y" type="gint"/>
+ <parameter name="dst_x" type="gint"/>
+ <parameter name="dst_y" type="gint"/>
+ <parameter name="dst_width" type="guint"/>
+ <parameter name="dst_height" type="guint"/>
+ <parameter name="width" type="gint"/>
+ <parameter name="height" type="gint"/>
+ <parameter name="format" type="CoglPixelFormat"/>
+ <parameter name="rowstride" type="guint"/>
+ <parameter name="data" type="guchar*"/>
+ </parameters>
+ </function>
+ <function name="texture_unref" symbol="cogl_texture_unref">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="translate" symbol="cogl_translate">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ <parameter name="z" type="float"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_add" symbol="cogl_vertex_buffer_add">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="attribute_name" type="char*"/>
+ <parameter name="n_components" type="guint8"/>
+ <parameter name="type" type="CoglAttributeType"/>
+ <parameter name="normalized" type="gboolean"/>
+ <parameter name="stride" type="guint16"/>
+ <parameter name="pointer" type="void*"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_delete" symbol="cogl_vertex_buffer_delete">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="attribute_name" type="char*"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_disable" symbol="cogl_vertex_buffer_disable">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="attribute_name" type="char*"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_draw" symbol="cogl_vertex_buffer_draw">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="mode" type="CoglVerticesMode"/>
+ <parameter name="first" type="int"/>
+ <parameter name="count" type="int"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_draw_elements" symbol="cogl_vertex_buffer_draw_elements">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="mode" type="CoglVerticesMode"/>
+ <parameter name="indices" type="CoglHandle"/>
+ <parameter name="min_index" type="int"/>
+ <parameter name="max_index" type="int"/>
+ <parameter name="indices_offset" type="int"/>
+ <parameter name="count" type="int"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_enable" symbol="cogl_vertex_buffer_enable">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ <parameter name="attribute_name" type="char*"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_get_n_vertices" symbol="cogl_vertex_buffer_get_n_vertices">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_indices_get_for_quads" symbol="cogl_vertex_buffer_indices_get_for_quads">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="n_indices" type="guint"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_indices_get_type" symbol="cogl_vertex_buffer_indices_get_type">
+ <return-type type="CoglIndicesType"/>
+ <parameters>
+ <parameter name="indices" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_indices_new" symbol="cogl_vertex_buffer_indices_new">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="indices_type" type="CoglIndicesType"/>
+ <parameter name="indices_array" type="void*"/>
+ <parameter name="indices_len" type="int"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_new" symbol="cogl_vertex_buffer_new">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="n_vertices" type="guint"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_ref" symbol="cogl_vertex_buffer_ref">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_submit" symbol="cogl_vertex_buffer_submit">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="vertex_buffer_unref" symbol="cogl_vertex_buffer_unref">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </function>
+ <function name="viewport" symbol="cogl_viewport">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="width" type="guint"/>
+ <parameter name="height" type="guint"/>
+ </parameters>
+ </function>
+ <callback name="CoglFuncPtr">
+ <return-type type="void"/>
+ </callback>
+ <struct name="CoglAngle">
+ <method name="cos" symbol="cogl_angle_cos">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="angle" type="CoglAngle"/>
+ </parameters>
+ </method>
+ <method name="sin" symbol="cogl_angle_sin">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="angle" type="CoglAngle"/>
+ </parameters>
+ </method>
+ <method name="tan" symbol="cogl_angle_tan">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="angle" type="CoglAngle"/>
+ </parameters>
+ </method>
+ </struct>
+ <struct name="CoglColor">
+ <method name="copy" symbol="cogl_color_copy">
+ <return-type type="CoglColor*"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="equal" symbol="cogl_color_equal">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="v1" type="gconstpointer"/>
+ <parameter name="v2" type="gconstpointer"/>
+ </parameters>
+ </method>
+ <method name="free" symbol="cogl_color_free">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_alpha" symbol="cogl_color_get_alpha">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_alpha_byte" symbol="cogl_color_get_alpha_byte">
+ <return-type type="unsigned"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_alpha_float" symbol="cogl_color_get_alpha_float">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_blue" symbol="cogl_color_get_blue">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_blue_byte" symbol="cogl_color_get_blue_byte">
+ <return-type type="unsigned"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_blue_float" symbol="cogl_color_get_blue_float">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_green" symbol="cogl_color_get_green">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_green_byte" symbol="cogl_color_get_green_byte">
+ <return-type type="unsigned"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_green_float" symbol="cogl_color_get_green_float">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_red" symbol="cogl_color_get_red">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_red_byte" symbol="cogl_color_get_red_byte">
+ <return-type type="unsigned"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="get_red_float" symbol="cogl_color_get_red_float">
+ <return-type type="float"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="new" symbol="cogl_color_new">
+ <return-type type="CoglColor*"/>
+ </method>
+ <method name="premultiply" symbol="cogl_color_premultiply">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="color" type="CoglColor*"/>
+ </parameters>
+ </method>
+ <method name="set_from_4f" symbol="cogl_color_set_from_4f">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="dest" type="CoglColor*"/>
+ <parameter name="red" type="float"/>
+ <parameter name="green" type="float"/>
+ <parameter name="blue" type="float"/>
+ <parameter name="alpha" type="float"/>
+ </parameters>
+ </method>
+ <method name="set_from_4ub" symbol="cogl_color_set_from_4ub">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="dest" type="CoglColor*"/>
+ <parameter name="red" type="guint8"/>
+ <parameter name="green" type="guint8"/>
+ <parameter name="blue" type="guint8"/>
+ <parameter name="alpha" type="guint8"/>
+ </parameters>
+ </method>
+ <field name="red" type="guint8"/>
+ <field name="green" type="guint8"/>
+ <field name="blue" type="guint8"/>
+ <field name="alpha" type="guint8"/>
+ <field name="padding0" type="guint32"/>
+ <field name="padding1" type="guint32"/>
+ <field name="padding2" type="guint32"/>
+ </struct>
+ <struct name="CoglFixed">
+ <method name="atan2" symbol="cogl_fixed_atan2">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="a" type="CoglFixed"/>
+ <parameter name="b" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="atani" symbol="cogl_fixed_atani">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="a" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="cos" symbol="cogl_fixed_cos">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="angle" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="div" symbol="cogl_fixed_div">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="a" type="CoglFixed"/>
+ <parameter name="b" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="log2" symbol="cogl_fixed_log2">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="x" type="guint"/>
+ </parameters>
+ </method>
+ <method name="mul" symbol="cogl_fixed_mul">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="a" type="CoglFixed"/>
+ <parameter name="b" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="mul_div" symbol="cogl_fixed_mul_div">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="a" type="CoglFixed"/>
+ <parameter name="b" type="CoglFixed"/>
+ <parameter name="c" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="pow" symbol="cogl_fixed_pow">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="x" type="guint"/>
+ <parameter name="y" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="pow2" symbol="cogl_fixed_pow2">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="x" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="sin" symbol="cogl_fixed_sin">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="angle" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="sqrt" symbol="cogl_fixed_sqrt">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="x" type="CoglFixed"/>
+ </parameters>
+ </method>
+ <method name="tan" symbol="cogl_fixed_tan">
+ <return-type type="CoglFixed"/>
+ <parameters>
+ <parameter name="angle" type="CoglFixed"/>
+ </parameters>
+ </method>
+ </struct>
+ <struct name="CoglHandle">
+ <method name="ref" symbol="cogl_handle_ref">
+ <return-type type="CoglHandle"/>
+ <parameters>
+ <parameter name="handle" type="CoglHandle"/>
+ </parameters>
+ </method>
+ <method name="unref" symbol="cogl_handle_unref">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="Handle" type="CoglHandle"/>
+ </parameters>
+ </method>
+ </struct>
+ <struct name="CoglMatrix">
+ <method name="frustum" symbol="cogl_matrix_frustum">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ <parameter name="left" type="float"/>
+ <parameter name="right" type="float"/>
+ <parameter name="bottom" type="float"/>
+ <parameter name="top" type="float"/>
+ <parameter name="z_near" type="float"/>
+ <parameter name="z_far" type="float"/>
+ </parameters>
+ </method>
+ <method name="get_array" symbol="cogl_matrix_get_array">
+ <return-type type="float*"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ </parameters>
+ </method>
+ <method name="init_from_array" symbol="cogl_matrix_init_from_array">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ <parameter name="array" type="float*"/>
+ </parameters>
+ </method>
+ <method name="init_identity" symbol="cogl_matrix_init_identity">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ </parameters>
+ </method>
+ <method name="multiply" symbol="cogl_matrix_multiply">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="result" type="CoglMatrix*"/>
+ <parameter name="a" type="CoglMatrix*"/>
+ <parameter name="b" type="CoglMatrix*"/>
+ </parameters>
+ </method>
+ <method name="ortho" symbol="cogl_matrix_ortho">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ <parameter name="left" type="float"/>
+ <parameter name="right" type="float"/>
+ <parameter name="bottom" type="float"/>
+ <parameter name="top" type="float"/>
+ <parameter name="z_near" type="float"/>
+ <parameter name="z_far" type="float"/>
+ </parameters>
+ </method>
+ <method name="perspective" symbol="cogl_matrix_perspective">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ <parameter name="fov_y" type="float"/>
+ <parameter name="aspect" type="float"/>
+ <parameter name="z_near" type="float"/>
+ <parameter name="z_far" type="float"/>
+ </parameters>
+ </method>
+ <method name="rotate" symbol="cogl_matrix_rotate">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ <parameter name="angle" type="float"/>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ <parameter name="z" type="float"/>
+ </parameters>
+ </method>
+ <method name="scale" symbol="cogl_matrix_scale">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ <parameter name="sx" type="float"/>
+ <parameter name="sy" type="float"/>
+ <parameter name="sz" type="float"/>
+ </parameters>
+ </method>
+ <method name="transform_point" symbol="cogl_matrix_transform_point">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ <parameter name="x" type="float*"/>
+ <parameter name="y" type="float*"/>
+ <parameter name="z" type="float*"/>
+ <parameter name="w" type="float*"/>
+ </parameters>
+ </method>
+ <method name="translate" symbol="cogl_matrix_translate">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="matrix" type="CoglMatrix*"/>
+ <parameter name="x" type="float"/>
+ <parameter name="y" type="float"/>
+ <parameter name="z" type="float"/>
+ </parameters>
+ </method>
+ <field name="xx" type="float"/>
+ <field name="yx" type="float"/>
+ <field name="zx" type="float"/>
+ <field name="wx" type="float"/>
+ <field name="xy" type="float"/>
+ <field name="yy" type="float"/>
+ <field name="zy" type="float"/>
+ <field name="wy" type="float"/>
+ <field name="xz" type="float"/>
+ <field name="yz" type="float"/>
+ <field name="zz" type="float"/>
+ <field name="wz" type="float"/>
+ <field name="xw" type="float"/>
+ <field name="yw" type="float"/>
+ <field name="zw" type="float"/>
+ <field name="ww" type="float"/>
+ <field name="_padding0" type="float[]"/>
+ <field name="_padding1" type="gulong"/>
+ <field name="_padding2" type="gulong"/>
+ <field name="_padding3" type="gulong"/>
+ </struct>
+ <struct name="CoglPangoFontMap">
+ <method name="clear_glyph_cache" symbol="cogl_pango_font_map_clear_glyph_cache">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="fm" type="CoglPangoFontMap*"/>
+ </parameters>
+ </method>
+ <method name="create_context" symbol="cogl_pango_font_map_create_context">
+ <return-type type="PangoContext*"/>
+ <parameters>
+ <parameter name="fm" type="CoglPangoFontMap*"/>
+ </parameters>
+ </method>
+ <method name="get_renderer" symbol="cogl_pango_font_map_get_renderer">
+ <return-type type="PangoRenderer*"/>
+ <parameters>
+ <parameter name="fm" type="CoglPangoFontMap*"/>
+ </parameters>
+ </method>
+ <method name="get_use_mipmapping" symbol="cogl_pango_font_map_get_use_mipmapping">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="fm" type="CoglPangoFontMap*"/>
+ </parameters>
+ </method>
+ <method name="new" symbol="cogl_pango_font_map_new">
+ <return-type type="PangoFontMap*"/>
+ </method>
+ <method name="set_resolution" symbol="cogl_pango_font_map_set_resolution">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="font_map" type="CoglPangoFontMap*"/>
+ <parameter name="dpi" type="double"/>
+ </parameters>
+ </method>
+ <method name="set_use_mipmapping" symbol="cogl_pango_font_map_set_use_mipmapping">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="fm" type="CoglPangoFontMap*"/>
+ <parameter name="value" type="gboolean"/>
+ </parameters>
+ </method>
+ </struct>
+ <struct name="CoglPangoRendererClass">
+ </struct>
+ <struct name="CoglTextureVertex">
+ <field name="x" type="float"/>
+ <field name="y" type="float"/>
+ <field name="z" type="float"/>
+ <field name="tx" type="float"/>
+ <field name="ty" type="float"/>
+ <field name="color" type="CoglColor"/>
+ </struct>
+ <boxed name="CoglHandle" type-name="CoglHandle" get-type="cogl_handle_get_type">
+ </boxed>
+ <enum name="CoglAttributeType" type-name="CoglAttributeType" get-type="cogl_attribute_type_get_type">
+ <member name="COGL_ATTRIBUTE_TYPE_BYTE" value="5120"/>
+ <member name="COGL_ATTRIBUTE_TYPE_UNSIGNED_BYTE" value="5121"/>
+ <member name="COGL_ATTRIBUTE_TYPE_SHORT" value="5122"/>
+ <member name="COGL_ATTRIBUTE_TYPE_UNSIGNED_SHORT" value="5123"/>
+ <member name="COGL_ATTRIBUTE_TYPE_FLOAT" value="5126"/>
+ </enum>
+ <enum name="CoglBlendStringError" type-name="CoglBlendStringError" get-type="cogl_blend_string_error_get_type">
+ <member name="COGL_BLEND_STRING_ERROR_PARSE_ERROR" value="0"/>
+ <member name="COGL_BLEND_STRING_ERROR_ARGUMENT_PARSE_ERROR" value="1"/>
+ <member name="COGL_BLEND_STRING_ERROR_INVALID_ERROR" value="2"/>
+ <member name="COGL_BLEND_STRING_ERROR_GPU_UNSUPPORTED_ERROR" value="3"/>
+ </enum>
+ <enum name="CoglFogMode" type-name="CoglFogMode" get-type="cogl_fog_mode_get_type">
+ <member name="COGL_FOG_MODE_LINEAR" value="0"/>
+ <member name="COGL_FOG_MODE_EXPONENTIAL" value="1"/>
+ <member name="COGL_FOG_MODE_EXPONENTIAL_SQUARED" value="2"/>
+ </enum>
+ <enum name="CoglIndicesType" type-name="CoglIndicesType" get-type="cogl_indices_type_get_type">
+ <member name="COGL_INDICES_TYPE_UNSIGNED_BYTE" value="0"/>
+ <member name="COGL_INDICES_TYPE_UNSIGNED_SHORT" value="1"/>
+ </enum>
+ <enum name="CoglMaterialAlphaFunc" type-name="CoglMaterialAlphaFunc" get-type="cogl_material_alpha_func_get_type">
+ <member name="COGL_MATERIAL_ALPHA_FUNC_NEVER" value="512"/>
+ <member name="COGL_MATERIAL_ALPHA_FUNC_LESS" value="513"/>
+ <member name="COGL_MATERIAL_ALPHA_FUNC_EQUAL" value="514"/>
+ <member name="COGL_MATERIAL_ALPHA_FUNC_LEQUAL" value="515"/>
+ <member name="COGL_MATERIAL_ALPHA_FUNC_GREATER" value="516"/>
+ <member name="COGL_MATERIAL_ALPHA_FUNC_NOTEQUAL" value="517"/>
+ <member name="COGL_MATERIAL_ALPHA_FUNC_GEQUAL" value="518"/>
+ <member name="COGL_MATERIAL_ALPHA_FUNC_ALWAYS" value="519"/>
+ </enum>
+ <enum name="CoglMaterialFilter" type-name="CoglMaterialFilter" get-type="cogl_material_filter_get_type">
+ <member name="COGL_MATERIAL_FILTER_NEAREST" value="9728"/>
+ <member name="COGL_MATERIAL_FILTER_LINEAR" value="9729"/>
+ <member name="COGL_MATERIAL_FILTER_NEAREST_MIPMAP_NEAREST" value="9984"/>
+ <member name="COGL_MATERIAL_FILTER_LINEAR_MIPMAP_NEAREST" value="9985"/>
+ <member name="COGL_MATERIAL_FILTER_NEAREST_MIPMAP_LINEAR" value="9986"/>
+ <member name="COGL_MATERIAL_FILTER_LINEAR_MIPMAP_LINEAR" value="9987"/>
+ </enum>
+ <enum name="CoglMaterialLayerType" type-name="CoglMaterialLayerType" get-type="cogl_material_layer_type_get_type">
+ <member name="COGL_MATERIAL_LAYER_TYPE_TEXTURE" value="0"/>
+ </enum>
+ <enum name="CoglPixelFormat" type-name="CoglPixelFormat" get-type="cogl_pixel_format_get_type">
+ <member name="COGL_PIXEL_FORMAT_ANY" value="0"/>
+ <member name="COGL_PIXEL_FORMAT_A_8" value="17"/>
+ <member name="COGL_PIXEL_FORMAT_RGB_565" value="4"/>
+ <member name="COGL_PIXEL_FORMAT_RGBA_4444" value="21"/>
+ <member name="COGL_PIXEL_FORMAT_RGBA_5551" value="22"/>
+ <member name="COGL_PIXEL_FORMAT_YUV" value="7"/>
+ <member name="COGL_PIXEL_FORMAT_G_8" value="8"/>
+ <member name="COGL_PIXEL_FORMAT_RGB_888" value="2"/>
+ <member name="COGL_PIXEL_FORMAT_BGR_888" value="34"/>
+ <member name="COGL_PIXEL_FORMAT_RGBA_8888" value="19"/>
+ <member name="COGL_PIXEL_FORMAT_BGRA_8888" value="51"/>
+ <member name="COGL_PIXEL_FORMAT_ARGB_8888" value="83"/>
+ <member name="COGL_PIXEL_FORMAT_ABGR_8888" value="115"/>
+ <member name="COGL_PIXEL_FORMAT_RGBA_8888_PRE" value="147"/>
+ <member name="COGL_PIXEL_FORMAT_BGRA_8888_PRE" value="179"/>
+ <member name="COGL_PIXEL_FORMAT_ARGB_8888_PRE" value="211"/>
+ <member name="COGL_PIXEL_FORMAT_ABGR_8888_PRE" value="243"/>
+ <member name="COGL_PIXEL_FORMAT_RGBA_4444_PRE" value="149"/>
+ <member name="COGL_PIXEL_FORMAT_RGBA_5551_PRE" value="150"/>
+ </enum>
+ <enum name="CoglShaderType" type-name="CoglShaderType" get-type="cogl_shader_type_get_type">
+ <member name="COGL_SHADER_TYPE_VERTEX" value="0"/>
+ <member name="COGL_SHADER_TYPE_FRAGMENT" value="1"/>
+ </enum>
+ <enum name="CoglVerticesMode" type-name="CoglVerticesMode" get-type="cogl_vertices_mode_get_type">
+ <member name="COGL_VERTICES_MODE_POINTS" value="0"/>
+ <member name="COGL_VERTICES_MODE_LINE_STRIP" value="3"/>
+ <member name="COGL_VERTICES_MODE_LINE_LOOP" value="2"/>
+ <member name="COGL_VERTICES_MODE_LINES" value="1"/>
+ <member name="COGL_VERTICES_MODE_TRIANGLE_STRIP" value="5"/>
+ <member name="COGL_VERTICES_MODE_TRIANGLE_FAN" value="6"/>
+ <member name="COGL_VERTICES_MODE_TRIANGLES" value="4"/>
+ </enum>
+ <flags name="CoglBufferBit" type-name="CoglBufferBit" get-type="cogl_buffer_bit_get_type">
+ <member name="COGL_BUFFER_BIT_COLOR" value="1"/>
+ <member name="COGL_BUFFER_BIT_DEPTH" value="2"/>
+ <member name="COGL_BUFFER_BIT_STENCIL" value="4"/>
+ </flags>
+ <flags name="CoglBufferTarget" type-name="CoglBufferTarget" get-type="cogl_buffer_target_get_type">
+ <member name="COGL_WINDOW_BUFFER" value="2"/>
+ <member name="COGL_OFFSCREEN_BUFFER" value="4"/>
+ </flags>
+ <flags name="CoglDebugFlags" type-name="CoglDebugFlags" get-type="cogl_debug_flags_get_type">
+ <member name="COGL_DEBUG_MISC" value="1"/>
+ <member name="COGL_DEBUG_TEXTURE" value="2"/>
+ <member name="COGL_DEBUG_MATERIAL" value="4"/>
+ <member name="COGL_DEBUG_SHADER" value="8"/>
+ <member name="COGL_DEBUG_OFFSCREEN" value="16"/>
+ <member name="COGL_DEBUG_DRAW" value="32"/>
+ <member name="COGL_DEBUG_PANGO" value="64"/>
+ <member name="COGL_DEBUG_RECTANGLES" value="128"/>
+ <member name="COGL_DEBUG_HANDLE" value="256"/>
+ <member name="COGL_DEBUG_BLEND_STRINGS" value="512"/>
+ <member name="COGL_DEBUG_DISABLE_BATCHING" value="1024"/>
+ <member name="COGL_DEBUG_FORCE_CLIENT_SIDE_MATRICES" value="2048"/>
+ <member name="COGL_DEBUG_DISABLE_VBOS" value="4096"/>
+ <member name="COGL_DEBUG_JOURNAL" value="8192"/>
+ <member name="COGL_DEBUG_BATCHING" value="16384"/>
+ <member name="COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM" value="32768"/>
+ </flags>
+ <flags name="CoglFeatureFlags" type-name="CoglFeatureFlags" get-type="cogl_feature_flags_get_type">
+ <member name="COGL_FEATURE_TEXTURE_RECTANGLE" value="2"/>
+ <member name="COGL_FEATURE_TEXTURE_NPOT" value="4"/>
+ <member name="COGL_FEATURE_TEXTURE_YUV" value="8"/>
+ <member name="COGL_FEATURE_TEXTURE_READ_PIXELS" value="16"/>
+ <member name="COGL_FEATURE_SHADERS_GLSL" value="32"/>
+ <member name="COGL_FEATURE_OFFSCREEN" value="64"/>
+ <member name="COGL_FEATURE_OFFSCREEN_MULTISAMPLE" value="128"/>
+ <member name="COGL_FEATURE_OFFSCREEN_BLIT" value="256"/>
+ <member name="COGL_FEATURE_FOUR_CLIP_PLANES" value="512"/>
+ <member name="COGL_FEATURE_STENCIL_BUFFER" value="1024"/>
+ <member name="COGL_FEATURE_VBOS" value="2048"/>
+ </flags>
+ <flags name="CoglReadPixelsFlags" type-name="CoglReadPixelsFlags" get-type="cogl_read_pixels_flags_get_type">
+ <member name="COGL_READ_PIXELS_COLOR_BUFFER" value="1"/>
+ </flags>
+ <flags name="CoglTextureFlags" type-name="CoglTextureFlags" get-type="cogl_texture_flags_get_type">
+ <member name="COGL_TEXTURE_NONE" value="0"/>
+ <member name="COGL_TEXTURE_NO_AUTO_MIPMAP" value="1"/>
+ <member name="COGL_TEXTURE_NO_SLICING" value="2"/>
+ </flags>
+ <object name="CoglPangoRenderer" parent="PangoRenderer" type-name="CoglPangoRenderer" get-type="cogl_pango_renderer_get_type">
+ </object>
+ <constant name="COGL_AFIRST_BIT" type="int" value="64"/>
+ <constant name="COGL_A_BIT" type="int" value="16"/>
+ <constant name="COGL_BGR_BIT" type="int" value="32"/>
+ <constant name="COGL_FIXED_0_5" type="int" value="32768"/>
+ <constant name="COGL_FIXED_1" type="int" value="1"/>
+ <constant name="COGL_FIXED_2_PI" type="int" value="411775"/>
+ <constant name="COGL_FIXED_BITS" type="int" value="32"/>
+ <constant name="COGL_FIXED_EPSILON" type="int" value="1"/>
+ <constant name="COGL_FIXED_MAX" type="int" value="2147483647"/>
+ <constant name="COGL_FIXED_MIN" type="int" value="2147483647"/>
+ <constant name="COGL_FIXED_PI" type="int" value="205887"/>
+ <constant name="COGL_FIXED_PI_2" type="int" value="102944"/>
+ <constant name="COGL_FIXED_PI_4" type="int" value="51472"/>
+ <constant name="COGL_FIXED_Q" type="int" value="-16"/>
+ <constant name="COGL_PIXEL_FORMAT_24" type="int" value="2"/>
+ <constant name="COGL_PIXEL_FORMAT_32" type="int" value="3"/>
+ <constant name="COGL_PREMULT_BIT" type="int" value="128"/>
+ <constant name="COGL_RADIANS_TO_DEGREES" type="int" value="3754936"/>
+ <constant name="COGL_SQRTI_ARG_10_PERCENT" type="int" value="5590"/>
+ <constant name="COGL_SQRTI_ARG_5_PERCENT" type="int" value="210"/>
+ <constant name="COGL_SQRTI_ARG_MAX" type="int" value="4194303"/>
+ <constant name="COGL_TEXTURE_MAX_WASTE" type="int" value="127"/>
+ <constant name="COGL_UNORDERED_MASK" type="int" value="15"/>
+ <constant name="COGL_UNPREMULT_MASK" type="int" value="127"/>
+ </namespace>
+</api>
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.metadata b/vapi/packages/cogl-1.0/cogl-1.0.metadata
new file mode 100644
index 0000000..f2a762d
--- /dev/null
+++ b/vapi/packages/cogl-1.0/cogl-1.0.metadata
@@ -0,0 +1,63 @@
+Cogl cheader_filename="cogl/cogl.h"
+
+COGLint name="long"
+GLint name="long"
+COGLenum name="long"
+GLenum name="long"
+GLfloat name="float"
+GLuint name="ulong"
+GLvoid name="void"
+GLsizei name="size_t"
+
+CoglAngle is_value_type="1"
+
+CoglBlendStringError errordomain="1"
+cogl_blend_string_error_quark hidden="1"
+
+cogl_bitmap_get_size_from_file hidden="1"
+cogl_bitmap_new_from_file hidden="1"
+
+CoglColor is_value_type="1" free_function="cogl_color_free"
+cogl_color_free hidden="1"
+
+cogl_create_program hidden="1"
+cogl_create_shader hidden="1"
+
+CoglFixed is_value_type="1"
+
+cogl_is_material hidden="1"
+cogl_is_offscreen hidden="1"
+cogl_is_program hidden="1"
+cogl_is_shader hidden="1"
+cogl_is_texture hidden="1"
+cogl_is_vertex_buffer hidden="1"
+
+CoglMatrix is_value_type="1"
+cogl_matrix_get_array is_array="1"
+cogl_matrix_multiply hidden="1"
+cogl_matrix_init_from_array hidden="1"
+cogl_matrix_init_identity hidden="1"
+
+cogl_pop_draw_buffer hidden="1"
+cogl_push_draw_buffer hidden="1"
+
+cogl_program_* hidden="1"
+
+cogl_rectangles.verts is_array="1" no_array_length="1"
+cogl_rectangles_with_texture_coords.verts is_array="1" no_array_length="1"
+
+cogl_set_draw_buffer hidden="1"
+cogl_set_source.material type_name="Material"
+cogl_set_source_texture.texture_handle type_name="Texture"
+
+cogl_shader_* hidden="1"
+
+cogl_texture_* hidden="1"
+
+CoglTextureVertex is_value_type="1"
+
+cogl_material_* hidden="1"
+
+cogl_offscreen_* hidden="1"
+
+cogl_vertex_buffer_* hidden="1"
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.namespace b/vapi/packages/cogl-1.0/cogl-1.0.namespace
new file mode 100644
index 0000000..dac5872
--- /dev/null
+++ b/vapi/packages/cogl-1.0/cogl-1.0.namespace
@@ -0,0 +1 @@
+Cogl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]