<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="GL" version="1.0"/>
  <include name="GLib" version="2.0"/>
  <include name="GObject" version="2.0"/>
  <package name="gobject-2.0"/>
  <c:include name="cogl/cogl.h"/>
  <namespace name="Cogl"
             version="1.0"
             shared-library="libclutter-glx-1.0.so.0.0"
             c:identifier-prefixes="Cogl"
             c:symbol-prefixes="cogl">
    <alias name="Angle" c:type="CoglAngle">
      <doc xml:whitespace="preserve">Integer representation of an angle such that 1024 corresponds to
full circle (i.e., 2 * pi).</doc>
      <type name="gint32" c:type="gint32"/>
    </alias>
    <alias name="Handle" c:type="CoglHandle">
      <doc xml:whitespace="preserve">Type used for storing references to cogl objects, the CoglHandle is
a fully opaque type without any public data members.</doc>
      <type name="gpointer" c:type="gpointer"/>
    </alias>
    <constant name="AFIRST_BIT" value="64" c:type="COGL_AFIRST_BIT">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="A_BIT" value="16" c:type="COGL_A_BIT">
      <type name="gint" c:type="gint"/>
    </constant>
    <enumeration name="AttributeType"
                 version="1.0"
                 glib:type-name="CoglAttributeType"
                 glib:get-type="cogl_attribute_type_get_type"
                 c:type="CoglAttributeType">
      <doc xml:whitespace="preserve">Data types for the components of cogl_vertex_buffer_add()</doc>
      <member name="byte"
              value="0"
              c:identifier="COGL_ATTRIBUTE_TYPE_BYTE"
              glib:nick="byte"/>
      <member name="unsigned_byte"
              value="0"
              c:identifier="COGL_ATTRIBUTE_TYPE_UNSIGNED_BYTE"
              glib:nick="unsigned-byte"/>
      <member name="short"
              value="0"
              c:identifier="COGL_ATTRIBUTE_TYPE_SHORT"
              glib:nick="short"/>
      <member name="unsigned_short"
              value="0"
              c:identifier="COGL_ATTRIBUTE_TYPE_UNSIGNED_SHORT"
              glib:nick="unsigned-short"/>
      <member name="float"
              value="0"
              c:identifier="COGL_ATTRIBUTE_TYPE_FLOAT"
              glib:nick="float"/>
    </enumeration>
    <constant name="BGR_BIT" value="32" c:type="COGL_BGR_BIT">
      <type name="gint" c:type="gint"/>
    </constant>
    <enumeration name="BlendStringError"
                 glib:type-name="CoglBlendStringError"
                 glib:get-type="cogl_blend_string_error_get_type"
                 c:type="CoglBlendStringError"
                 glib:error-domain="cogl-blend-string-error-quark">
      <member name="parse_error"
              value="0"
              c:identifier="COGL_BLEND_STRING_ERROR_PARSE_ERROR"
              glib:nick="parse-error"/>
      <member name="argument_parse_error"
              value="1"
              c:identifier="COGL_BLEND_STRING_ERROR_ARGUMENT_PARSE_ERROR"
              glib:nick="argument-parse-error"/>
      <member name="invalid_error"
              value="2"
              c:identifier="COGL_BLEND_STRING_ERROR_INVALID_ERROR"
              glib:nick="invalid-error"/>
      <member name="gpu_unsupported_error"
              value="3"
              c:identifier="COGL_BLEND_STRING_ERROR_GPU_UNSUPPORTED_ERROR"
              glib:nick="gpu-unsupported-error"/>
      <function name="quark" c:identifier="cogl_blend_string_error_quark">
        <return-value transfer-ownership="none">
          <type name="GLib.Quark" c:type="GQuark"/>
        </return-value>
      </function>
    </enumeration>
    <bitfield name="BufferBit"
              version="1.0"
              glib:type-name="CoglBufferBit"
              glib:get-type="cogl_buffer_bit_get_type"
              c:type="CoglBufferBit">
      <doc xml:whitespace="preserve">Types of auxiliary buffers</doc>
      <member name="color"
              value="1"
              c:identifier="COGL_BUFFER_BIT_COLOR"
              glib:nick="color"/>
      <member name="depth"
              value="2"
              c:identifier="COGL_BUFFER_BIT_DEPTH"
              glib:nick="depth"/>
      <member name="stencil"
              value="4"
              c:identifier="COGL_BUFFER_BIT_STENCIL"
              glib:nick="stencil"/>
    </bitfield>
    <bitfield name="BufferTarget"
              version="0.8"
              glib:type-name="CoglBufferTarget"
              glib:get-type="cogl_buffer_target_get_type"
              c:type="CoglBufferTarget">
      <doc xml:whitespace="preserve">Target flags for FBOs.</doc>
      <member name="window_buffer"
              value="2"
              c:identifier="COGL_WINDOW_BUFFER"
              glib:nick="window-buffer"/>
      <member name="offscreen_buffer"
              value="4"
              c:identifier="COGL_OFFSCREEN_BUFFER"
              glib:nick="offscreen-buffer"/>
    </bitfield>
    <record name="Color" c:type="CoglColor" version="1.0">
      <doc xml:whitespace="preserve">A structure for holding a color definition. The contents of
the CoglColor structure are private and should never by accessed
directly.</doc>
      <field name="red" readable="0" private="1">
        <type name="guint8" c:type="guint8"/>
      </field>
      <field name="green" readable="0" private="1">
        <type name="guint8" c:type="guint8"/>
      </field>
      <field name="blue" readable="0" private="1">
        <type name="guint8" c:type="guint8"/>
      </field>
      <field name="alpha" readable="0" private="1">
        <type name="guint8" c:type="guint8"/>
      </field>
      <field name="padding0" readable="0" private="1">
        <type name="guint32" c:type="guint32"/>
      </field>
      <field name="padding1" readable="0" private="1">
        <type name="guint32" c:type="guint32"/>
      </field>
      <field name="padding2" readable="0" private="1">
        <type name="guint32" c:type="guint32"/>
      </field>
      <method name="copy" c:identifier="cogl_color_copy" introspectable="0">
        <return-value>
          <type name="Color" c:type="CoglColor*"/>
        </return-value>
      </method>
      <method name="free" c:identifier="cogl_color_free">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
      </method>
      <method name="get_alpha"
              c:identifier="cogl_color_get_alpha"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the alpha channel of @color as a fixed point
value between 0 and %1.0.</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the alpha channel of the passed color</doc>
          <type name="gfloat" c:type="float"/>
        </return-value>
      </method>
      <method name="get_alpha_byte"
              c:identifier="cogl_color_get_alpha_byte"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the alpha channel of @color as a byte value
between 0 and 255</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the alpha channel of the passed color</doc>
          <type name="guint8" c:type="unsigned char"/>
        </return-value>
      </method>
      <method name="get_alpha_float"
              c:identifier="cogl_color_get_alpha_float"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the alpha channel of @color as a floating point
value between 0.0 and 1.0</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the alpha channel of the passed color</doc>
          <type name="gfloat" c:type="float"/>
        </return-value>
      </method>
      <method name="get_blue" c:identifier="cogl_color_get_blue" version="1.0">
        <doc xml:whitespace="preserve">Retrieves the blue channel of @color as a fixed point
value between 0 and %1.0.</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the blue channel of the passed color</doc>
          <type name="gfloat" c:type="float"/>
        </return-value>
      </method>
      <method name="get_blue_byte"
              c:identifier="cogl_color_get_blue_byte"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the blue channel of @color as a byte value
between 0 and 255</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the blue channel of the passed color</doc>
          <type name="guint8" c:type="unsigned char"/>
        </return-value>
      </method>
      <method name="get_blue_float"
              c:identifier="cogl_color_get_blue_float"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the blue channel of @color as a floating point
value between 0.0 and 1.0</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the blue channel of the passed color</doc>
          <type name="gfloat" c:type="float"/>
        </return-value>
      </method>
      <method name="get_green"
              c:identifier="cogl_color_get_green"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the green channel of @color as a fixed point
value between 0 and %1.0.</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the green channel of the passed color</doc>
          <type name="gfloat" c:type="float"/>
        </return-value>
      </method>
      <method name="get_green_byte"
              c:identifier="cogl_color_get_green_byte"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the green channel of @color as a byte value
between 0 and 255</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the green channel of the passed color</doc>
          <type name="guint8" c:type="unsigned char"/>
        </return-value>
      </method>
      <method name="get_green_float"
              c:identifier="cogl_color_get_green_float"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the green channel of @color as a floating point
value between 0.0 and 1.0</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the green channel of the passed color</doc>
          <type name="gfloat" c:type="float"/>
        </return-value>
      </method>
      <method name="get_red" c:identifier="cogl_color_get_red" version="1.0">
        <doc xml:whitespace="preserve">Retrieves the red channel of @color as a fixed point
value between 0 and %1.0.</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the red channel of the passed color</doc>
          <type name="gfloat" c:type="float"/>
        </return-value>
      </method>
      <method name="get_red_byte"
              c:identifier="cogl_color_get_red_byte"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the red channel of @color as a byte value
between 0 and 255</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the red channel of the passed color</doc>
          <type name="guint8" c:type="unsigned char"/>
        </return-value>
      </method>
      <method name="get_red_float"
              c:identifier="cogl_color_get_red_float"
              version="1.0">
        <doc xml:whitespace="preserve">Retrieves the red channel of @color as a floating point
value between 0.0 and 1.0</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the red channel of the passed color</doc>
          <type name="gfloat" c:type="float"/>
        </return-value>
      </method>
      <method name="premultiply"
              c:identifier="cogl_color_premultiply"
              version="1.0">
        <doc xml:whitespace="preserve">Converts a non-premultiplied color to a pre-multiplied color. For
example, semi-transparent red is (1.0, 0, 0, 0.5) when non-premultiplied
and (0.5, 0, 0, 0.5) when premultiplied.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
      </method>
      <method name="set_from_4f"
              c:identifier="cogl_color_set_from_4f"
              version="1.0">
        <doc xml:whitespace="preserve">Sets the values of the passed channels into a #CoglColor</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="red" transfer-ownership="none">
            <doc xml:whitespace="preserve">value of the red channel, between 0 and %1.0</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="green" transfer-ownership="none">
            <doc xml:whitespace="preserve">value of the green channel, between 0 and %1.0</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="blue" transfer-ownership="none">
            <doc xml:whitespace="preserve">value of the blue channel, between 0 and %1.0</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="alpha" transfer-ownership="none">
            <doc xml:whitespace="preserve">value of the alpha channel, between 0 and %1.0</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_from_4ub"
              c:identifier="cogl_color_set_from_4ub"
              version="1.0">
        <doc xml:whitespace="preserve">Sets the values of the passed channels into a #CoglColor.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="red" transfer-ownership="none">
            <doc xml:whitespace="preserve">value of the red channel, between 0 and 255</doc>
            <type name="guint8" c:type="guint8"/>
          </parameter>
          <parameter name="green" transfer-ownership="none">
            <doc xml:whitespace="preserve">value of the green channel, between 0 and 255</doc>
            <type name="guint8" c:type="guint8"/>
          </parameter>
          <parameter name="blue" transfer-ownership="none">
            <doc xml:whitespace="preserve">value of the blue channel, between 0 and 255</doc>
            <type name="guint8" c:type="guint8"/>
          </parameter>
          <parameter name="alpha" transfer-ownership="none">
            <doc xml:whitespace="preserve">value of the alpha channel, between 0 and 255</doc>
            <type name="guint8" c:type="guint8"/>
          </parameter>
        </parameters>
      </method>
      <function name="equal" c:identifier="cogl_color_equal" version="1.0">
        <doc xml:whitespace="preserve">Compares two #CoglColor&lt;!-- --&gt;s and checks if they are the same.

This function can be passed to g_hash_table_new() as the @key_equal_func
parameter, when using #CoglColor&lt;!-- --&gt;s as keys in a #GHashTable.</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">%TRUE if the two colors are the same.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <parameter name="v1" transfer-ownership="none">
            <doc xml:whitespace="preserve">a #CoglColor</doc>
            <type name="gpointer" c:type="gconstpointer"/>
          </parameter>
          <parameter name="v2" transfer-ownership="none">
            <doc xml:whitespace="preserve">a #CoglColor</doc>
            <type name="gpointer" c:type="gconstpointer"/>
          </parameter>
        </parameters>
      </function>
      <function name="new" c:identifier="cogl_color_new" introspectable="0">
        <return-value>
          <type name="Color" c:type="CoglColor*"/>
        </return-value>
      </function>
    </record>
    <bitfield name="DebugFlags"
              glib:type-name="CoglDebugFlags"
              glib:get-type="cogl_debug_flags_get_type"
              c:type="CoglDebugFlags">
      <member name="misc"
              value="1"
              c:identifier="COGL_DEBUG_MISC"
              glib:nick="misc"/>
      <member name="texture"
              value="2"
              c:identifier="COGL_DEBUG_TEXTURE"
              glib:nick="texture"/>
      <member name="material"
              value="4"
              c:identifier="COGL_DEBUG_MATERIAL"
              glib:nick="material"/>
      <member name="shader"
              value="8"
              c:identifier="COGL_DEBUG_SHADER"
              glib:nick="shader"/>
      <member name="offscreen"
              value="16"
              c:identifier="COGL_DEBUG_OFFSCREEN"
              glib:nick="offscreen"/>
      <member name="draw"
              value="32"
              c:identifier="COGL_DEBUG_DRAW"
              glib:nick="draw"/>
      <member name="pango"
              value="64"
              c:identifier="COGL_DEBUG_PANGO"
              glib:nick="pango"/>
      <member name="rectangles"
              value="128"
              c:identifier="COGL_DEBUG_RECTANGLES"
              glib:nick="rectangles"/>
      <member name="handle"
              value="256"
              c:identifier="COGL_DEBUG_HANDLE"
              glib:nick="handle"/>
      <member name="blend_strings"
              value="512"
              c:identifier="COGL_DEBUG_BLEND_STRINGS"
              glib:nick="blend-strings"/>
      <member name="disable_batching"
              value="1024"
              c:identifier="COGL_DEBUG_DISABLE_BATCHING"
              glib:nick="disable-batching"/>
      <member name="force_client_side_matrices"
              value="2048"
              c:identifier="COGL_DEBUG_FORCE_CLIENT_SIDE_MATRICES"
              glib:nick="force-client-side-matrices"/>
      <member name="disable_vbos"
              value="4096"
              c:identifier="COGL_DEBUG_DISABLE_VBOS"
              glib:nick="disable-vbos"/>
      <member name="journal"
              value="8192"
              c:identifier="COGL_DEBUG_JOURNAL"
              glib:nick="journal"/>
      <member name="batching"
              value="16384"
              c:identifier="COGL_DEBUG_BATCHING"
              glib:nick="batching"/>
      <member name="disable_software_transform"
              value="32768"
              c:identifier="COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM"
              glib:nick="disable-software-transform"/>
    </bitfield>
    <constant name="FIXED_0_5" value="32768" c:type="COGL_FIXED_0_5">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_1" value="1" c:type="COGL_FIXED_1">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_2_PI" value="411775" c:type="COGL_FIXED_2_PI">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_BITS" value="32" c:type="COGL_FIXED_BITS">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_EPSILON" value="1" c:type="COGL_FIXED_EPSILON">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_MAX" value="2147483647" c:type="COGL_FIXED_MAX">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_MIN" value="2147483648" c:type="COGL_FIXED_MIN">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_PI" value="205887" c:type="COGL_FIXED_PI">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_PI_2" value="102944" c:type="COGL_FIXED_PI_2">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_PI_4" value="51472" c:type="COGL_FIXED_PI_4">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="FIXED_Q" value="-16" c:type="COGL_FIXED_Q">
      <type name="gint" c:type="gint"/>
    </constant>
    <bitfield name="FeatureFlags"
              version="0.8"
              glib:type-name="CoglFeatureFlags"
              glib:get-type="cogl_feature_flags_get_type"
              c:type="CoglFeatureFlags">
      <doc xml:whitespace="preserve">Flags for the supported features.</doc>
      <member name="texture_rectangle"
              value="2"
              c:identifier="COGL_FEATURE_TEXTURE_RECTANGLE"
              glib:nick="texture-rectangle"/>
      <member name="texture_npot"
              value="4"
              c:identifier="COGL_FEATURE_TEXTURE_NPOT"
              glib:nick="texture-npot"/>
      <member name="texture_yuv"
              value="8"
              c:identifier="COGL_FEATURE_TEXTURE_YUV"
              glib:nick="texture-yuv"/>
      <member name="texture_read_pixels"
              value="16"
              c:identifier="COGL_FEATURE_TEXTURE_READ_PIXELS"
              glib:nick="texture-read-pixels"/>
      <member name="shaders_glsl"
              value="32"
              c:identifier="COGL_FEATURE_SHADERS_GLSL"
              glib:nick="shaders-glsl"/>
      <member name="offscreen"
              value="64"
              c:identifier="COGL_FEATURE_OFFSCREEN"
              glib:nick="offscreen"/>
      <member name="offscreen_multisample"
              value="128"
              c:identifier="COGL_FEATURE_OFFSCREEN_MULTISAMPLE"
              glib:nick="offscreen-multisample"/>
      <member name="offscreen_blit"
              value="256"
              c:identifier="COGL_FEATURE_OFFSCREEN_BLIT"
              glib:nick="offscreen-blit"/>
      <member name="four_clip_planes"
              value="512"
              c:identifier="COGL_FEATURE_FOUR_CLIP_PLANES"
              glib:nick="four-clip-planes"/>
      <member name="stencil_buffer"
              value="1024"
              c:identifier="COGL_FEATURE_STENCIL_BUFFER"
              glib:nick="stencil-buffer"/>
      <member name="vbos"
              value="2048"
              c:identifier="COGL_FEATURE_VBOS"
              glib:nick="vbos"/>
    </bitfield>
    <class name="Fixed"
           c:symbol-prefix="fixed"
           glib:type-name="CoglFixed"
           glib:get-type="cogl_fixed_get_type"
           glib:fundamental="1">
      <doc xml:whitespace="preserve">Fixed point number using a (16.16) notation.</doc>
      <function name="log2"
                c:identifier="cogl_fixed_log2"
                version="1.0"
                introspectable="0">
        <doc xml:whitespace="preserve">Calculates base 2 logarithm.

This function is some 2.5 times faster on x86, and over 12 times faster on
fpu-less arm, than using libc log().</doc>
        <return-value>
          <doc xml:whitespace="preserve">base 2 logarithm.</doc>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
        <parameters>
          <parameter name="x" transfer-ownership="none">
            <doc xml:whitespace="preserve">value to calculate base 2 logarithm from</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </function>
      <function name="pow" c:identifier="cogl_fixed_pow" version="1.0">
        <doc xml:whitespace="preserve">Calculates @x to the @y power.</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the power of @x to the @y</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <parameter name="x" transfer-ownership="none">
            <doc xml:whitespace="preserve">base</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="y" transfer-ownership="none">
            <doc xml:whitespace="preserve">#CoglFixed exponent</doc>
            <type name="Fixed" c:type="CoglFixed"/>
          </parameter>
        </parameters>
      </function>
      <method name="atan2"
              c:identifier="cogl_fixed_atan2"
              version="1.0"
              introspectable="0">
        <doc xml:whitespace="preserve">Computes the arc tangent of @a / @b but uses the sign of both
arguments to return the angle in right quadrant.

notation</doc>
        <return-value>
          <doc xml:whitespace="preserve">the arc tangent of the passed fraction, in fixed point</doc>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
        <parameters>
          <parameter name="b" transfer-ownership="none">
            <doc xml:whitespace="preserve">the denominator as a #CoglFixed number</doc>
            <type name="Fixed" c:type="CoglFixed"/>
          </parameter>
        </parameters>
      </method>
      <method name="atani"
              c:identifier="cogl_fixed_atani"
              version="1.0"
              introspectable="0">
        <doc xml:whitespace="preserve">Computes the arc tangent of @a.</doc>
        <return-value>
          <doc xml:whitespace="preserve">the arc tangent of the passed value, in fixed point notation</doc>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
      </method>
      <method name="cos"
              c:identifier="cogl_fixed_cos"
              version="1.0"
              introspectable="0">
        <doc xml:whitespace="preserve">Computes the cosine of @angle.</doc>
        <return-value>
          <doc xml:whitespace="preserve">the cosine of the passed angle, in fixed point notation</doc>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
      </method>
      <method name="div" c:identifier="cogl_fixed_div" introspectable="0">
        <return-value>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
        <parameters>
          <parameter name="b" transfer-ownership="none">
            <type name="Fixed" c:type="CoglFixed"/>
          </parameter>
        </parameters>
      </method>
      <method name="mul" c:identifier="cogl_fixed_mul" introspectable="0">
        <return-value>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
        <parameters>
          <parameter name="b" transfer-ownership="none">
            <type name="Fixed" c:type="CoglFixed"/>
          </parameter>
        </parameters>
      </method>
      <method name="mul_div"
              c:identifier="cogl_fixed_mul_div"
              introspectable="0">
        <return-value>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
        <parameters>
          <parameter name="b" transfer-ownership="none">
            <type name="Fixed" c:type="CoglFixed"/>
          </parameter>
          <parameter name="c" transfer-ownership="none">
            <type name="Fixed" c:type="CoglFixed"/>
          </parameter>
        </parameters>
      </method>
      <method name="pow2" c:identifier="cogl_fixed_pow2" version="1.0">
        <doc xml:whitespace="preserve">Calculates 2 to the @x power.

This function is around 11 times faster on x86, and around 22 times faster
on fpu-less arm than libc pow(2, x).</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">the power of 2 to the passed value</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
      </method>
      <method name="sin"
              c:identifier="cogl_fixed_sin"
              version="1.0"
              introspectable="0">
        <doc xml:whitespace="preserve">Computes the sine of @angle.</doc>
        <return-value>
          <doc xml:whitespace="preserve">the sine of the passed angle, in fixed point notation</doc>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
      </method>
      <method name="sqrt"
              c:identifier="cogl_fixed_sqrt"
              version="1.0"
              introspectable="0">
        <doc xml:whitespace="preserve">Computes the square root of @x.

notation</doc>
        <return-value>
          <doc xml:whitespace="preserve">the square root of the passed value, in floating point</doc>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
      </method>
      <method name="tan"
              c:identifier="cogl_fixed_tan"
              version="1.0"
              introspectable="0">
        <doc xml:whitespace="preserve">Computes the tangent of @angle.</doc>
        <return-value>
          <doc xml:whitespace="preserve">the tangent of the passed angle, in fixed point notation</doc>
          <type name="Fixed" c:type="CoglFixed"/>
        </return-value>
      </method>
    </class>
    <enumeration name="FogMode"
                 version="1.0"
                 glib:type-name="CoglFogMode"
                 glib:get-type="cogl_fog_mode_get_type"
                 c:type="CoglFogMode">
      <doc xml:whitespace="preserve">The fog mode determines the equation used to calculate the fogging blend
factor while fogging is enabled. The simplest %COGL_FOG_MODE_LINEAR mode
determines f as:

|[
f = end - eye_distance / end - start
]|

Where eye_distance is the distance of the current fragment in eye
coordinates from the origin.</doc>
      <member name="linear"
              value="0"
              c:identifier="COGL_FOG_MODE_LINEAR"
              glib:nick="linear"/>
      <member name="exponential"
              value="1"
              c:identifier="COGL_FOG_MODE_EXPONENTIAL"
              glib:nick="exponential"/>
      <member name="exponential_squared"
              value="2"
              c:identifier="COGL_FOG_MODE_EXPONENTIAL_SQUARED"
              glib:nick="exponential-squared"/>
    </enumeration>
    <callback name="FuncPtr" c:type="CoglFuncPtr">
      <doc xml:whitespace="preserve">The type used by cogl for function pointers, note that this type
is used as a generic catch-all cast for function pointers and the
actual arguments and return type may be different.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </callback>
    <constant name="HAS_GL" value="1" c:type="COGL_HAS_GL">
      <type name="gint" c:type="gint"/>
    </constant>
    <enumeration name="IndicesType"
                 glib:type-name="CoglIndicesType"
                 glib:get-type="cogl_indices_type_get_type"
                 c:type="CoglIndicesType">
      <doc xml:whitespace="preserve">You should aim to use the smallest data type that gives you enough
range, since it reduces the size of your index array and can help
reduce the demand on memory bandwidth.</doc>
      <member name="byte"
              value="0"
              c:identifier="COGL_INDICES_TYPE_UNSIGNED_BYTE"
              glib:nick="byte"/>
      <member name="short"
              value="1"
              c:identifier="COGL_INDICES_TYPE_UNSIGNED_SHORT"
              glib:nick="short"/>
    </enumeration>
    <enumeration name="MaterialAlphaFunc"
                 glib:type-name="CoglMaterialAlphaFunc"
                 glib:get-type="cogl_material_alpha_func_get_type"
                 c:type="CoglMaterialAlphaFunc">
      <doc xml:whitespace="preserve">Alpha testing happens before blending primitives with the framebuffer and
gives an opportunity to discard fragments based on a comparison with the
incoming alpha value and a reference alpha value. The #CoglMaterialAlphaFunc
determines how the comparison is done.</doc>
      <member name="never"
              value="0"
              c:identifier="COGL_MATERIAL_ALPHA_FUNC_NEVER"
              glib:nick="never"/>
      <member name="less"
              value="0"
              c:identifier="COGL_MATERIAL_ALPHA_FUNC_LESS"
              glib:nick="less"/>
      <member name="equal"
              value="0"
              c:identifier="COGL_MATERIAL_ALPHA_FUNC_EQUAL"
              glib:nick="equal"/>
      <member name="lequal"
              value="0"
              c:identifier="COGL_MATERIAL_ALPHA_FUNC_LEQUAL"
              glib:nick="lequal"/>
      <member name="greater"
              value="0"
              c:identifier="COGL_MATERIAL_ALPHA_FUNC_GREATER"
              glib:nick="greater"/>
      <member name="notequal"
              value="0"
              c:identifier="COGL_MATERIAL_ALPHA_FUNC_NOTEQUAL"
              glib:nick="notequal"/>
      <member name="gequal"
              value="0"
              c:identifier="COGL_MATERIAL_ALPHA_FUNC_GEQUAL"
              glib:nick="gequal"/>
      <member name="always"
              value="0"
              c:identifier="COGL_MATERIAL_ALPHA_FUNC_ALWAYS"
              glib:nick="always"/>
    </enumeration>
    <enumeration name="MaterialFilter"
                 glib:type-name="CoglMaterialFilter"
                 glib:get-type="cogl_material_filter_get_type"
                 c:type="CoglMaterialFilter">
      <doc xml:whitespace="preserve">Texture filtering is used whenever the current pixel maps either to more
than one texture element (texel) or less than one. These filter enums
correspond to different strategies used to come up with a pixel color, by
possibly referring to multiple neighbouring texels and taking a weighted
average or simply using the nearest texel.</doc>
      <member name="nearest"
              value="0"
              c:identifier="COGL_MATERIAL_FILTER_NEAREST"
              glib:nick="nearest"/>
      <member name="linear"
              value="0"
              c:identifier="COGL_MATERIAL_FILTER_LINEAR"
              glib:nick="linear"/>
      <member name="nearest_mipmap_nearest"
              value="0"
              c:identifier="COGL_MATERIAL_FILTER_NEAREST_MIPMAP_NEAREST"
              glib:nick="nearest-mipmap-nearest"/>
      <member name="linear_mipmap_nearest"
              value="0"
              c:identifier="COGL_MATERIAL_FILTER_LINEAR_MIPMAP_NEAREST"
              glib:nick="linear-mipmap-nearest"/>
      <member name="nearest_mipmap_linear"
              value="0"
              c:identifier="COGL_MATERIAL_FILTER_NEAREST_MIPMAP_LINEAR"
              glib:nick="nearest-mipmap-linear"/>
      <member name="linear_mipmap_linear"
              value="0"
              c:identifier="COGL_MATERIAL_FILTER_LINEAR_MIPMAP_LINEAR"
              glib:nick="linear-mipmap-linear"/>
    </enumeration>
    <enumeration name="MaterialLayerType"
                 version="1.0"
                 glib:type-name="CoglMaterialLayerType"
                 glib:get-type="cogl_material_layer_type_get_type"
                 c:type="CoglMaterialLayerType">
      <doc xml:whitespace="preserve">Available types of layers for a #CoglMaterial. This enumeration
might be expanded in later versions.</doc>
      <member name="texture"
              value="0"
              c:identifier="COGL_MATERIAL_LAYER_TYPE_TEXTURE"
              glib:nick="texture"/>
    </enumeration>
    <record name="Matrix" c:type="CoglMatrix">
      <doc xml:whitespace="preserve">A CoglMatrix holds a 4x4 transform matrix. This is a single precision,
column-major matrix which means it is compatible with what OpenGL expects.

A CoglMatrix can represent transforms such as, rotations, scaling,
translation, sheering, and linear projections. You can combine these
transforms by multiplying multiple matrices in the order you want them
applied.

The transformation of a vertex (x, y, z, w) by a CoglMatrix is given by:

|[
x_new = xx * x + xy * y + xz * z + xw * w
y_new = yx * x + yy * y + yz * z + yw * w
z_new = zx * x + zy * y + zz * z + zw * w
w_new = wx * x + wy * y + wz * z + ww * w
]|

Where w is normally 1

&lt;note&gt;You must consider the members of the CoglMatrix structure read only,
and all matrix modifications must be done via the cogl_matrix API. This
allows Cogl to annotate the matrices internally. Violation of this will give
undefined results. If you need to initialize a matrix with a constant other
than the identity matrix you can use cogl_matrix_init_from_array().&lt;/note&gt;</doc>
      <field name="xx" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="yx" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="zx" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="wx" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="xy" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="yy" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="zy" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="wy" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="xz" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="yz" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="zz" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="wz" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="xw" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="yw" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="zw" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="ww" readable="0" private="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="_padding0" readable="0" private="1">
        <array zero-terminated="0" c:type="gfloat" fixed-size="16">
          <type name="gfloat" c:type="float"/>
        </array>
      </field>
      <field name="_padding1" readable="0" private="1">
        <type name="gulong" c:type="gulong"/>
      </field>
      <field name="_padding2" readable="0" private="1">
        <type name="gulong" c:type="gulong"/>
      </field>
      <field name="_padding3" readable="0" private="1">
        <type name="gulong" c:type="gulong"/>
      </field>
      <method name="frustum" c:identifier="cogl_matrix_frustum">
        <doc xml:whitespace="preserve">Multiplies the matrix by the given frustum perspective matrix.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="left" transfer-ownership="none">
            <doc xml:whitespace="preserve">coord of left vertical clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="right" transfer-ownership="none">
            <doc xml:whitespace="preserve">coord of right vertical clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="bottom" transfer-ownership="none">
            <doc xml:whitespace="preserve">coord of bottom horizontal clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="top" transfer-ownership="none">
            <doc xml:whitespace="preserve">coord of top horizontal clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="z_near" transfer-ownership="none">
            <doc xml:whitespace="preserve">positive distance to near depth clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="z_far" transfer-ownership="none">
            <doc xml:whitespace="preserve">positive distance to far depth clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_array" c:identifier="cogl_matrix_get_array">
        <doc xml:whitespace="preserve">This casts a CoglMatrix to a float array which can be directly passed to
OpenGL.</doc>
        <return-value transfer-ownership="none">
          <doc xml:whitespace="preserve">a pointer to the float array</doc>
          <type name="gfloat" c:type="float*"/>
        </return-value>
      </method>
      <method name="init_from_array"
              c:identifier="cogl_matrix_init_from_array">
        <doc xml:whitespace="preserve">This initialises @matrix with the contents of @array</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="array" transfer-ownership="none">
            <doc xml:whitespace="preserve">A linear array of 16 floats (column-major order)</doc>
            <type name="gfloat" c:type="float*"/>
          </parameter>
        </parameters>
      </method>
      <method name="init_identity" c:identifier="cogl_matrix_init_identity">
        <doc xml:whitespace="preserve">Resets matrix to the identity matrix:
&lt;programlisting&gt;
.xx=1; .xy=0; .xz=0; .xw=0;
.yx=0; .yy=1; .yz=0; .yw=0;
.zx=0; .zy=0; .zz=1; .zw=0;
.wx=0; .wy=0; .wz=0; .ww=1;
&lt;/programlisting&gt;</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
      </method>
      <method name="multiply" c:identifier="cogl_matrix_multiply">
        <doc xml:whitespace="preserve">This function multiples the two supplied matricies together and stores
the result in @result</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="a" transfer-ownership="none">
            <doc xml:whitespace="preserve">A 4x4 transformation matrix</doc>
            <type name="Matrix" c:type="CoglMatrix*"/>
          </parameter>
          <parameter name="b" transfer-ownership="none">
            <doc xml:whitespace="preserve">A 4x4 transformation matrix</doc>
            <type name="Matrix" c:type="CoglMatrix*"/>
          </parameter>
        </parameters>
      </method>
      <method name="ortho" c:identifier="cogl_matrix_ortho">
        <doc xml:whitespace="preserve">Multiples the matrix by a parallel projection matrix.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="left" transfer-ownership="none">
            <doc xml:whitespace="preserve">The coordinate for the left clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="right" transfer-ownership="none">
            <doc xml:whitespace="preserve">The coordinate for the right clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="bottom" transfer-ownership="none">
            <doc xml:whitespace="preserve">The coordinate for the bottom clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="top" transfer-ownership="none">
            <doc xml:whitespace="preserve">The coordinate for the top clipping plane</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="z_near" transfer-ownership="none">
            <doc xml:whitespace="preserve">The coordinate for the near clipping plane (may be negative if the plane is behind the viewer)</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="z_far" transfer-ownership="none">
            <doc xml:whitespace="preserve">The coordinate for the far clipping plane (may be negative if the plane is behind the viewer)</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
        </parameters>
      </method>
      <method name="perspective" c:identifier="cogl_matrix_perspective">
        <doc xml:whitespace="preserve">Multiplies the matrix by the described perspective matrix

Note: you should be careful not to have to great a @z_far / @z_near ratio
since that will reduce the effectiveness of depth testing since there wont
be enough precision to identify the depth of objects near to each other.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="fov_y" transfer-ownership="none">
            <doc xml:whitespace="preserve">A field of view angle for the Y axis</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="aspect" transfer-ownership="none">
            <doc xml:whitespace="preserve">The ratio of width to height determining the field of view angle for the x axis.</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="z_near" transfer-ownership="none">
            <doc xml:whitespace="preserve">The distance to the near clip plane. Never pass 0 and always pass a positive number.</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="z_far" transfer-ownership="none">
            <doc xml:whitespace="preserve">The distance to the far clip plane. (Should always be positive)</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
        </parameters>
      </method>
      <method name="rotate" c:identifier="cogl_matrix_rotate">
        <doc xml:whitespace="preserve">This function multiples your matrix with a rotation matrix that applies
a rotation of #angle degrees around the specified 3D vector.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="angle" transfer-ownership="none">
            <doc xml:whitespace="preserve">The angle you want to rotate in degrees</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="x" transfer-ownership="none">
            <doc xml:whitespace="preserve">X component of your rotation vector</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="y" transfer-ownership="none">
            <doc xml:whitespace="preserve">Y component of your rotation vector</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="z" transfer-ownership="none">
            <doc xml:whitespace="preserve">Z component of your rotation vector</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
        </parameters>
      </method>
      <method name="scale" c:identifier="cogl_matrix_scale">
        <doc xml:whitespace="preserve">This function multiples your matrix with a transform matrix that scales
along the X, Y and Z axis.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="sx" transfer-ownership="none">
            <doc xml:whitespace="preserve">The X scale factor</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="sy" transfer-ownership="none">
            <doc xml:whitespace="preserve">The Y scale factor</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="sz" transfer-ownership="none">
            <doc xml:whitespace="preserve">The Z scale factor</doc>
            <type name="gfloat" c:type="float"/>
          </parameter>
        </parameters>
      </method>
      <method name="transform_point"
              c:identifier="cogl_matrix_transform_point">
        <doc xml:whitespace="preserve">This transforms a point whos position is given and returned
as four float components.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="x" transfer-ownership="none">
            <doc xml:whitespace="preserve">The X component of your points position [in:out]</doc>
            <type name="gfloat" c:type="float*"/>
          </parameter>
          <parameter name="y" transfer-ownership="none">
            <doc xml:whitespace="preserve">The Y component of your points position [in:out]</doc>
            <type name="gfloat" c:type="float*"/>
          </parameter>
          <parameter name="z" transfer-ownership="none">
            <doc xml:whitespace="preserve">The Z component of your points position [in:out]</doc>
            <type name="gfloat" c:type="float*"/>
          </parameter>
          <parameter name="w" transfer-ownership="none">
            <doc xml:whitespace="preserve">The W component of your points position [in:out]</doc>
            <type name="gfloat" c:type="float*"/>
          </parameter>
        </parameters>
      </method>
      <method name="translate" c:identifier="cogl_matrix_translate">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="x" transfer-ownership="none">
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="y" transfer-ownership="none">
            <type name="gfloat" c:type="float"/>
          </parameter>
          <parameter name="z" transfer-ownership="none">
            <type name="gfloat" c:type="float"/>
          </parameter>
        </parameters>
      </method>
    </record>
    <callback name="PFNGLACTIVETEXTUREPROC"
              c:type="COGL_PFNGLACTIVETEXTUREPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="texture" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLATTACHOBJECTARBPROC"
              c:type="COGL_PFNGLATTACHOBJECTARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="containerObj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
        <parameter name="obj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBINDBUFFERARBPROC"
              c:type="COGL_PFNGLBINDBUFFERARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="buffer" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBINDFRAMEBUFFEREXTPROC"
              c:type="COGL_PFNGLBINDFRAMEBUFFEREXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="framebuffer" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBINDRENDERBUFFEREXTPROC"
              c:type="COGL_PFNGLBINDRENDERBUFFEREXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="renderbuffer" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBLENDCOLORPROC" c:type="COGL_PFNGLBLENDCOLORPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="red" transfer-ownership="none">
          <type name="GL.clampf" c:type="GLclampf"/>
        </parameter>
        <parameter name="green" transfer-ownership="none">
          <type name="GL.clampf" c:type="GLclampf"/>
        </parameter>
        <parameter name="blue" transfer-ownership="none">
          <type name="GL.clampf" c:type="GLclampf"/>
        </parameter>
        <parameter name="alpha" transfer-ownership="none">
          <type name="GL.clampf" c:type="GLclampf"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBLENDEQUATIONPROC"
              c:type="COGL_PFNGLBLENDEQUATIONPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="mode" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBLENDEQUATIONSEPARATEPROC"
              c:type="COGL_PFNGLBLENDEQUATIONSEPARATEPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="modeRGB" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="modeAlpha" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBLENDFUNCSEPARATEPROC"
              c:type="COGL_PFNGLBLENDFUNCSEPARATEPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="srcRGB" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="dstRGB" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="srcAlpha" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="dstAlpha" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBLITFRAMEBUFFEREXTPROC"
              c:type="COGL_PFNGLBLITFRAMEBUFFEREXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="srcX0" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="srcY0" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="srcX1" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="srcY1" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="dstX0" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="dstY0" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="dstX1" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="dstY1" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="mask" transfer-ownership="none">
          <type name="GL.bitfield" c:type="GLbitfield"/>
        </parameter>
        <parameter name="filter" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBUFFERDATAARBPROC"
              c:type="COGL_PFNGLBUFFERDATAARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="size" transfer-ownership="none">
          <type name="GL.sizeiptr" c:type="GLsizeiptr"/>
        </parameter>
        <parameter name="data" transfer-ownership="none">
          <type name="GL.void" c:type="GLvoid*"/>
        </parameter>
        <parameter name="usage" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLBUFFERSUBDATAARBPROC"
              c:type="COGL_PFNGLBUFFERSUBDATAARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="offset" transfer-ownership="none">
          <type name="GL.intptr" c:type="GLintptr"/>
        </parameter>
        <parameter name="size" transfer-ownership="none">
          <type name="GL.sizeiptr" c:type="GLsizeiptr"/>
        </parameter>
        <parameter name="data" transfer-ownership="none">
          <type name="GL.void" c:type="GLvoid*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC"
              c:type="COGL_PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC"
              introspectable="0">
      <return-value>
        <type name="GL.enum" c:type="GLenum"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLCLIENTACTIVETEXTUREPROC"
              c:type="COGL_PFNGLCLIENTACTIVETEXTUREPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="texture" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLCOMPILESHADERARBPROC"
              c:type="COGL_PFNGLCOMPILESHADERARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="shaderObj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLCREATEPROGRAMOBJECTARBPROC"
              c:type="COGL_PFNGLCREATEPROGRAMOBJECTARBPROC"
              introspectable="0">
      <return-value>
        <type name="GL.handleARB" c:type="GLhandleARB"/>
      </return-value>
    </callback>
    <callback name="PFNGLCREATESHADEROBJECTARBPROC"
              c:type="COGL_PFNGLCREATESHADEROBJECTARBPROC"
              introspectable="0">
      <return-value>
        <type name="GL.handleARB" c:type="GLhandleARB"/>
      </return-value>
      <parameters>
        <parameter name="shaderType" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLDELETEBUFFERSARBPROC"
              c:type="COGL_PFNGLDELETEBUFFERSARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="n" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="buffers" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLDELETEFRAMEBUFFERSEXTPROC"
              c:type="COGL_PFNGLDELETEFRAMEBUFFERSEXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="n" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="framebuffers" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLDELETEOBJECTARBPROC"
              c:type="COGL_PFNGLDELETEOBJECTARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="obj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLDELETERENDERBUFFERSEXTPROC"
              c:type="COGL_PFNGLDELETERENDERBUFFERSEXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="n" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="renderbuffers" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLDISABLEVERTEXATTRIBARRAYARBPROC"
              c:type="COGL_PFNGLDISABLEVERTEXATTRIBARRAYARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="index" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLDRAWRANGEELEMENTSPROC"
              c:type="COGL_PFNGLDRAWRANGEELEMENTSPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="mode" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="start" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
        <parameter name="end" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="type" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="indices" transfer-ownership="none">
          <type name="GL.void" c:type="GLvoid*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLENABLEVERTEXATTRIBARRAYARBPROC"
              c:type="COGL_PFNGLENABLEVERTEXATTRIBARRAYARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="index" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC"
              c:type="COGL_PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="attachment" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="renderbuffertarget" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="renderbuffer" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLFRAMEBUFFERTEXTURE2DEXTPROC"
              c:type="COGL_PFNGLFRAMEBUFFERTEXTURE2DEXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="attachment" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="textarget" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="texture" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
        <parameter name="level" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLGENBUFFERSARBPROC"
              c:type="COGL_PFNGLGENBUFFERSARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="n" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
        <parameter name="buffers" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLGENERATEMIPMAPEXTPROC"
              c:type="COGL_PFNGLGENERATEMIPMAPEXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLGENFRAMEBUFFERSEXTPROC"
              c:type="COGL_PFNGLGENFRAMEBUFFERSEXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="n" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="framebuffers" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLGENRENDERBUFFERSEXTPROC"
              c:type="COGL_PFNGLGENRENDERBUFFERSEXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="n" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="renderbuffers" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLGETINFOLOGARBPROC"
              c:type="COGL_PFNGLGETINFOLOGARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="obj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
        <parameter name="maxLength" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="length" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei*"/>
        </parameter>
        <parameter name="infoLog" transfer-ownership="none">
          <type name="GL.charARB" c:type="GLcharARB*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLGETOBJECTPARAMETERIVARBPROC"
              c:type="COGL_PFNGLGETOBJECTPARAMETERIVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="obj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
        <parameter name="pname" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="params" transfer-ownership="none">
          <type name="GL.int" c:type="GLint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLGETUNIFORMLOCATIONARBPROC"
              c:type="COGL_PFNGLGETUNIFORMLOCATIONARBPROC"
              introspectable="0">
      <return-value>
        <type name="GL.int" c:type="GLint"/>
      </return-value>
      <parameters>
        <parameter name="programObj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
        <parameter name="name" transfer-ownership="none">
          <type name="GL.charARB" c:type="GLcharARB*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLLINKPROGRAMARBPROC"
              c:type="COGL_PFNGLLINKPROGRAMARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="programObj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLMAPBUFFERARBPROC"
              c:type="COGL_PFNGLMAPBUFFERARBPROC"
              introspectable="0">
      <return-value>
        <type name="gpointer" c:type="void*"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="access" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLRENDERBUFFERSTORAGEEXTPROC"
              c:type="COGL_PFNGLRENDERBUFFERSTORAGEEXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="internalformat" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="width" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC"
              c:type="COGL_PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="samples" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="internalformat" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="width" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLSHADERSOURCEARBPROC"
              c:type="COGL_PFNGLSHADERSOURCEARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="shaderObj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="string" transfer-ownership="none">
          <type name="GL.charARB" c:type="GLcharARB**"/>
        </parameter>
        <parameter name="length" transfer-ownership="none">
          <type name="GL.int" c:type="GLint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM1FARBPROC" c:type="COGL_PFNGLUNIFORM1FARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v0" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM1FVARBPROC"
              c:type="COGL_PFNGLUNIFORM1FVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM1IARBPROC" c:type="COGL_PFNGLUNIFORM1IARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v0" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM1IVARBPROC"
              c:type="COGL_PFNGLUNIFORM1IVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.int" c:type="GLint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM2FARBPROC" c:type="COGL_PFNGLUNIFORM2FARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v0" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
        <parameter name="v1" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM2FVARBPROC"
              c:type="COGL_PFNGLUNIFORM2FVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM2IARBPROC" c:type="COGL_PFNGLUNIFORM2IARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v0" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v1" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM2IVARBPROC"
              c:type="COGL_PFNGLUNIFORM2IVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.int" c:type="GLint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM3FARBPROC" c:type="COGL_PFNGLUNIFORM3FARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v0" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
        <parameter name="v1" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
        <parameter name="v2" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM3FVARBPROC"
              c:type="COGL_PFNGLUNIFORM3FVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM3IARBPROC" c:type="COGL_PFNGLUNIFORM3IARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v0" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v1" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v2" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM3IVARBPROC"
              c:type="COGL_PFNGLUNIFORM3IVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.int" c:type="GLint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM4FARBPROC" c:type="COGL_PFNGLUNIFORM4FARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v0" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
        <parameter name="v1" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
        <parameter name="v2" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
        <parameter name="v3" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM4FVARBPROC"
              c:type="COGL_PFNGLUNIFORM4FVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM4IARBPROC" c:type="COGL_PFNGLUNIFORM4IARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v0" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v1" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v2" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="v3" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORM4IVARBPROC"
              c:type="COGL_PFNGLUNIFORM4IVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.int" c:type="GLint*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORMMATRIX2FVARBPROC"
              c:type="COGL_PFNGLUNIFORMMATRIX2FVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="transpose" transfer-ownership="none">
          <type name="GL.boolean" c:type="GLboolean"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORMMATRIX3FVARBPROC"
              c:type="COGL_PFNGLUNIFORMMATRIX3FVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="transpose" transfer-ownership="none">
          <type name="GL.boolean" c:type="GLboolean"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNIFORMMATRIX4FVARBPROC"
              c:type="COGL_PFNGLUNIFORMMATRIX4FVARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="location" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="transpose" transfer-ownership="none">
          <type name="GL.boolean" c:type="GLboolean"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <type name="GL.float" c:type="GLfloat*"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUNMAPBUFFERARBPROC"
              c:type="COGL_PFNGLUNMAPBUFFERARBPROC"
              introspectable="0">
      <return-value>
        <type name="GL.boolean" c:type="GLboolean"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLUSEPROGRAMOBJECTARBPROC"
              c:type="COGL_PFNGLUSEPROGRAMOBJECTARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="programObj" transfer-ownership="none">
          <type name="GL.handleARB" c:type="GLhandleARB"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="PFNGLVERTEXATTRIBPOINTERARBPROC"
              c:type="COGL_PFNGLVERTEXATTRIBPOINTERARBPROC">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="index" transfer-ownership="none">
          <type name="GL.uint" c:type="GLuint"/>
        </parameter>
        <parameter name="size" transfer-ownership="none">
          <type name="GL.int" c:type="GLint"/>
        </parameter>
        <parameter name="type" transfer-ownership="none">
          <type name="GL.enum" c:type="GLenum"/>
        </parameter>
        <parameter name="normalized" transfer-ownership="none">
          <type name="GL.boolean" c:type="GLboolean"/>
        </parameter>
        <parameter name="stride" transfer-ownership="none">
          <type name="GL.sizei" c:type="GLsizei"/>
        </parameter>
        <parameter name="pointer" transfer-ownership="none">
          <type name="GL.void" c:type="GLvoid*"/>
        </parameter>
      </parameters>
    </callback>
    <constant name="PIXEL_FORMAT_24" value="2" c:type="COGL_PIXEL_FORMAT_24">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="PIXEL_FORMAT_32" value="3" c:type="COGL_PIXEL_FORMAT_32">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="PREMULT_BIT" value="128" c:type="COGL_PREMULT_BIT">
      <type name="gint" c:type="gint"/>
    </constant>
    <enumeration name="PixelFormat"
                 version="0.8"
                 glib:type-name="CoglPixelFormat"
                 glib:get-type="cogl_pixel_format_get_type"
                 c:type="CoglPixelFormat">
      <doc xml:whitespace="preserve">Pixel formats used by COGL.</doc>
      <member name="any"
              value="0"
              c:identifier="COGL_PIXEL_FORMAT_ANY"
              glib:nick="any"/>
      <member name="a_8"
              value="17"
              c:identifier="COGL_PIXEL_FORMAT_A_8"
              glib:nick="a-8"/>
      <member name="rgb_565"
              value="4"
              c:identifier="COGL_PIXEL_FORMAT_RGB_565"
              glib:nick="rgb-565"/>
      <member name="rgba_4444"
              value="21"
              c:identifier="COGL_PIXEL_FORMAT_RGBA_4444"
              glib:nick="rgba-4444"/>
      <member name="rgba_5551"
              value="22"
              c:identifier="COGL_PIXEL_FORMAT_RGBA_5551"
              glib:nick="rgba-5551"/>
      <member name="yuv"
              value="7"
              c:identifier="COGL_PIXEL_FORMAT_YUV"
              glib:nick="yuv"/>
      <member name="g_8"
              value="8"
              c:identifier="COGL_PIXEL_FORMAT_G_8"
              glib:nick="g-8"/>
      <member name="rgb_888"
              value="2"
              c:identifier="COGL_PIXEL_FORMAT_RGB_888"
              glib:nick="rgb-888"/>
      <member name="bgr_888"
              value="34"
              c:identifier="COGL_PIXEL_FORMAT_BGR_888"
              glib:nick="bgr-888"/>
      <member name="rgba_8888"
              value="19"
              c:identifier="COGL_PIXEL_FORMAT_RGBA_8888"
              glib:nick="rgba-8888"/>
      <member name="bgra_8888"
              value="51"
              c:identifier="COGL_PIXEL_FORMAT_BGRA_8888"
              glib:nick="bgra-8888"/>
      <member name="argb_8888"
              value="83"
              c:identifier="COGL_PIXEL_FORMAT_ARGB_8888"
              glib:nick="argb-8888"/>
      <member name="abgr_8888"
              value="115"
              c:identifier="COGL_PIXEL_FORMAT_ABGR_8888"
              glib:nick="abgr-8888"/>
      <member name="rgba_8888_pre"
              value="147"
              c:identifier="COGL_PIXEL_FORMAT_RGBA_8888_PRE"
              glib:nick="rgba-8888-pre"/>
      <member name="bgra_8888_pre"
              value="179"
              c:identifier="COGL_PIXEL_FORMAT_BGRA_8888_PRE"
              glib:nick="bgra-8888-pre"/>
      <member name="argb_8888_pre"
              value="211"
              c:identifier="COGL_PIXEL_FORMAT_ARGB_8888_PRE"
              glib:nick="argb-8888-pre"/>
      <member name="abgr_8888_pre"
              value="243"
              c:identifier="COGL_PIXEL_FORMAT_ABGR_8888_PRE"
              glib:nick="abgr-8888-pre"/>
      <member name="rgba_4444_pre"
              value="149"
              c:identifier="COGL_PIXEL_FORMAT_RGBA_4444_PRE"
              glib:nick="rgba-4444-pre"/>
      <member name="rgba_5551_pre"
              value="150"
              c:identifier="COGL_PIXEL_FORMAT_RGBA_5551_PRE"
              glib:nick="rgba-5551-pre"/>
    </enumeration>
    <constant name="RADIANS_TO_DEGREES"
              value="3754936"
              c:type="COGL_RADIANS_TO_DEGREES">
      <type name="gint" c:type="gint"/>
    </constant>
    <bitfield name="ReadPixelsFlags"
              version="1.0"
              glib:type-name="CoglReadPixelsFlags"
              glib:get-type="cogl_read_pixels_flags_get_type"
              c:type="CoglReadPixelsFlags">
      <doc xml:whitespace="preserve">Flags for cogl_read_pixels()</doc>
      <member name="color_buffer"
              value="1"
              c:identifier="COGL_READ_PIXELS_COLOR_BUFFER"
              glib:nick="color-buffer"/>
    </bitfield>
    <constant name="SQRTI_ARG_10_PERCENT"
              value="5590"
              c:type="COGL_SQRTI_ARG_10_PERCENT">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="SQRTI_ARG_5_PERCENT"
              value="210"
              c:type="COGL_SQRTI_ARG_5_PERCENT">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="SQRTI_ARG_MAX" value="4194303" c:type="COGL_SQRTI_ARG_MAX">
      <type name="gint" c:type="gint"/>
    </constant>
    <enumeration name="ShaderType"
                 version="1.0"
                 glib:type-name="CoglShaderType"
                 glib:get-type="cogl_shader_type_get_type"
                 c:type="CoglShaderType">
      <doc xml:whitespace="preserve">Types of shaders</doc>
      <member name="vertex"
              value="0"
              c:identifier="COGL_SHADER_TYPE_VERTEX"
              glib:nick="vertex"/>
      <member name="fragment"
              value="1"
              c:identifier="COGL_SHADER_TYPE_FRAGMENT"
              glib:nick="fragment"/>
    </enumeration>
    <constant name="TEXTURE_MAX_WASTE"
              value="127"
              c:type="COGL_TEXTURE_MAX_WASTE">
      <type name="gint" c:type="gint"/>
    </constant>
    <bitfield name="TextureFlags"
              version="1.0"
              glib:type-name="CoglTextureFlags"
              glib:get-type="cogl_texture_flags_get_type"
              c:type="CoglTextureFlags">
      <doc xml:whitespace="preserve">Flags to pass to the cogl_texture_new_* family of functions.</doc>
      <member name="none"
              value="0"
              c:identifier="COGL_TEXTURE_NONE"
              glib:nick="none"/>
      <member name="no_auto_mipmap"
              value="1"
              c:identifier="COGL_TEXTURE_NO_AUTO_MIPMAP"
              glib:nick="no-auto-mipmap"/>
      <member name="no_slicing"
              value="2"
              c:identifier="COGL_TEXTURE_NO_SLICING"
              glib:nick="no-slicing"/>
    </bitfield>
    <record name="TextureVertex" c:type="CoglTextureVertex">
      <doc xml:whitespace="preserve">Used to specify vertex information when calling cogl_polygon()</doc>
      <field name="x" writable="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="y" writable="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="z" writable="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="tx" writable="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="ty" writable="1">
        <type name="gfloat" c:type="float"/>
      </field>
      <field name="color" writable="1">
        <type name="Color" c:type="CoglColor"/>
      </field>
    </record>
    <constant name="UNORDERED_MASK" value="15" c:type="COGL_UNORDERED_MASK">
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="UNPREMULT_MASK" value="127" c:type="COGL_UNPREMULT_MASK">
      <type name="gint" c:type="gint"/>
    </constant>
    <enumeration name="VerticesMode"
                 version="1.0"
                 glib:type-name="CoglVerticesMode"
                 glib:get-type="cogl_vertices_mode_get_type"
                 c:type="CoglVerticesMode">
      <doc xml:whitespace="preserve">How vertices passed to cogl_vertex_buffer_draw() and
cogl_vertex_buffer_draw_elements() should be interpreted</doc>
      <member name="points"
              value="0"
              c:identifier="COGL_VERTICES_MODE_POINTS"
              glib:nick="points"/>
      <member name="line_strip"
              value="0"
              c:identifier="COGL_VERTICES_MODE_LINE_STRIP"
              glib:nick="line-strip"/>
      <member name="line_loop"
              value="0"
              c:identifier="COGL_VERTICES_MODE_LINE_LOOP"
              glib:nick="line-loop"/>
      <member name="lines"
              value="0"
              c:identifier="COGL_VERTICES_MODE_LINES"
              glib:nick="lines"/>
      <member name="triangle_strip"
              value="0"
              c:identifier="COGL_VERTICES_MODE_TRIANGLE_STRIP"
              glib:nick="triangle-strip"/>
      <member name="triangle_fan"
              value="0"
              c:identifier="COGL_VERTICES_MODE_TRIANGLE_FAN"
              glib:nick="triangle-fan"/>
      <member name="triangles"
              value="0"
              c:identifier="COGL_VERTICES_MODE_TRIANGLES"
              glib:nick="triangles"/>
    </enumeration>
    <function name="angle_cos"
              c:identifier="cogl_angle_cos"
              version="1.0"
              introspectable="0">
      <doc xml:whitespace="preserve">Computes the cosine of @angle</doc>
      <return-value>
        <doc xml:whitespace="preserve">the cosine of the passed angle</doc>
        <type name="Fixed" c:type="CoglFixed"/>
      </return-value>
      <parameters>
        <parameter name="angle" transfer-ownership="none">
          <doc xml:whitespace="preserve">an angle expressed using #CoglAngle</doc>
          <type name="Angle" c:type="CoglAngle"/>
        </parameter>
      </parameters>
    </function>
    <function name="angle_sin"
              c:identifier="cogl_angle_sin"
              version="1.0"
              introspectable="0">
      <doc xml:whitespace="preserve">Computes the sine of @angle</doc>
      <return-value>
        <doc xml:whitespace="preserve">the sine of the passed angle</doc>
        <type name="Fixed" c:type="CoglFixed"/>
      </return-value>
      <parameters>
        <parameter name="angle" transfer-ownership="none">
          <doc xml:whitespace="preserve">an angle expressed using #CoglAngle</doc>
          <type name="Angle" c:type="CoglAngle"/>
        </parameter>
      </parameters>
    </function>
    <function name="angle_tan"
              c:identifier="cogl_angle_tan"
              version="1.0"
              introspectable="0">
      <doc xml:whitespace="preserve">Computes the tangent of @angle</doc>
      <return-value>
        <doc xml:whitespace="preserve">the tangent of the passed angle</doc>
        <type name="Fixed" c:type="CoglFixed"/>
      </return-value>
      <parameters>
        <parameter name="angle" transfer-ownership="none">
          <doc xml:whitespace="preserve">an angle expressed using #CoglAngle</doc>
          <type name="Angle" c:type="CoglAngle"/>
        </parameter>
      </parameters>
    </function>
    <function name="begin_gl" c:identifier="cogl_begin_gl" version="1.0">
      <doc xml:whitespace="preserve">We do not advise nor reliably support the interleaving of raw GL drawing and
Cogl drawing functions, but if you insist, cogl_begin_gl() and cogl_end_gl()
provide a simple mechanism that may at least give you a fighting chance of
succeeding.

Note: this doesn't help you modify the behaviour of Cogl drawing functions
through the modification of GL state; that will never be reliably supported,
but if you are trying to do something like:
&lt;programlisting&gt;
{
- setup some OpenGL state.
- draw using OpenGL (e.g. glDrawArrays() )
- reset modified OpenGL state.
- continue using Cogl to draw
}
&lt;/programlisting&gt;
You should surround blocks of drawing using raw GL with cogl_begin_gl()
and cogl_end_gl():
&lt;programlisting&gt;
{
cogl_begin_gl ();
- setup some OpenGL state.
- draw using OpenGL (e.g. glDrawArrays() )
- reset modified OpenGL state.
cogl_end_gl ();
- continue using Cogl to draw
}
&lt;/programlisting&gt;

Don't ever try and do:
&lt;programlisting&gt;
{
- setup some OpenGL state.
- use Cogl to draw
- reset modified OpenGL state.
}
&lt;/programlisting&gt;
When the internals of Cogl evolves, this is very liable to break.

This function will flush all batched primitives, and subsequently flush
all internal Cogl state to OpenGL as if it were going to draw something
itself.

The result is that the OpenGL modelview matrix will be setup; the state
corresponding to the current source material will be set up and other world
state such as backface culling, depth and fogging enabledness will be sent
to OpenGL.

Note: no special material state is flushed, so if you want Cogl to setup a
simplified material state it is your responsibility to set a simple source
material before calling cogl_begin_gl. E.g. by calling
cogl_set_source_color4ub().

Note: It is your responsibility to restore any OpenGL state that you modify
to how it was after calling cogl_begin_gl() if you don't do this then the
result of further Cogl calls is undefined.

Note: You can not nest begin/end blocks.

Again we would like to stress, we do not advise the use of this API and if
possible we would prefer to improve Cogl than have developers require raw
OpenGL.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="bitmap_get_size_from_file"
              c:identifier="cogl_bitmap_get_size_from_file"
              version="1.0">
      <doc xml:whitespace="preserve">Parses an image file enough to extract the width and height
of the bitmap.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the image was successfully parsed</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="filename" transfer-ownership="none">
          <doc xml:whitespace="preserve">the file to check</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
        <parameter name="width" transfer-ownership="none">
          <doc xml:whitespace="preserve">return location for the bitmap width</doc>
          <type name="gint" c:type="gint*"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <doc xml:whitespace="preserve">return location for the bitmap height</doc>
          <type name="gint" c:type="gint*"/>
        </parameter>
      </parameters>
    </function>
    <function name="bitmap_new_from_file"
              c:identifier="cogl_bitmap_new_from_file"
              version="1.0"
              introspectable="0"
              throws="1">
      <doc xml:whitespace="preserve">Loads an image file from disk. This function can be safely called from
within a thread.

%COGL_INVALID_HANDLE if loading the image failed.</doc>
      <return-value>
        <doc xml:whitespace="preserve">a #CoglHandle to the new loaded image data, or</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="filename" transfer-ownership="none">
          <doc xml:whitespace="preserve">the file to load.</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="blend_string_error_quark"
              c:identifier="cogl_blend_string_error_quark"
              moved-to="BlendStringError.quark">
      <return-value transfer-ownership="none">
        <type name="GLib.Quark" c:type="GQuark"/>
      </return-value>
    </function>
    <function name="check_extension" c:identifier="cogl_check_extension">
      <doc xml:whitespace="preserve">Check whether @name occurs in list of extensions in @ext.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the extension occurs in the list, %FALSE otherwize.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="name" transfer-ownership="none">
          <doc xml:whitespace="preserve">extension to check for</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
        <parameter name="ext" transfer-ownership="none">
          <doc xml:whitespace="preserve">list of extensions</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="clear" c:identifier="cogl_clear">
      <doc xml:whitespace="preserve">Clears all the auxiliary buffers identified in the @buffers mask, and if
that includes the color buffer then the specified @color is used.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="color" transfer-ownership="none">
          <doc xml:whitespace="preserve">Background color to clear to</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
        <parameter name="buffers" transfer-ownership="none">
          <doc xml:whitespace="preserve">A mask of #CoglBufferBit&lt;!-- --&gt;'s identifying which auxiliary buffers to clear</doc>
          <type name="gulong" c:type="gulong"/>
        </parameter>
      </parameters>
    </function>
    <function name="clip_ensure" c:identifier="cogl_clip_ensure" version="1.0">
      <doc xml:whitespace="preserve">Ensures that the current clipping region has been set in GL. This
will automatically be called before any Cogl primitives but it
maybe be neccessary to call if you are using raw GL calls with
clipping.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="clip_pop" c:identifier="cogl_clip_pop">
      <doc xml:whitespace="preserve">Reverts the clipping region to the state before the last call to
cogl_clip_push().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="clip_push" c:identifier="cogl_clip_push">
      <doc xml:whitespace="preserve">Specifies a rectangular clipping area for all subsequent drawing
operations. Any drawing commands that extend outside the rectangle
will be clipped so that only the portion inside the rectangle will
be displayed. The rectangle dimensions are transformed by the
current model-view matrix.

The rectangle is intersected with the current clip region. To undo
the effect of this function, call cogl_clip_pop().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x_offset" transfer-ownership="none">
          <doc xml:whitespace="preserve">left edge of the clip rectangle</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_offset" transfer-ownership="none">
          <doc xml:whitespace="preserve">top edge of the clip rectangle</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="width" transfer-ownership="none">
          <doc xml:whitespace="preserve">width of the clip rectangle</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <doc xml:whitespace="preserve">height of the clip rectangle</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="clip_push_from_path"
              c:identifier="cogl_clip_push_from_path"
              version="1.0">
      <doc xml:whitespace="preserve">Sets a new clipping area using the current path. The current path
is then cleared. The clipping area is intersected with the previous
clipping area. To restore the previous clipping area, call
cogl_clip_pop().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="clip_push_from_path_preserve"
              c:identifier="cogl_clip_push_from_path_preserve"
              version="1.0">
      <doc xml:whitespace="preserve">Sets a new clipping area using the current path. The current path
is then cleared. The clipping area is intersected with the previous
clipping area. To restore the previous clipping area, call
cogl_clip_pop().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="clip_push_window_rect"
              c:identifier="cogl_clip_push_window_rect">
      <doc xml:whitespace="preserve">Specifies a rectangular clipping area for all subsequent drawing
operations. Any drawing commands that extend outside the rectangle
will be clipped so that only the portion inside the rectangle will
be displayed. The rectangle dimensions are not transformed by the
current model-view matrix.

The rectangle is intersected with the current clip region. To undo
the effect of this function, call cogl_clip_pop().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x_offset" transfer-ownership="none">
          <doc xml:whitespace="preserve">left edge of the clip rectangle in window coordinates</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_offset" transfer-ownership="none">
          <doc xml:whitespace="preserve">top edge of the clip rectangle in window coordinates</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="width" transfer-ownership="none">
          <doc xml:whitespace="preserve">width of the clip rectangle</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <doc xml:whitespace="preserve">height of the clip rectangle</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="clip_stack_restore"
              c:identifier="cogl_clip_stack_restore"
              version="0.8.2">
      <doc xml:whitespace="preserve">Restore the state of the clipping stack that was previously saved
by cogl_clip_stack_save().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="clip_stack_save"
              c:identifier="cogl_clip_stack_save"
              version="0.8.2">
      <doc xml:whitespace="preserve">Save the entire state of the clipping stack and then clear all
clipping. The previous state can be returned to with
cogl_clip_stack_restore(). Each call to cogl_clip_push() after this
must be matched by a call to cogl_clip_pop() before calling
cogl_clip_stack_restore().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="color_equal"
              c:identifier="cogl_color_equal"
              moved-to="Color.equal"
              version="1.0">
      <doc xml:whitespace="preserve">Compares two #CoglColor&lt;!-- --&gt;s and checks if they are the same.

This function can be passed to g_hash_table_new() as the @key_equal_func
parameter, when using #CoglColor&lt;!-- --&gt;s as keys in a #GHashTable.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the two colors are the same.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="v1" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglColor</doc>
          <type name="gpointer" c:type="gconstpointer"/>
        </parameter>
        <parameter name="v2" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglColor</doc>
          <type name="gpointer" c:type="gconstpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="create_program"
              c:identifier="cogl_create_program"
              introspectable="0">
      <doc xml:whitespace="preserve">Create a new cogl program object that can be used to replace parts of the GL
rendering pipeline with custom code.</doc>
      <return-value>
        <doc xml:whitespace="preserve">a new cogl program.</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
    </function>
    <function name="create_shader"
              c:identifier="cogl_create_shader"
              introspectable="0">
      <doc xml:whitespace="preserve">Create a new shader handle, use #cogl_shader_source to set the source code
to be used on it.</doc>
      <return-value>
        <doc xml:whitespace="preserve">a new shader handle.</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="shader_type" transfer-ownership="none">
          <doc xml:whitespace="preserve">CGL_VERTEX_SHADER or CGL_FRAGMENT_SHADER.</doc>
          <type name="ShaderType" c:type="CoglShaderType"/>
        </parameter>
      </parameters>
    </function>
    <function name="disable_fog" c:identifier="cogl_disable_fog">
      <doc xml:whitespace="preserve">This function disables fogging, so primitives drawn afterwards will not be
blended with any previously set fog color.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="double_to_fixed"
              c:identifier="cogl_double_to_fixed"
              introspectable="0">
      <return-value>
        <type name="Fixed" c:type="CoglFixed"/>
      </return-value>
      <parameters>
        <parameter name="value" transfer-ownership="none">
          <type name="gdouble" c:type="double"/>
        </parameter>
      </parameters>
    </function>
    <function name="double_to_int" c:identifier="cogl_double_to_int">
      <return-value transfer-ownership="none">
        <type name="gint" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="value" transfer-ownership="none">
          <type name="gdouble" c:type="double"/>
        </parameter>
      </parameters>
    </function>
    <function name="double_to_unit" c:identifier="cogl_double_to_unit">
      <return-value transfer-ownership="none">
        <type name="guint" c:type="guint"/>
      </return-value>
      <parameters>
        <parameter name="value" transfer-ownership="none">
          <type name="gdouble" c:type="double"/>
        </parameter>
      </parameters>
    </function>
    <function name="end_gl" c:identifier="cogl_end_gl" version="1.0">
      <doc xml:whitespace="preserve">This is the counterpart to cogl_begin_gl() used to delimit blocks of drawing
code using raw OpenGL. Please refer to cogl_begin_gl() for full details.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="features_available" c:identifier="cogl_features_available">
      <doc xml:whitespace="preserve">Checks whether the given COGL features are available. Multiple
features can be checked for by or-ing them together with the '|'
operator. %TRUE is only returned if all of the requested features
are available.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the features are available, %FALSE otherwise.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="features" transfer-ownership="none">
          <doc xml:whitespace="preserve">A bitmask of features to check for</doc>
          <type name="FeatureFlags" c:type="CoglFeatureFlags"/>
        </parameter>
      </parameters>
    </function>
    <function name="flush" c:identifier="cogl_flush" version="1.0">
      <doc xml:whitespace="preserve">This function should only need to be called in exceptional circumstances.

As an optimization Cogl drawing functions may batch up primitives
internally, so if you are trying to use raw GL outside of Cogl you stand a
better chance of being successful if you ask Cogl to flush any batched
geometry before making your state changes.

It only ensure that the underlying driver is issued all the commands
necessary to draw the batched primitives. It provides no guarantees about
when the driver will complete the rendering.

This provides no guarantees about the GL state upon returning and to avoid
confusing Cogl you should aim to restore any changes you make before
resuming use of Cogl.

If you are making state changes with the intention of affecting Cogl drawing
primitives you are 100% on your own since you stand a good chance of
conflicting with Cogl internals. For example clutter-gst which currently
uses direct GL calls to bind ARBfp programs will very likely break when Cogl
starts to use ARBfb programs itself for the material API.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="frustum" c:identifier="cogl_frustum" version="0.8.2">
      <doc xml:whitespace="preserve">Replaces the current projection matrix with a perspective matrix
for the given viewing frustum.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="left" transfer-ownership="none">
          <doc xml:whitespace="preserve">Left clipping plane</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="right" transfer-ownership="none">
          <doc xml:whitespace="preserve">Right clipping plane</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="bottom" transfer-ownership="none">
          <doc xml:whitespace="preserve">Bottom clipping plane</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="top" transfer-ownership="none">
          <doc xml:whitespace="preserve">Top clipping plane</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z_near" transfer-ownership="none">
          <doc xml:whitespace="preserve">Nearest visible point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z_far" transfer-ownership="none">
          <doc xml:whitespace="preserve">Furthest visible point along the z-axis</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_backface_culling_enabled"
              c:identifier="cogl_get_backface_culling_enabled">
      <doc xml:whitespace="preserve">Queries if backface culling has been enabled via
cogl_set_backface_culling_enabled()</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if backface culling is enabled, and %FALSE otherwise</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
    </function>
    <function name="get_bitmasks" c:identifier="cogl_get_bitmasks">
      <doc xml:whitespace="preserve">Gets the number of bitplanes used for each of the color components
in the color buffer. Pass %NULL for any of the arguments if the
value is not required.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="red" transfer-ownership="none">
          <doc xml:whitespace="preserve">Return location for the number of red bits or %NULL</doc>
          <type name="gint" c:type="gint*"/>
        </parameter>
        <parameter name="green" transfer-ownership="none">
          <doc xml:whitespace="preserve">Return location for the number of green bits or %NULL</doc>
          <type name="gint" c:type="gint*"/>
        </parameter>
        <parameter name="blue" transfer-ownership="none">
          <doc xml:whitespace="preserve">Return location for the number of blue bits or %NULL</doc>
          <type name="gint" c:type="gint*"/>
        </parameter>
        <parameter name="alpha" transfer-ownership="none">
          <doc xml:whitespace="preserve">Return location for the number of alpha bits or %NULL</doc>
          <type name="gint" c:type="gint*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_depth_test_enabled"
              c:identifier="cogl_get_depth_test_enabled">
      <doc xml:whitespace="preserve">Queries if depth testing has been enabled via cogl_set_depth_test_enable()</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if depth testing is enabled, and %FALSE otherwise</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
    </function>
    <function name="get_features"
              c:identifier="cogl_get_features"
              version="0.8">
      <doc xml:whitespace="preserve">Returns all of the features supported by COGL.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">A logical OR of all the supported COGL features.</doc>
        <type name="FeatureFlags" c:type="CoglFeatureFlags"/>
      </return-value>
    </function>
    <function name="get_modelview_matrix"
              c:identifier="cogl_get_modelview_matrix">
      <doc xml:whitespace="preserve">Stores the current model-view matrix in @matrix.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="matrix" transfer-ownership="none">
          <doc xml:whitespace="preserve">pointer to a CoglMatrix to recieve the matrix</doc>
          <type name="Matrix" c:type="CoglMatrix*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_option_group"
              c:identifier="cogl_get_option_group"
              version="1.0"
              introspectable="0">
      <doc xml:whitespace="preserve">Retrieves the #GOptionGroup used by COGL to parse the command
line options. Clutter uses this to handle the COGL command line
options during its initialization process.</doc>
      <return-value>
        <doc xml:whitespace="preserve">a #GOptionGroup</doc>
        <type name="GLib.OptionGroup" c:type="GOptionGroup*"/>
      </return-value>
    </function>
    <function name="get_proc_address"
              c:identifier="cogl_get_proc_address"
              introspectable="0">
      <doc xml:whitespace="preserve">Gets a pointer to a given GL or GL ES extension function. This acts
as a wrapper around glXGetProcAddress() or whatever is the
appropriate function for the current backend.

function is not available.</doc>
      <return-value>
        <doc xml:whitespace="preserve">a pointer to the requested function or %NULL if the</doc>
        <type name="FuncPtr" c:type="CoglFuncPtr"/>
      </return-value>
      <parameters>
        <parameter name="name" transfer-ownership="none">
          <doc xml:whitespace="preserve">the name of the function.</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_projection_matrix"
              c:identifier="cogl_get_projection_matrix">
      <doc xml:whitespace="preserve">Stores the current projection matrix in @matrix.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="matrix" transfer-ownership="none">
          <doc xml:whitespace="preserve">pointer to a CoglMatrix to recieve the matrix</doc>
          <type name="Matrix" c:type="CoglMatrix*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_viewport" c:identifier="cogl_get_viewport">
      <doc xml:whitespace="preserve">Stores the current viewport in @v. @v[0] and @v[1] get the x and y
position of the viewport and @v[2] and @v[3] get the width and
height.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="v" transfer-ownership="none">
          <doc xml:whitespace="preserve">pointer to a 4 element array of #float&lt;!-- --&gt;s to receive the viewport dimensions.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="handle_get_type" c:identifier="cogl_handle_get_type">
      <return-value transfer-ownership="none">
        <type name="GType" c:type="GType"/>
      </return-value>
    </function>
    <function name="handle_ref"
              c:identifier="cogl_handle_ref"
              introspectable="0">
      <doc xml:whitespace="preserve">Increases the reference count of @handle by 1</doc>
      <return-value>
        <doc xml:whitespace="preserve">the handle, with its reference count increased</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="handle_unref" c:identifier="cogl_handle_unref">
      <doc xml:whitespace="preserve">Drecreases the reference count of @handle by 1; if the reference
count reaches 0, the resources allocated by @handle will be freed</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="Handle" transfer-ownership="none">
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="is_material" c:identifier="cogl_is_material">
      <doc xml:whitespace="preserve">Gets whether the given handle references an existing material object.

%FALSE otherwise</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the handle references a #CoglMaterial,</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="is_offscreen" c:identifier="cogl_is_offscreen">
      <doc xml:whitespace="preserve">Gets whether the given handle references an existing offscreen buffer
object.

%FALSE otherwise</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the handle references an offscreen buffer,</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle for an offscreen buffer</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="is_program" c:identifier="cogl_is_program">
      <doc xml:whitespace="preserve">Gets whether the given handle references an existing program object.

%FALSE otherwise</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the handle references a program,</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="is_shader" c:identifier="cogl_is_shader">
      <doc xml:whitespace="preserve">Gets whether the given handle references an existing shader object.

%FALSE otherwise</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the handle references a shader,</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="is_texture" c:identifier="cogl_is_texture">
      <doc xml:whitespace="preserve">Gets whether the given handle references an existing texture object.

%FALSE otherwise</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the handle references a texture,</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="is_vertex_buffer"
              c:identifier="cogl_is_vertex_buffer"
              version="1.0">
      <doc xml:whitespace="preserve">Checks whether @handle is a Vertex Buffer Object

otherwise</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the handle is a VBO, and %FALSE</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a vertex buffer object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_get_ambient"
              c:identifier="cogl_material_get_ambient">
      <doc xml:whitespace="preserve">This retrieves the materials current ambient color.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="ambient" transfer-ownership="none">
          <doc xml:whitespace="preserve">The location to store the ambient color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_get_color" c:identifier="cogl_material_get_color">
      <doc xml:whitespace="preserve">This retrieves the current material color.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="color" transfer-ownership="none">
          <doc xml:whitespace="preserve">The location to store the color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_get_diffuse"
              c:identifier="cogl_material_get_diffuse">
      <doc xml:whitespace="preserve">This retrieves the materials current diffuse color.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="diffuse" transfer-ownership="none">
          <doc xml:whitespace="preserve">The location to store the diffuse color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_get_emission"
              c:identifier="cogl_material_get_emission">
      <doc xml:whitespace="preserve">This retrieves the materials current emission color.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="emission" transfer-ownership="none">
          <doc xml:whitespace="preserve">The location to store the emission color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_get_layers"
              c:identifier="cogl_material_get_layers"
              introspectable="0">
      <doc xml:whitespace="preserve">This function lets you access a materials internal list of layers
for iteration.

#CoglHandle&lt;!-- --&gt;'s that can be passed to the  cogl_material_layer_*
functions. The list is owned by COGL and it  should not be modified or
freed</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">A list of</doc>
        <type name="GLib.List" c:type="GList*">
          <type c:type="Handle"/>
        </type>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a material</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_get_n_layers"
              c:identifier="cogl_material_get_n_layers"
              version="1.0">
      <doc xml:whitespace="preserve">Retrieves the number of layers defined for the given @material</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the number of layers</doc>
        <type name="gint" c:type="int"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a material</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_get_shininess"
              c:identifier="cogl_material_get_shininess">
      <doc xml:whitespace="preserve">This retrieves the materials current emission color.


Since 1.0</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">The materials current shininess value</doc>
        <type name="gfloat" c:type="float"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_get_specular"
              c:identifier="cogl_material_get_specular">
      <doc xml:whitespace="preserve">This retrieves the materials current specular color.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="specular" transfer-ownership="none">
          <doc xml:whitespace="preserve">The location to store the specular color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_layer_get_mag_filter"
              c:identifier="cogl_material_layer_get_mag_filter">
      <doc xml:whitespace="preserve">Query the currently set downscaling filter for a cogl material layer.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the current downscaling filter for a cogl material layer.</doc>
        <type name="MaterialFilter" c:type="CoglMaterialFilter"/>
      </return-value>
      <parameters>
        <parameter name="layer_handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a material layer</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_layer_get_min_filter"
              c:identifier="cogl_material_layer_get_min_filter">
      <doc xml:whitespace="preserve">Query the currently set downscaling filter for a cogl material layer.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the current downscaling filter for a cogl material layer.</doc>
        <type name="MaterialFilter" c:type="CoglMaterialFilter"/>
      </return-value>
      <parameters>
        <parameter name="layer_handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a material layer</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_layer_get_texture"
              c:identifier="cogl_material_layer_get_texture"
              introspectable="0">
      <doc xml:whitespace="preserve">This lets you extract a CoglTexture handle for a specific layer.

&lt;note&gt;In the future, we may support purely GLSL based layers which will
likely return %COGL_INVALID_HANDLE if you try to get the texture.
Considering this, you can call cogl_material_layer_get_type first,
to check it is of type %COGL_MATERIAL_LAYER_TYPE_TEXTURE.&lt;/note&gt;</doc>
      <return-value>
        <doc xml:whitespace="preserve">a #CoglHandle for the texture inside @layer_handle</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="layer_handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglHandle for a material layer</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_layer_get_type"
              c:identifier="cogl_material_layer_get_type">
      <doc xml:whitespace="preserve">Retrieves the type of the layer

Currently there is only one type of layer defined:
%COGL_MATERIAL_LAYER_TYPE_TEXTURE, but considering we may add purely GLSL
based layers in the future, you should write code that checks the type
first.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the type of the layer</doc>
        <type name="MaterialLayerType" c:type="CoglMaterialLayerType"/>
      </return-value>
      <parameters>
        <parameter name="layer_handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglHandle for a material layer</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_new"
              c:identifier="cogl_material_new"
              introspectable="0">
      <doc xml:whitespace="preserve">Allocates and initializes a blank white material</doc>
      <return-value>
        <doc xml:whitespace="preserve">a handle to the new material</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
    </function>
    <function name="material_ref"
              c:identifier="cogl_material_ref"
              introspectable="0">
      <doc xml:whitespace="preserve">Increment the reference count for a cogl material.


Since 1.0</doc>
      <return-value>
        <doc xml:whitespace="preserve">the @handle.</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a @CoglHandle.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_remove_layer"
              c:identifier="cogl_material_remove_layer">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="layer_index" transfer-ownership="none">
          <type name="gint" c:type="gint"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_alpha_test_function"
              c:identifier="cogl_material_set_alpha_test_function">
      <doc xml:whitespace="preserve">Before a primitive is blended with the framebuffer, it goes through an
alpha test stage which lets you discard fragments based on the current
alpha value. This function lets you change the function used to evaluate
the alpha channel, and thus determine which fragments are discarded
and which continue on to the blending stage.

The default is COGL_MATERIAL_ALPHA_FUNC_ALWAYS

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="alpha_func" transfer-ownership="none">
          <doc xml:whitespace="preserve">A @CoglMaterialAlphaFunc constant</doc>
          <type name="MaterialAlphaFunc" c:type="CoglMaterialAlphaFunc"/>
        </parameter>
        <parameter name="alpha_reference" transfer-ownership="none">
          <doc xml:whitespace="preserve">A reference point that the chosen alpha function uses to compare incoming fragments to.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_ambient"
              c:identifier="cogl_material_set_ambient">
      <doc xml:whitespace="preserve">Exposing the standard OpenGL lighting model; this function sets
the material's ambient color. The ambient color affects the overall
color of the object. Since the diffuse color will be intense when
the light hits the surface directly, the ambient will most aparent
where the light hits at a slant.

The default value is (0.2, 0.2, 0.2, 1.0)

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="ambient" transfer-ownership="none">
          <doc xml:whitespace="preserve">The components of the desired ambient color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_ambient_and_diffuse"
              c:identifier="cogl_material_set_ambient_and_diffuse">
      <doc xml:whitespace="preserve">This is a convenience for setting the diffuse and ambient color
of the material at the same time.

The default ambient color is (0.2, 0.2, 0.2, 1.0)
The default diffuse color is (0.8, 0.8, 0.8, 1.0)

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="color" transfer-ownership="none">
          <doc xml:whitespace="preserve">The components of the desired ambient and diffuse colors</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_blend"
              c:identifier="cogl_material_set_blend"
              version="1.0"
              throws="1">
      <doc xml:whitespace="preserve">If not already familiar; please refer
&lt;link linkend="cogl-Blend-Strings"&gt;here&lt;/link&gt; for an overview of what blend
strings are and there syntax.

Blending occurs after the alpha test function, and combines fragments with
the framebuffer.
Currently the only blend function Cogl exposes is ADD(). So any valid
blend statements will be of the form:

&lt;programlisting&gt;
&amp;lt;channel-mask&amp;gt;=ADD(SRC_COLOR*(&amp;lt;factor&amp;gt;), DST_COLOR*(&amp;lt;factor&amp;gt;))
&lt;/programlisting&gt;

&lt;warning&gt;The brackets around blend factors are currently not optional!&lt;/warning&gt;

This is the list of source-names usable as blend factors:
&lt;itemizedlist&gt;
&lt;listitem&gt;SRC_COLOR: The color of the in comming fragment&lt;/listitem&gt;
&lt;listitem&gt;DST_COLOR: The color of the framebuffer&lt;/listitem&gt;
&lt;listitem&gt;
CONSTANT: The constant set via cogl_material_set_blend_constant()&lt;/listitem&gt;
&lt;/itemizedlist&gt;
The source names can be used according to the
&lt;link linkend="cogl-Blend-String-syntax"&gt;color-source and factor syntax&lt;/link&gt;,
so for example "(1-SRC_COLOR[A])" would be a valid factor, as would
"(CONSTANT[RGB])"

These can also be used as factors:
&lt;itemizedlist&gt;
&lt;listitem&gt;0: (0, 0, 0, 0)&lt;/listitem&gt;
&lt;listitem&gt;1: (1, 1, 1, 1)&lt;/listitem&gt;
&lt;listitem&gt;SRC_ALPHA_SATURATE_FACTOR: (f,f,f,1)
where f=MIN(SRC_COLOR[A],1-DST_COLOR[A])&lt;/listitem&gt;
&lt;/itemizedlist&gt;
&lt;para&gt;
Remember; all color components are normalized to the range [0, 1] before
computing the result of blending.
&lt;/para&gt;
&lt;section&gt;
&lt;title&gt;Examples&lt;/title&gt;
Blend a non-premultiplied source over a destination with
premultiplied alpha:
&lt;programlisting&gt;
"RGB = ADD(SRC_COLOR*(SRC_COLOR[A]), DST_COLOR*(1-SRC_COLOR[A]))"
"A   = ADD(SRC_COLOR, DST_COLOR*(1-SRC_COLOR[A]))"
&lt;/programlisting&gt;
Blend a premultiplied source over a destination with premultiplied alpha:
&lt;programlisting&gt;
"RGBA = ADD(SRC_COLOR, DST_COLOR*(1-SRC_COLOR[A]))"
&lt;/programlisting&gt;
&lt;/section&gt;

The default blend string is:
"RGBA = ADD (SRC_COLOR, DST_COLOR*(1-SRC_COLOR[A]))"
That gives normal alpha-blending when the calculated color for the material
is in premultiplied form.

blending is supported by the underlying driver/hardware. If there
was an error, it returns FALSE.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">TRUE if the blend string was successfully parsed, and the described</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="blend_string" transfer-ownership="none">
          <doc xml:whitespace="preserve">A &lt;link linkend="cogl-Blend-Strings"&gt;Cogl blend string&lt;/link&gt; describing the desired blend function.</doc>
          <type name="utf8" c:type="char*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_blend_constant"
              c:identifier="cogl_material_set_blend_constant"
              version="1.0">
      <doc xml:whitespace="preserve">When blending is setup to reference a CONSTANT blend factor then
blending will depend on the constant set with this function.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="constant_color" transfer-ownership="none">
          <doc xml:whitespace="preserve">The constant color you want</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_color" c:identifier="cogl_material_set_color">
      <doc xml:whitespace="preserve">This is the basic color of the material, used when no lighting is enabled.

Note that if you don't add any layers to the material then the color
will be blended unmodified with the destination; the default blend
expects premultiplied colors: for example, use (0.5, 0.0, 0.0, 0.5) for
semi-transparent red. See cogl_color_premultiply().

The default value is (1.0, 1.0, 1.0, 1.0)

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="color" transfer-ownership="none">
          <doc xml:whitespace="preserve">The components of the color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_color4f"
              c:identifier="cogl_material_set_color4f">
      <doc xml:whitespace="preserve">This is the basic color of the material, used when no lighting is enabled.

The default value is (1.0, 1.0, 1.0, 1.0)

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="red" transfer-ownership="none">
          <doc xml:whitespace="preserve">The red component</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="green" transfer-ownership="none">
          <doc xml:whitespace="preserve">The green component</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="blue" transfer-ownership="none">
          <doc xml:whitespace="preserve">The blue component</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="alpha" transfer-ownership="none">
          <doc xml:whitespace="preserve">The alpha component</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_color4ub"
              c:identifier="cogl_material_set_color4ub">
      <doc xml:whitespace="preserve">This is the basic color of the material, used when no lighting is enabled.

The default value is (0xff, 0xff, 0xff, 0xff)

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="red" transfer-ownership="none">
          <doc xml:whitespace="preserve">The red component</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="green" transfer-ownership="none">
          <doc xml:whitespace="preserve">The green component</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="blue" transfer-ownership="none">
          <doc xml:whitespace="preserve">The blue component</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="alpha" transfer-ownership="none">
          <doc xml:whitespace="preserve">The alpha component</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_diffuse"
              c:identifier="cogl_material_set_diffuse">
      <doc xml:whitespace="preserve">Exposing the standard OpenGL lighting model; this function sets
the material's diffuse color. The diffuse color is most intense
where the light hits the surface directly; perpendicular to the
surface.

The default value is (0.8, 0.8, 0.8, 1.0)

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="diffuse" transfer-ownership="none">
          <doc xml:whitespace="preserve">The components of the desired diffuse color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_emission"
              c:identifier="cogl_material_set_emission">
      <doc xml:whitespace="preserve">Exposing the standard OpenGL lighting model; this function sets
the material's emissive color. It will look like the surface is
a light source emitting this color.

The default value is (0.0, 0.0, 0.0, 1.0)

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="emission" transfer-ownership="none">
          <doc xml:whitespace="preserve">The components of the desired emissive color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_layer" c:identifier="cogl_material_set_layer">
      <doc xml:whitespace="preserve">In addition to the standard OpenGL lighting model a Cogl material may have
one or more layers comprised of textures that can be blended together in
order, with a number of different texture combine modes. This function
defines a new texture layer.

The index values of multiple layers do not have to be consecutive; it is
only their relative order that is important.

&lt;note&gt;In the future, we may define other types of material layers, such
as purely GLSL based layers.&lt;/note&gt;

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglHandle for a material object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="layer_index" transfer-ownership="none">
          <doc xml:whitespace="preserve">the index of the layer</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="texture" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for the layer object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_layer_combine"
              c:identifier="cogl_material_set_layer_combine"
              version="1.0"
              throws="1">
      <doc xml:whitespace="preserve">If not already familiar; you can refer
&lt;link linkend="cogl-Blend-Strings"&gt;here&lt;/link&gt; for an overview of what blend
strings are and there syntax.

These are all the functions available for texture combining:
&lt;itemizedlist&gt;
&lt;listitem&gt;REPLACE(arg0) = arg0&lt;/listitem&gt;
&lt;listitem&gt;MODULATE(arg0, arg1) = arg0 x arg1&lt;/listitem&gt;
&lt;listitem&gt;ADD(arg0, arg1) = arg0 + arg1&lt;/listitem&gt;
&lt;listitem&gt;ADD_SIGNED(arg0, arg1) = arg0 + arg1 - 0.5&lt;/listitem&gt;
&lt;listitem&gt;INTERPOLATE(arg0, arg1, arg2) =
arg0 x arg2 + arg1 x (1 - arg2)&lt;/listitem&gt;
&lt;listitem&gt;SUBTRACT(arg0, arg1) = arg0 - arg1&lt;/listitem&gt;
&lt;listitem&gt;
DOT3_RGB(arg0, arg1) =
&lt;programlisting&gt;
4 x ((arg0[R] - 0.5)) * (arg1[R] - 0.5) +
(arg0[G] - 0.5)) * (arg1[G] - 0.5) +
(arg0[B] - 0.5)) * (arg1[B] - 0.5))
&lt;/programlisting&gt;
&lt;/listitem&gt;
&lt;listitem&gt;DOT3_RGBA(arg0, arg1) =
&lt;programlisting&gt;
4 x ((arg0[R] - 0.5)) * (arg1[R] - 0.5) +
(arg0[G] - 0.5)) * (arg1[G] - 0.5) +
(arg0[B] - 0.5)) * (arg1[B] - 0.5))
&lt;/programlisting&gt;
&lt;/listitem&gt;
&lt;/itemizedlist&gt;

Refer to the
&lt;link linkend="cogl-Blend-String-syntax"&gt;color-source syntax&lt;/link&gt; for
describing the arguments. The valid source names for texture combining
are:
&lt;itemizedlist&gt;
&lt;listitem&gt;
TEXTURE: Use the color from the current texture layer
&lt;/listitem&gt;
&lt;listitem&gt;
TEXTURE_0, TEXTURE_1, etc: Use the color from the specified texture layer
&lt;/listitem&gt;
&lt;listitem&gt;
CONSTANT: Use the color from the constant given with
cogl_material_set_layer_constant()
&lt;/listitem&gt;
&lt;listitem&gt;
PRIMARY: Use the color of the material as set with cogl_material_set_color()
&lt;/listitem&gt;
&lt;listitem&gt;
PREVIOUS: Either use the texture color from the previous layer, or if this
is layer 0, use the color of the material as set with
cogl_material_set_color()
&lt;/listitem&gt;
&lt;/itemizedlist&gt;
&lt;refsect2&gt;
&lt;title&gt;Example&lt;/title&gt;
This is effectively what the default blending is:
|[
RGBA = MODULATE (PREVIOUS, TEXTURE)
]|
This could be used to cross-fade between two images, using the alpha
component of a constant as the interpolator. The constant color
is given by calling cogl_material_set_layer_constant.
|[
RGBA = INTERPOLATE (PREVIOUS, TEXTURE, CONSTANT[A])
]|
&lt;/refsect2&gt;

&lt;note&gt;You can't give a multiplication factor for arguments as you can
with blending.&lt;/note&gt;

described texture combining is supported by the underlying driver and
or hardware. If there was an error, it returns FALSE.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the blend string was successfully parsed, and the</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="layer_index" transfer-ownership="none">
          <doc xml:whitespace="preserve">Specifies the layer you want define a combine function for</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
        <parameter name="blend_string" transfer-ownership="none">
          <doc xml:whitespace="preserve">A &lt;link linkend="cogl-Blend-Strings"&gt;Cogl blend string&lt;/link&gt; describing the desired texture combine function.</doc>
          <type name="utf8" c:type="char*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_layer_combine_constant"
              c:identifier="cogl_material_set_layer_combine_constant">
      <doc xml:whitespace="preserve">When you are using the 'CONSTANT' color source in a layer combine
description then you can use this function to define its value.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="layer_index" transfer-ownership="none">
          <doc xml:whitespace="preserve">Specifies the layer you want to specify a constant used for texture combining</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="constant" transfer-ownership="none">
          <doc xml:whitespace="preserve">The constant color you want</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_layer_filters"
              c:identifier="cogl_material_set_layer_filters">
      <doc xml:whitespace="preserve">Changes the decimation and interpolation filters used when a texture is
drawn at other scales than 100%.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle to a material.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="layer_index" transfer-ownership="none">
          <doc xml:whitespace="preserve">the layer number to change.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
        <parameter name="min_filter" transfer-ownership="none">
          <doc xml:whitespace="preserve">the filter used when scaling a texture down.</doc>
          <type name="MaterialFilter" c:type="CoglMaterialFilter"/>
        </parameter>
        <parameter name="mag_filter" transfer-ownership="none">
          <doc xml:whitespace="preserve">the filter used when magnifying a texture.</doc>
          <type name="MaterialFilter" c:type="CoglMaterialFilter"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_layer_matrix"
              c:identifier="cogl_material_set_layer_matrix">
      <doc xml:whitespace="preserve">This function lets you set a matrix that can be used to e.g. translate
and rotate a single layer of a material used to fill your geometry.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="layer_index" transfer-ownership="none">
          <doc xml:whitespace="preserve">the index for the layer inside @material</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="matrix" transfer-ownership="none">
          <doc xml:whitespace="preserve">the transformation matrix for the layer</doc>
          <type name="Matrix" c:type="CoglMatrix*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_shininess"
              c:identifier="cogl_material_set_shininess">
      <doc xml:whitespace="preserve">This function sets the materials shininess which determines how
specular highlights are calculated. A higher shininess will produce
smaller brigher highlights.

The default value is 0.0

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="shininess" transfer-ownership="none">
          <doc xml:whitespace="preserve">The desired shininess; range: [0.0, 1.0]</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_set_specular"
              c:identifier="cogl_material_set_specular">
      <doc xml:whitespace="preserve">Exposing the standard OpenGL lighting model; this function sets
the material's specular color. The intensity of the specular color
depends on the viewport position, and is brightest along the lines
of reflection.

The default value is (0.0, 0.0, 0.0, 1.0)

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="specular" transfer-ownership="none">
          <doc xml:whitespace="preserve">The components of the desired specular color</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="material_unref" c:identifier="cogl_material_unref">
      <doc xml:whitespace="preserve">Decrement the reference count for a cogl material.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a @CoglHandle.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="offscreen_new_to_texture"
              c:identifier="cogl_offscreen_new_to_texture"
              introspectable="0">
      <doc xml:whitespace="preserve">This creates an offscreen buffer object using the given texture as the
primary color buffer. It doesn't just initialize the contents of the
offscreen buffer with the texture; they are tightly bound so that
drawing to the offscreen buffer effectivly updates the contents of the
given texture. You don't need to destroy the offscreen buffer before
you can use the texture again.

Note: This does not work with sliced Cogl textures.

if it wasn't possible to create the buffer.</doc>
      <return-value>
        <doc xml:whitespace="preserve">a #CoglHandle for the new offscreen buffer or %COGL_INVALID_HANDLE</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle for a Cogl texture</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="offscreen_ref"
              c:identifier="cogl_offscreen_ref"
              introspectable="0">
      <doc xml:whitespace="preserve">Increments the reference count on the offscreen buffer.</doc>
      <return-value>
        <doc xml:whitespace="preserve">For convenience it returns the given CoglHandle</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle for an offscreen buffer</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="offscreen_unref" c:identifier="cogl_offscreen_unref">
      <doc xml:whitespace="preserve">Decreases the reference count for the offscreen buffer and frees it when
the count reaches 0.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle for an offscreen buffer</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="ortho" c:identifier="cogl_ortho" version="1.0">
      <doc xml:whitespace="preserve">Replaces the current projection matrix with a parallel projection
matrix.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="left" transfer-ownership="none">
          <doc xml:whitespace="preserve">The coordinate for the left clipping plane</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="right" transfer-ownership="none">
          <doc xml:whitespace="preserve">The coordinate for the right clipping plane</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="bottom" transfer-ownership="none">
          <doc xml:whitespace="preserve">The coordinate for the bottom clipping plane</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="top" transfer-ownership="none">
          <doc xml:whitespace="preserve">The coordinate for the top clipping plane</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="near" transfer-ownership="none">
          <doc xml:whitespace="preserve">The coordinate for the near clipping plane (may be negative if the plane is behind the viewer)</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="far" transfer-ownership="none">
          <doc xml:whitespace="preserve">The coordinate for the far clipping plane (may be negative if the plane is behind the viewer)</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_arc" c:identifier="cogl_path_arc">
      <doc xml:whitespace="preserve">Adds an elliptical arc segment to the current path. A straight line
segment will link the current pen location with the first vertex
of the arc. If you perform a move_to to the arcs start just before
drawing it you create a free standing arc.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="center_x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the elliptical arc center</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="center_y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the elliptical arc center</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="radius_x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X radius of the elliptical arc</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="radius_y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y radius of the elliptical arc</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="angle_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">Angle in the unit-circle at which the arc begin</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="angle_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">Angle in the unit-circle at which the arc ends</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_close" c:identifier="cogl_path_close">
      <doc xml:whitespace="preserve">Closes the path being constructed by adding a straight line segment
to it that ends at the first vertex of the path.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="path_curve_to" c:identifier="cogl_path_curve_to">
      <doc xml:whitespace="preserve">Adds a cubic bezier curve segment to the current path with the given
second, third and fourth control points and using current pen location
as the first control point.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the second bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the second bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the third bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the third bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x_3" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the fourth bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_3" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the fourth bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_ellipse" c:identifier="cogl_path_ellipse">
      <doc xml:whitespace="preserve">Constructs an ellipse shape. If there is an existing path this will
start a new disjoint sub-path.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="center_x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the ellipse center</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="center_y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the ellipse center</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="radius_x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X radius of the ellipse</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="radius_y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y radius of the ellipse</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_fill" c:identifier="cogl_path_fill">
      <doc xml:whitespace="preserve">Fills the constructed shape using the current drawing color. The
current path is then cleared. To use the path again, call
cogl_path_fill_preserve() instead.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="path_fill_preserve"
              c:identifier="cogl_path_fill_preserve"
              version="1.0">
      <doc xml:whitespace="preserve">Fills the constructed shape using the current drawing color and
preserves the path to be used again.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="path_line" c:identifier="cogl_path_line">
      <doc xml:whitespace="preserve">Constructs a straight line shape starting and ending at the given
coordinates. If there is an existing path this will start a new
disjoint sub-path.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the start line vertex</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the start line vertex</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the end line vertex</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the end line vertex</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_line_to" c:identifier="cogl_path_line_to">
      <doc xml:whitespace="preserve">Adds a straight line segment to the current path that ends at the
given coordinates.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the end line vertex</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the end line vertex</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_move_to" c:identifier="cogl_path_move_to">
      <doc xml:whitespace="preserve">Moves the pen to the given location. If there is an existing path
this will start a new disjoint subpath.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the pen location to move to.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the pen location to move to.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_new" c:identifier="cogl_path_new" version="1.0">
      <doc xml:whitespace="preserve">Clears the current path and starts a new one.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="path_polygon" c:identifier="cogl_path_polygon">
      <doc xml:whitespace="preserve">Constructs a polygonal shape of the given number of vertices. If
there is an existing path this will start a new disjoint sub-path.

The coords array must contain 2 * num_points values. The first value
represents the X coordinate of the first vertex, the second value
represents the Y coordinate of the first vertex, continuing in the same
fashion for the rest of the vertices.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="coords" transfer-ownership="none">
          <doc xml:whitespace="preserve">A pointer to the first element of an array of fixed-point values that specify the vertex coordinates.</doc>
          <type name="gfloat" c:type="float*"/>
        </parameter>
        <parameter name="num_points" transfer-ownership="none">
          <doc xml:whitespace="preserve">The total number of vertices.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_polyline" c:identifier="cogl_path_polyline">
      <doc xml:whitespace="preserve">Constructs a series of straight line segments, starting from the
first given vertex coordinate. If there is an existing path this
will start a new disjoint sub-path. Each subsequent segment starts
where the previous one ended and ends at the next given vertex
coordinate.

The coords array must contain 2 * num_points values. The first value
represents the X coordinate of the first vertex, the second value
represents the Y coordinate of the first vertex, continuing in the same
fashion for the rest of the vertices. (num_points - 1) segments will
be constructed.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="coords" transfer-ownership="none">
          <doc xml:whitespace="preserve">A pointer to the first element of an array of fixed-point values that specify the vertex coordinates.</doc>
          <type name="gfloat" c:type="float*"/>
        </parameter>
        <parameter name="num_points" transfer-ownership="none">
          <doc xml:whitespace="preserve">The total number of vertices.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_rectangle" c:identifier="cogl_path_rectangle">
      <doc xml:whitespace="preserve">Constructs a rectangular shape at the given coordinates. If there
is an existing path this will start a new disjoint sub-path.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the top-left corner.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the top-left corner.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the bottom-right corner.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the bottom-right corner.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_rel_curve_to" c:identifier="cogl_path_rel_curve_to">
      <doc xml:whitespace="preserve">Adds a cubic bezier curve segment to the current path with the given
second, third and fourth control points and using current pen location
as the first control point. The given coordinates are relative to the
current pen location.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the second bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the second bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the third bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the third bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x_3" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the fourth bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_3" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the fourth bezier control point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_rel_line_to" c:identifier="cogl_path_rel_line_to">
      <doc xml:whitespace="preserve">Adds a straight line segment to the current path that ends at the
given coordinates relative to the current pen location.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X offset from the current pen location of the end line vertex</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y offset from the current pen location of the end line vertex</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_rel_move_to" c:identifier="cogl_path_rel_move_to">
      <doc xml:whitespace="preserve">Moves the pen to the given offset relative to the current pen
location. If there is an existing path this will start a new
disjoint subpath.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X offset from the current pen location to move the pen to.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y offset from the current pen location to move the pen to.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_round_rectangle"
              c:identifier="cogl_path_round_rectangle">
      <doc xml:whitespace="preserve">Constructs a rectangular shape with rounded corners. If there is an
existing path this will start a new disjoint sub-path.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the top-left corner.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the top-left corner.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the bottom-right corner.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the bottom-right corner.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="radius" transfer-ownership="none">
          <doc xml:whitespace="preserve">Radius of the corner arcs.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="arc_step" transfer-ownership="none">
          <doc xml:whitespace="preserve">Angle increment resolution for subdivision of the corner arcs.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="path_stroke" c:identifier="cogl_path_stroke">
      <doc xml:whitespace="preserve">Strokes the constructed shape using the current drawing color and a
width of 1 pixel (regardless of the current transformation
matrix). To current path is then cleared. To use the path again,
call cogl_path_stroke_preserve() instead.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="path_stroke_preserve"
              c:identifier="cogl_path_stroke_preserve"
              version="1.0">
      <doc xml:whitespace="preserve">Strokes the constructed shape using the current drawing color and
preserves the path to be used again.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="perspective" c:identifier="cogl_perspective">
      <doc xml:whitespace="preserve">Replaces the current projection matrix with a perspective matrix
based on the provided values.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="fovy" transfer-ownership="none">
          <doc xml:whitespace="preserve">Vertical of view angle in degrees.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="aspect" transfer-ownership="none">
          <doc xml:whitespace="preserve">Aspect ratio of diesplay</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z_near" transfer-ownership="none">
          <doc xml:whitespace="preserve">Nearest visible point</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z_far" transfer-ownership="none">
          <doc xml:whitespace="preserve">Furthest visible point along the z-axis</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="polygon" c:identifier="cogl_polygon">
      <doc xml:whitespace="preserve">Draws a convex polygon using the current source material to fill / texture
with according to the texture coordinates passed.

If @use_color is %TRUE then the color will be changed for each vertex using
the value specified in the color member of #CoglTextureVertex. This can be
used for example to make the texture fade out by setting the alpha value of
the color.

All of the texture coordinates must be in the range [0,1] and repeating the
texture is not supported.

Because of the way this function is implemented it will currently only work
if either the texture is not sliced or the backend is not OpenGL ES and the
minifying and magnifying functions are both set to CGL_NEAREST.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="vertices" transfer-ownership="none">
          <doc xml:whitespace="preserve">An array of #CoglTextureVertex structs</doc>
          <type name="TextureVertex" c:type="CoglTextureVertex*"/>
        </parameter>
        <parameter name="n_vertices" transfer-ownership="none">
          <doc xml:whitespace="preserve">The length of the vertices array</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="use_color" transfer-ownership="none">
          <doc xml:whitespace="preserve">%TRUE if the color member of #CoglTextureVertex should be used</doc>
          <type name="gboolean" c:type="gboolean"/>
        </parameter>
      </parameters>
    </function>
    <function name="pop_draw_buffer" c:identifier="cogl_pop_draw_buffer">
      <doc xml:whitespace="preserve">Restore cogl_set_draw_buffer() state.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="pop_matrix" c:identifier="cogl_pop_matrix">
      <doc xml:whitespace="preserve">Restore the current model-view matrix from the matrix stack.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="program_attach_shader"
              c:identifier="cogl_program_attach_shader">
      <doc xml:whitespace="preserve">Attaches a shader to a program object, a program can have one vertex shader
and one fragment shader attached.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="program_handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a shdaer program.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="shader_handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a vertex of fragment shader.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_get_uniform_location"
              c:identifier="cogl_program_get_uniform_location">
      <doc xml:whitespace="preserve">Retrieve the location (offset) of a uniform variable in a shader program,
a uniform is a variable that is constant for all vertices/fragments for a
shader object and is possible to modify as an external parameter.

This uniform can be set using cogl_program_uniform_1f() when the
program is in use.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the offset of a uniform in a specified program.</doc>
        <type name="gint" c:type="int"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a shader program.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="uniform_name" transfer-ownership="none">
          <doc xml:whitespace="preserve">the name of a uniform.</doc>
          <type name="utf8" c:type="char*"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_link" c:identifier="cogl_program_link">
      <doc xml:whitespace="preserve">Links a program making it ready for use.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a shader program.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_ref"
              c:identifier="cogl_program_ref"
              introspectable="0">
      <doc xml:whitespace="preserve">Add an extra reference to a program.</doc>
      <return-value>
        <doc xml:whitespace="preserve">@handle</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglHandle to a program.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_uniform_1f" c:identifier="cogl_program_uniform_1f">
      <doc xml:whitespace="preserve">Changes the value of a floating point uniform in the currently
used (see cogl_program_use()) shader program.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="uniform_no" transfer-ownership="none">
          <doc xml:whitespace="preserve">the unform to set.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <doc xml:whitespace="preserve">the new value of the uniform.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_uniform_1i" c:identifier="cogl_program_uniform_1i">
      <doc xml:whitespace="preserve">Changes the value of an integer uniform in the currently
used (see cogl_program_use()) shader program.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="uniform_no" transfer-ownership="none">
          <doc xml:whitespace="preserve">the unform to set.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <doc xml:whitespace="preserve">the new value of the uniform.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_uniform_int"
              c:identifier="cogl_program_uniform_int">
      <doc xml:whitespace="preserve">Changes the value of a int vector uniform, or uniform array in the
currently used (see cogl_program_use()) shader program.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="uniform_no" transfer-ownership="none">
          <doc xml:whitespace="preserve">the uniform to set.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="size" transfer-ownership="none">
          <doc xml:whitespace="preserve">Size of int vector.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <doc xml:whitespace="preserve">Size of array of uniforms.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <doc xml:whitespace="preserve">the new value of the uniform.</doc>
          <type name="gint" c:type="int*"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_uniform_matrix"
              c:identifier="cogl_program_uniform_matrix">
      <doc xml:whitespace="preserve">Changes the value of a matrix uniform, or uniform array in the
currently used (see cogl_program_use()) shader program. The @size
parameter is used to determine the square size of the matrix.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="uniform_no" transfer-ownership="none">
          <doc xml:whitespace="preserve">the uniform to set.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="size" transfer-ownership="none">
          <doc xml:whitespace="preserve">Size of matrix.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <doc xml:whitespace="preserve">Size of array of uniforms.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="transpose" transfer-ownership="none">
          <doc xml:whitespace="preserve">Whether to transpose the matrix when setting the uniform.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </parameter>
        <parameter name="value" transfer-ownership="none">
          <doc xml:whitespace="preserve">the new value of the uniform.</doc>
          <type name="gfloat" c:type="float*"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_unref" c:identifier="cogl_program_unref">
      <doc xml:whitespace="preserve">Removes a reference to a program. If it was the last reference the
program object will be destroyed.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglHandle to a program.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="program_use" c:identifier="cogl_program_use">
      <doc xml:whitespace="preserve">Activate a specific shader program replacing that part of the GL
rendering pipeline, if passed in %COGL_INVALID_HANDLE the default
behavior of GL is reinstated.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a shader program or %COGL_INVALID_HANDLE.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="push_draw_buffer" c:identifier="cogl_push_draw_buffer">
      <doc xml:whitespace="preserve">Save cogl_set_draw_buffer() state.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="push_matrix" c:identifier="cogl_push_matrix">
      <doc xml:whitespace="preserve">Store the current model-view matrix on the matrix stack. The matrix
can later be restored with cogl_pop_matrix().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
    </function>
    <function name="read_pixels" c:identifier="cogl_read_pixels">
      <doc xml:whitespace="preserve">This reads a rectangle of pixels from the current draw buffer where
position (0, 0) is the top left. The pixel at (x, y) is the first
read, and the data is returned with a rowstride of (width * 4)</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">The window x position to start reading from</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="y" transfer-ownership="none">
          <doc xml:whitespace="preserve">The window y position to start reading from</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="width" transfer-ownership="none">
          <doc xml:whitespace="preserve">The width of the rectangle you want to read</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <doc xml:whitespace="preserve">The height of the rectangle you want to read</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="source" transfer-ownership="none">
          <doc xml:whitespace="preserve">Identifies which auxillary buffer you want to read (only COGL_READ_PIXELS_COLOR_BUFFER supported currently)</doc>
          <type name="ReadPixelsFlags" c:type="CoglReadPixelsFlags"/>
        </parameter>
        <parameter name="format" transfer-ownership="none">
          <doc xml:whitespace="preserve">The pixel format you want the result in (only COGL_PIXEL_FORMAT_RGBA_8888 supported currently)</doc>
          <type name="PixelFormat" c:type="CoglPixelFormat"/>
        </parameter>
        <parameter name="pixels" transfer-ownership="none">
          <doc xml:whitespace="preserve">The location to write the pixel data.</doc>
          <type name="guint8" c:type="guint8*"/>
        </parameter>
      </parameters>
    </function>
    <function name="rectangle" c:identifier="cogl_rectangle">
      <doc xml:whitespace="preserve">Fills a rectangle at the given coordinates with the current source material</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the top-left corner</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_1" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the top-left corner</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">X coordinate of the bottom-right corner</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y_2" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y coordinate of the bottom-right corner</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="rectangle_with_multitexture_coords"
              c:identifier="cogl_rectangle_with_multitexture_coords">
      <doc xml:whitespace="preserve">This function draws a rectangle using the current source material to
texture or fill with. As a material may contain multiple texture layers
this interface lets you supply texture coordinates for each layer of the
material.

The first pair of coordinates are for the first layer (with the smallest
layer index) and if you supply less texture coordinates than there are
layers in the current source material then default texture coordinates
(0.0, 0.0, 1.0, 1.0) are generated.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x1" transfer-ownership="none">
          <doc xml:whitespace="preserve">x coordinate upper left on screen.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y1" transfer-ownership="none">
          <doc xml:whitespace="preserve">y coordinate upper left on screen.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x2" transfer-ownership="none">
          <doc xml:whitespace="preserve">x coordinate lower right on screen.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y2" transfer-ownership="none">
          <doc xml:whitespace="preserve">y coordinate lower right on screen.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="tex_coords" transfer-ownership="none">
          <doc xml:whitespace="preserve">An array containing groups of 4 float values: [tx1, ty1, tx2, ty2] that are interpreted as two texture coordinates; one for the upper left texel, and one for the lower right texel. Each value should be between 0.0 and 1.0, where the coordinate (0.0, 0.0) represents the top left of the texture, and (1.0, 1.0) the bottom right.</doc>
          <type name="gfloat" c:type="float*"/>
        </parameter>
        <parameter name="tex_coords_len" transfer-ownership="none">
          <doc xml:whitespace="preserve">The length of the tex_coords array. (e.g. for one layer and one group of texture coordinates, this would be 4)</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
      </parameters>
    </function>
    <function name="rectangle_with_texture_coords"
              c:identifier="cogl_rectangle_with_texture_coords">
      <doc xml:whitespace="preserve">Draw a rectangle using the current material and supply texture coordinates
to be used for the first texture layer of the material. To draw the entire
texture pass in @tx1=0.0 @ty1=0.0 @tx2=1.0 @ty2=1.0.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x1" transfer-ownership="none">
          <doc xml:whitespace="preserve">x coordinate upper left on screen.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y1" transfer-ownership="none">
          <doc xml:whitespace="preserve">y coordinate upper left on screen.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x2" transfer-ownership="none">
          <doc xml:whitespace="preserve">x coordinate lower right on screen.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y2" transfer-ownership="none">
          <doc xml:whitespace="preserve">y coordinate lower right on screen.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="tx1" transfer-ownership="none">
          <doc xml:whitespace="preserve">x part of texture coordinate to use for upper left pixel</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="ty1" transfer-ownership="none">
          <doc xml:whitespace="preserve">y part of texture coordinate to use for upper left pixel</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="tx2" transfer-ownership="none">
          <doc xml:whitespace="preserve">x part of texture coordinate to use for lower right pixel</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="ty2" transfer-ownership="none">
          <doc xml:whitespace="preserve">y part of texture coordinate to use for left pixel</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="rectangles" c:identifier="cogl_rectangles" version="1.0">
      <doc xml:whitespace="preserve">Draws a series of rectangles in the same way that
cogl_rectangle() does. In some situations it can give a
significant performance boost to use this function rather than
calling cogl_rectangle() separately for each rectangle.

@verts should point to an array of #float&lt;!-- --&gt;s with
@n_rects * 4 elements. Each group of 4 values corresponds to the
parameters x1, y1, x2, and y2, and have the same
meaning as in cogl_rectangle().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="verts" transfer-ownership="none">
          <doc xml:whitespace="preserve">an array of vertices</doc>
          <type name="gfloat" c:type="float*"/>
        </parameter>
        <parameter name="n_rects" transfer-ownership="none">
          <doc xml:whitespace="preserve">number of rectangles to draw</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
      </parameters>
    </function>
    <function name="rectangles_with_texture_coords"
              c:identifier="cogl_rectangles_with_texture_coords"
              version="0.8.6">
      <doc xml:whitespace="preserve">Draws a series of rectangles in the same way that
cogl_rectangle_with_texture_coords() does. In some situations it can give a
significant performance boost to use this function rather than
calling cogl_rectangle_with_texture_coords() separately for each rectangle.

@verts should point to an array of #float&lt;!-- --&gt;s with
@n_rects * 8 elements. Each group of 8 values corresponds to the
parameters x1, y1, x2, y2, tx1, ty1, tx2 and ty2 and have the same
meaning as in cogl_rectangle_with_texture_coords().</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="verts" transfer-ownership="none">
          <doc xml:whitespace="preserve">an array of vertices</doc>
          <type name="gfloat" c:type="float*"/>
        </parameter>
        <parameter name="n_rects" transfer-ownership="none">
          <doc xml:whitespace="preserve">number of rectangles to draw</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
      </parameters>
    </function>
    <function name="rotate" c:identifier="cogl_rotate">
      <doc xml:whitespace="preserve">Multiplies the current model-view matrix by one that rotates the
model around the vertex specified by @x, @y and @z. The rotation
follows the right-hand thumb rule so for example rotating by 10
degrees about the vertex (0, 0, 1) causes a small counter-clockwise
rotation.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="angle" transfer-ownership="none">
          <doc xml:whitespace="preserve">Angle in degrees to rotate.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">X-component of vertex to rotate around.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Y-component of vertex to rotate around.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z" transfer-ownership="none">
          <doc xml:whitespace="preserve">Z-component of vertex to rotate around.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="scale" c:identifier="cogl_scale">
      <doc xml:whitespace="preserve">Multiplies the current model-view matrix by one that scales the x,
y and z axes by the given values.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">Amount to scale along the x-axis</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Amount to scale along the y-axis</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z" transfer-ownership="none">
          <doc xml:whitespace="preserve">Amount to scale along the z-axis</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_backface_culling_enabled"
              c:identifier="cogl_set_backface_culling_enabled">
      <doc xml:whitespace="preserve">Sets whether textures positioned so that their backface is showing
should be hidden. This can be used to efficiently draw two-sided
textures or fully closed cubes without enabling depth testing. This
only affects calls to the cogl_rectangle* family of functions and
cogl_vertex_buffer_draw*. Backface culling is disabled by default.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="setting" transfer-ownership="none">
          <doc xml:whitespace="preserve">%TRUE to enable backface culling or %FALSE to disable.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_depth_test_enabled"
              c:identifier="cogl_set_depth_test_enabled">
      <doc xml:whitespace="preserve">Sets whether depth testing is enabled. If it is disabled then the
order that actors are layered on the screen depends solely on the
order specified using clutter_actor_raise() and
clutter_actor_lower(), otherwise it will also take into account the
actor's depth. Depth testing is disabled by default.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="setting" transfer-ownership="none">
          <doc xml:whitespace="preserve">%TRUE to enable depth testing or %FALSE to disable.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_draw_buffer" c:identifier="cogl_set_draw_buffer">
      <doc xml:whitespace="preserve">This redirects all subsequent drawing to the specified draw buffer. This
can either be an offscreen buffer created with
cogl_offscreen_new_to_texture () or you can revert to your original
on screen window buffer.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="target" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglBufferTarget that specifies what kind of draw buffer you are setting as the render target.</doc>
          <type name="BufferTarget" c:type="CoglBufferTarget"/>
        </parameter>
        <parameter name="offscreen" transfer-ownership="none">
          <doc xml:whitespace="preserve">If you are setting a draw buffer of type COGL_OFFSCREEN_BUFFER then this is a CoglHandle for the offscreen buffer.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_fog" c:identifier="cogl_set_fog">
      <doc xml:whitespace="preserve">Enables fogging. Fogging causes vertices that are further away from the eye
to be rendered with a different color. The color is determined according to
the chosen fog mode; at it's simplest the color is linearly interpolated so
that vertices at @z_near are drawn fully with their original color and
vertices at @z_far are drawn fully with @fog_color. Fogging will remain
enabled until you call cogl_disable_fog().

&lt;note&gt;The fogging functions only work correctly when primitives use
unmultiplied alpha colors. By default Cogl will premultiply textures
and cogl_set_source_color() will premultiply colors, so unless you
explicitly load your textures requesting an unmultiplied internal format
and use cogl_material_set_color() you can only use fogging with fully
opaque primitives. This might improve in the future when we can depend
on fragment shaders.&lt;/note&gt;</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="fog_color" transfer-ownership="none">
          <doc xml:whitespace="preserve">The color of the fog</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
        <parameter name="mode" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglFogMode that determines the equation used to calculate the fogging blend factor.</doc>
          <type name="FogMode" c:type="CoglFogMode"/>
        </parameter>
        <parameter name="density" transfer-ownership="none">
          <doc xml:whitespace="preserve">Used by the EXPONENTIAL and EXPONENTIAL_SQUARED CoglFogMode equations.</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z_near" transfer-ownership="none">
          <doc xml:whitespace="preserve">Position along z-axis where no fogging should be applied</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z_far" transfer-ownership="none">
          <doc xml:whitespace="preserve">Position along z-axes where full fogging should be applied</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_modelview_matrix"
              c:identifier="cogl_set_modelview_matrix">
      <doc xml:whitespace="preserve">Loads matrix as the new model-view matrix.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="matrix" transfer-ownership="none">
          <doc xml:whitespace="preserve">pointer to a CoglMatrix to set as the new model-view matrix</doc>
          <type name="Matrix" c:type="CoglMatrix*"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_projection_matrix"
              c:identifier="cogl_set_projection_matrix">
      <doc xml:whitespace="preserve">Loads matrix as the new projection matrix.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="matrix" transfer-ownership="none">
          <doc xml:whitespace="preserve">pointer to a CoglMatrix to set as the new projection matrix</doc>
          <type name="Matrix" c:type="CoglMatrix*"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_source" c:identifier="cogl_set_source">
      <doc xml:whitespace="preserve">This function sets the source material that will be used to fill subsequent
geometry emitted via the cogl API.

Note: in the future we may add the ability to set a front facing material,
and a back facing material, in which case this function will set both to the
same.

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="material" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglMaterial object</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_source_color"
              c:identifier="cogl_set_source_color"
              version="1.0">
      <doc xml:whitespace="preserve">This is a convenience function for creating a solid fill source material
from the given color. This color will be used for any subsequent drawing
operation.

The color will be premultiplied by Cogl, so the color should be
non-premultiplied. For example: use (1.0, 0.0, 0.0, 0.5) for
semi-transparent red.

See also cogl_set_source_color4ub() and cogl_set_source_color4f()
if you already have the color components.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="color" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglColor</doc>
          <type name="Color" c:type="CoglColor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_source_color4f"
              c:identifier="cogl_set_source_color4f"
              version="1.0">
      <doc xml:whitespace="preserve">This is a convenience function for creating a solid fill source material
from the given color using normalized values for each component. This color
will be used for any subsequent drawing operation.

The value for each component is a fixed point number in the range
between 0 and %1.0. If the values passed in are outside that
range, they will be clamped.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="red" transfer-ownership="none">
          <doc xml:whitespace="preserve">value of the red channel, between 0 and %1.0</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="green" transfer-ownership="none">
          <doc xml:whitespace="preserve">value of the green channel, between 0 and %1.0</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="blue" transfer-ownership="none">
          <doc xml:whitespace="preserve">value of the blue channel, between 0 and %1.0</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="alpha" transfer-ownership="none">
          <doc xml:whitespace="preserve">value of the alpha channel, between 0 and %1.0</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_source_color4ub"
              c:identifier="cogl_set_source_color4ub"
              version="1.0">
      <doc xml:whitespace="preserve">This is a convenience function for creating a solid fill source material
from the given color using unsigned bytes for each component. This
color will be used for any subsequent drawing operation.

The value for each component is an unsigned byte in the range
between 0 and 255.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="red" transfer-ownership="none">
          <doc xml:whitespace="preserve">value of the red channel, between 0 and 255</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="green" transfer-ownership="none">
          <doc xml:whitespace="preserve">value of the green channel, between 0 and 255</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="blue" transfer-ownership="none">
          <doc xml:whitespace="preserve">value of the blue channel, between 0 and 255</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="alpha" transfer-ownership="none">
          <doc xml:whitespace="preserve">value of the alpha channel, between 0 and 255</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_source_texture" c:identifier="cogl_set_source_texture">
      <doc xml:whitespace="preserve">This is a convenience function for creating a material with the first
layer set to #texture_handle and setting that material as the source with
cogl_set_source.

Note: There is no interaction between calls to cogl_set_source_color
and cogl_set_source_texture. If you need to blend a texture with a color then
you can create a simple material like this:
&lt;programlisting&gt;
material = cogl_material_new ();
cogl_material_set_color4ub (material, 0xff, 0x00, 0x00, 0x80);
cogl_material_set_layer (material, 0, tex_handle);
cogl_set_source (material);
&lt;/programlisting&gt;

Since 1.0</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="texture_handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">The Cogl texture you want as your source</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="shader_compile" c:identifier="cogl_shader_compile">
      <doc xml:whitespace="preserve">Compiles the shader, no return value, but the shader is now ready for
linking into a program.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">#CoglHandle for a shader.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="shader_get_info_log"
              c:identifier="cogl_shader_get_info_log">
      <doc xml:whitespace="preserve">Retrieves the information log for a coglobject, can be used in conjunction
with cogl_shader_get_parameteriv() to retrieve the compiler warnings/error
messages that caused a shader to not compile correctly, mainly useful for
debugging purposes.

g_free() to free it</doc>
      <return-value transfer-ownership="full">
        <doc xml:whitespace="preserve">a newly allocated string containing the info log. Use</doc>
        <type name="utf8" c:type="gchar*"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">#CoglHandle for a shader.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="shader_get_type" c:identifier="cogl_shader_get_type">
      <doc xml:whitespace="preserve">Retrieves the type of a shader #CoglHandle

or %COGL_SHADER_TYPE_FRAGMENT if the shader is a frament processor</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%COGL_SHADER_TYPE_VERTEX if the shader is a vertex processor</doc>
        <type name="ShaderType" c:type="CoglShaderType"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">#CoglHandle for a shader.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="shader_is_compiled" c:identifier="cogl_shader_is_compiled">
      <doc xml:whitespace="preserve">Retrieves whether a shader #CoglHandle has been compiled</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the shader object has sucessfully be compiled</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">#CoglHandle for a shader.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="shader_ref"
              c:identifier="cogl_shader_ref"
              introspectable="0">
      <doc xml:whitespace="preserve">Add an extra reference to a shader.</doc>
      <return-value>
        <doc xml:whitespace="preserve">@handle</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglHandle to a shader.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="shader_source" c:identifier="cogl_shader_source">
      <doc xml:whitespace="preserve">Replaces the current GLSL source associated with a shader with a new
one.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="shader" transfer-ownership="none">
          <doc xml:whitespace="preserve">#CoglHandle for a shader.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="source" transfer-ownership="none">
          <doc xml:whitespace="preserve">GLSL shader source.</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="shader_unref" c:identifier="cogl_shader_unref">
      <doc xml:whitespace="preserve">Removes a reference to a shader. If it was the last reference the
shader object will be destroyed.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglHandle to a shader.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="sqrti" c:identifier="cogl_sqrti" version="1.0">
      <doc xml:whitespace="preserve">Very fast fixed point implementation of square root for integers.

This function is at least 6x faster than clib sqrt() on x86, and (this is
not a typo!) about 500x faster on ARM without FPU. It's error is less than
5% for arguments smaller than %COGL_SQRTI_ARG_5_PERCENT and less than 10%
for narguments smaller than %COGL_SQRTI_ARG_10_PERCENT. The maximum
argument that can be passed to this function is %COGL_SQRTI_ARG_MAX.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">integer square root.</doc>
        <type name="gint" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">integer value</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_get_data" c:identifier="cogl_texture_get_data">
      <doc xml:whitespace="preserve">Copy the pixel data from a cogl texture to system memory.

is not valid.)</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the size of the texture data in bytes (or 0 if the texture</doc>
        <type name="gint" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a texture.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="format" transfer-ownership="none">
          <doc xml:whitespace="preserve">the #CoglPixelFormat to store the texture as.</doc>
          <type name="PixelFormat" c:type="CoglPixelFormat"/>
        </parameter>
        <parameter name="rowstride" transfer-ownership="none">
          <doc xml:whitespace="preserve">the rowstride of @data or retrieved from texture if none is specified.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="data" transfer-ownership="none">
          <doc xml:whitespace="preserve">memory location to write contents of buffer, or %NULL if we're only querying the data size through the return value.</doc>
          <type name="guint8" c:type="guchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_get_format" c:identifier="cogl_texture_get_format">
      <doc xml:whitespace="preserve">Query the #CoglPixelFormat of a cogl texture.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the #CoglPixelFormat of the GPU side texture.</doc>
        <type name="PixelFormat" c:type="CoglPixelFormat"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a texture.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_get_height" c:identifier="cogl_texture_get_height">
      <doc xml:whitespace="preserve">Query the height of a cogl texture.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the height of the GPU side texture in pixels:</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a texture.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_get_max_waste"
              c:identifier="cogl_texture_get_max_waste">
      <doc xml:whitespace="preserve">Query the maximum wasted (unused) pixels in one dimension of a GPU side
texture.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the maximum waste.</doc>
        <type name="gint" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a texture.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_get_rowstride"
              c:identifier="cogl_texture_get_rowstride">
      <doc xml:whitespace="preserve">Query the rowstride of a cogl texture.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the offset in bytes between each consequetive row of pixels.</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a texture.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_get_width" c:identifier="cogl_texture_get_width">
      <doc xml:whitespace="preserve">Query the width of a cogl texture.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the width of the GPU side texture in pixels:</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a texture.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_is_sliced" c:identifier="cogl_texture_is_sliced">
      <doc xml:whitespace="preserve">Query if a texture is sliced (stored as multiple GPU side tecture
objects).

is stored as a single GPU texture.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the texture is sliced, %FALSE if the texture</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle for a texture.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_new_from_bitmap"
              c:identifier="cogl_texture_new_from_bitmap"
              version="1.0"
              introspectable="0">
      <doc xml:whitespace="preserve">Creates a COGL texture from a CoglBitmap.

%COGL_INVALID_HANDLE on failure</doc>
      <return-value>
        <doc xml:whitespace="preserve">a #CoglHandle to the newly created texture or</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="bmp_handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglBitmap handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="flags" transfer-ownership="none">
          <doc xml:whitespace="preserve">Optional flags for the texture, or %COGL_TEXTURE_NONE</doc>
          <type name="TextureFlags" c:type="CoglTextureFlags"/>
        </parameter>
        <parameter name="internal_format" transfer-ownership="none">
          <doc xml:whitespace="preserve">the #CoglPixelFormat to use for the GPU storage of the texture</doc>
          <type name="PixelFormat" c:type="CoglPixelFormat"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_new_from_data"
              c:identifier="cogl_texture_new_from_data"
              version="0.8"
              introspectable="0">
      <doc xml:whitespace="preserve">Creates a new COGL texture based on data residing in memory.

%COGL_INVALID_HANDLE on failure</doc>
      <return-value>
        <doc xml:whitespace="preserve">a #CoglHandle to the newly created texture or</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="width" transfer-ownership="none">
          <doc xml:whitespace="preserve">width of texture in pixels</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <doc xml:whitespace="preserve">height of texture in pixels</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="flags" transfer-ownership="none">
          <doc xml:whitespace="preserve">Optional flags for the texture, or %COGL_TEXTURE_NONE</doc>
          <type name="TextureFlags" c:type="CoglTextureFlags"/>
        </parameter>
        <parameter name="format" transfer-ownership="none">
          <doc xml:whitespace="preserve">the #CoglPixelFormat the buffer is stored in in RAM</doc>
          <type name="PixelFormat" c:type="CoglPixelFormat"/>
        </parameter>
        <parameter name="internal_format" transfer-ownership="none">
          <doc xml:whitespace="preserve">the #CoglPixelFormat that will be used for storing the buffer on the GPU. If COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.</doc>
          <type name="PixelFormat" c:type="CoglPixelFormat"/>
        </parameter>
        <parameter name="rowstride" transfer-ownership="none">
          <doc xml:whitespace="preserve">the memory offset in bytes between the starts of scanlines in @data</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="data" transfer-ownership="none">
          <doc xml:whitespace="preserve">pointer the memory region where the source buffer resides</doc>
          <type name="guint8" c:type="guchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_new_from_file"
              c:identifier="cogl_texture_new_from_file"
              version="0.8"
              introspectable="0"
              throws="1">
      <doc xml:whitespace="preserve">Creates a COGL texture from an image file.

%COGL_INVALID_HANDLE on failure</doc>
      <return-value>
        <doc xml:whitespace="preserve">a #CoglHandle to the newly created texture or</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="filename" transfer-ownership="none">
          <doc xml:whitespace="preserve">the file to load</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
        <parameter name="flags" transfer-ownership="none">
          <doc xml:whitespace="preserve">Optional flags for the texture, or %COGL_TEXTURE_NONE</doc>
          <type name="TextureFlags" c:type="CoglTextureFlags"/>
        </parameter>
        <parameter name="internal_format" transfer-ownership="none">
          <doc xml:whitespace="preserve">the #CoglPixelFormat to use for the GPU storage of the texture. If COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.</doc>
          <type name="PixelFormat" c:type="CoglPixelFormat"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_new_with_size"
              c:identifier="cogl_texture_new_with_size"
              version="0.8"
              introspectable="0">
      <doc xml:whitespace="preserve">Creates a new COGL texture with the specified dimensions and pixel format.

%COGL_INVALID_HANDLE on failure</doc>
      <return-value>
        <doc xml:whitespace="preserve">a #CoglHandle to the newly created texture or</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="width" transfer-ownership="none">
          <doc xml:whitespace="preserve">width of texture in pixels.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <doc xml:whitespace="preserve">height of texture in pixels.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="flags" transfer-ownership="none">
          <doc xml:whitespace="preserve">Optional flags for the texture, or %COGL_TEXTURE_NONE</doc>
          <type name="TextureFlags" c:type="CoglTextureFlags"/>
        </parameter>
        <parameter name="internal_format" transfer-ownership="none">
          <doc xml:whitespace="preserve">the #CoglPixelFormat to use for the GPU storage of the texture.</doc>
          <type name="PixelFormat" c:type="CoglPixelFormat"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_ref"
              c:identifier="cogl_texture_ref"
              introspectable="0">
      <doc xml:whitespace="preserve">Increment the reference count for a cogl texture.</doc>
      <return-value>
        <doc xml:whitespace="preserve">the @handle.</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a @CoglHandle.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_set_region" c:identifier="cogl_texture_set_region">
      <doc xml:whitespace="preserve">Sets the pixels in a rectangular subregion of @handle from an in-memory
buffer containing pixel data.</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">%TRUE if the subregion upload was successful, otherwise %FALSE.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglHandle.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="src_x" transfer-ownership="none">
          <doc xml:whitespace="preserve">upper left coordinate to use from source data.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
        <parameter name="src_y" transfer-ownership="none">
          <doc xml:whitespace="preserve">upper left coordinate to use from source data.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
        <parameter name="dst_x" transfer-ownership="none">
          <doc xml:whitespace="preserve">upper left destination horizontal coordinate.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
        <parameter name="dst_y" transfer-ownership="none">
          <doc xml:whitespace="preserve">upper left destination vertical coordinate.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
        <parameter name="dst_width" transfer-ownership="none">
          <doc xml:whitespace="preserve">width of destination region to write.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="dst_height" transfer-ownership="none">
          <doc xml:whitespace="preserve">height of destination region to write.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="width" transfer-ownership="none">
          <doc xml:whitespace="preserve">width of source data buffer.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <doc xml:whitespace="preserve">height of source data buffer.</doc>
          <type name="gint" c:type="gint"/>
        </parameter>
        <parameter name="format" transfer-ownership="none">
          <doc xml:whitespace="preserve">the #CoglPixelFormat used in the source buffer.</doc>
          <type name="PixelFormat" c:type="CoglPixelFormat"/>
        </parameter>
        <parameter name="rowstride" transfer-ownership="none">
          <doc xml:whitespace="preserve">rowstride of source buffer (computed from width if none specified)</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="data" transfer-ownership="none">
          <doc xml:whitespace="preserve">the actual pixel data.</doc>
          <type name="guint8" c:type="guchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="texture_unref" c:identifier="cogl_texture_unref">
      <doc xml:whitespace="preserve">Deccrement the reference count for a cogl texture.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a @CoglHandle.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="translate" c:identifier="cogl_translate">
      <doc xml:whitespace="preserve">Multiplies the current model-view matrix by one that translates the
model along all three axes according to the given values.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="x" transfer-ownership="none">
          <doc xml:whitespace="preserve">Distance to translate along the x-axis</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="y" transfer-ownership="none">
          <doc xml:whitespace="preserve">Distance to translate along the y-axis</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
        <parameter name="z" transfer-ownership="none">
          <doc xml:whitespace="preserve">Distance to translate along the z-axis</doc>
          <type name="gfloat" c:type="float"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_add" c:identifier="cogl_vertex_buffer_add">
      <doc xml:whitespace="preserve">This function lets you add an attribute to a buffer. You either use one
of the built-in names such as "gl_Vertex", or "gl_MultiTexCoord0" to add
standard attributes, like positions, colors and normals or you can add
custom attributes for use in shaders.

The number of vertices declared when calling cogl_vertex_buffer_new()
determines how many attribute values will be read from the supplied pointer.

The data for your attribute isn't copied anywhere until you call
cogl_vertex_buffer_submit(), (or issue a draw call which automatically
submits pending attribute changes) so the supplied pointer must remain
valid until then. If you are updating an existing attribute (done by
re-adding it) then you still need to re-call cogl_vertex_buffer_submit() to
commit the changes to the GPU. (Be carefull to minimize the number of calls
to cogl_vertex_buffer_submit though.)

Note: If you are interleving attributes it is assumed that each interleaved
attribute starts no farther than +- stride bytes from the other attributes
it is interleved with. I.e. this is ok:
&lt;programlisting&gt;
|-0-0-0-0-0-0-0-0-0-0|
&lt;/programlisting&gt;
This is not ok:
&lt;programlisting&gt;
|- - - - -0-0-0-0-0-0 0 0 0 0|
&lt;/programlisting&gt;
(Though you can have multiple groups of interleved attributes)</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A vertex buffer handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="attribute_name" transfer-ownership="none">
          <doc xml:whitespace="preserve">The name of your attribute. It should be a valid GLSL variable name and standard attribute types must use one of following built-in names: (Note: they correspond to the built-in names of GLSL) &lt;itemizedlist&gt; &lt;listitem&gt;"gl_Color"&lt;/listitem&gt; &lt;listitem&gt;"gl_Normal"&lt;/listitem&gt; &lt;listitem&gt;"gl_MultiTexCoord0, gl_MultiTexCoord1, ..."&lt;/listitem&gt; &lt;listitem&gt;"gl_Vertex"&lt;/listitem&gt; &lt;/itemizedlist&gt; To support adding multiple variations of the same attribute the name can have a detail component, E.g. "gl_Color::active" or "gl_Color::inactive"</doc>
          <type name="utf8" c:type="char*"/>
        </parameter>
        <parameter name="n_components" transfer-ownership="none">
          <doc xml:whitespace="preserve">The number of components per attribute and must be 1,2,3 or 4</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="type" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglAttributeType specifying the data type of each component.</doc>
          <type name="AttributeType" c:type="CoglAttributeType"/>
        </parameter>
        <parameter name="normalized" transfer-ownership="none">
          <doc xml:whitespace="preserve">If GL_TRUE, this specifies that values stored in an integer format should be mapped into the range [-1.0, 1.0] or [0.0, 1.0] for unsigned values. If GL_FALSE they are converted to floats directly.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </parameter>
        <parameter name="stride" transfer-ownership="none">
          <doc xml:whitespace="preserve">This specifies the number of bytes from the start of one attribute value to the start of the next value (for the same attribute). So for example with a position interleved with color like this: XYRGBAXYRGBAXYRGBA, then if each letter represents a byte, the stride for both attributes is 6. The special value 0 means the values are stored sequentially in memory.</doc>
          <type name="guint16" c:type="guint16"/>
        </parameter>
        <parameter name="pointer" transfer-ownership="none">
          <doc xml:whitespace="preserve">This addresses the first attribute in the vertex array. (This must remain valid until you either call cogl_vertex_buffer_submit() or issue a draw call.)</doc>
          <type name="gpointer" c:type="void*"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_delete"
              c:identifier="cogl_vertex_buffer_delete">
      <doc xml:whitespace="preserve">This function deletes an attribute from a buffer. You will need to
call cogl_vertex_buffer_submit() or issue a draw call to commit this
change to the GPU.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A vertex buffer handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="attribute_name" transfer-ownership="none">
          <doc xml:whitespace="preserve">The name of a previously added attribute</doc>
          <type name="utf8" c:type="char*"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_disable"
              c:identifier="cogl_vertex_buffer_disable">
      <doc xml:whitespace="preserve">This function disables a previosuly added attribute.

Since it can be costly to add and remove new attributes to buffers; to make
individual buffers more reuseable it is possible to enable and disable
attributes before using a buffer for drawing.

You don't need to call cogl_vertex_buffer_submit() after using this function.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A vertex buffer handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="attribute_name" transfer-ownership="none">
          <doc xml:whitespace="preserve">The name of the attribute you want to disable</doc>
          <type name="utf8" c:type="char*"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_draw" c:identifier="cogl_vertex_buffer_draw">
      <doc xml:whitespace="preserve">This function lets you draw geometry using all or a subset of the
vertices in a vertex buffer.

Any un-submitted attribute changes are automatically submitted before
drawing.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A vertex buffer handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="mode" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglVerticesMode specifying how the vertices should be interpreted.</doc>
          <type name="VerticesMode" c:type="CoglVerticesMode"/>
        </parameter>
        <parameter name="first" transfer-ownership="none">
          <doc xml:whitespace="preserve">Specifies the index of the first vertex you want to draw with</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <doc xml:whitespace="preserve">Specifies the number of vertices you want to draw.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_draw_elements"
              c:identifier="cogl_vertex_buffer_draw_elements">
      <doc xml:whitespace="preserve">This function lets you use an array of indices to specify the vertices
within your vertex buffer that you want to draw. The indices themselves
are created by calling cogl_vertex_buffer_indices_new ()

Any un-submitted attribute changes are automatically submitted before
drawing.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A vertex buffer handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="mode" transfer-ownership="none">
          <doc xml:whitespace="preserve">A #CoglVerticesMode specifying how the vertices should be interpreted.</doc>
          <type name="VerticesMode" c:type="CoglVerticesMode"/>
        </parameter>
        <parameter name="indices" transfer-ownership="none">
          <doc xml:whitespace="preserve">A CoglHandle for a set of indices allocated via cogl_vertex_buffer_indices_new ()</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="min_index" transfer-ownership="none">
          <doc xml:whitespace="preserve">Specifies the minimum vertex index contained in indices</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="max_index" transfer-ownership="none">
          <doc xml:whitespace="preserve">Specifies the maximum vertex index contained in indices</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="indices_offset" transfer-ownership="none">
          <doc xml:whitespace="preserve">An offset into named indices. The offset marks the first index to use for drawing.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
        <parameter name="count" transfer-ownership="none">
          <doc xml:whitespace="preserve">Specifies the number of vertices you want to draw.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_enable"
              c:identifier="cogl_vertex_buffer_enable">
      <doc xml:whitespace="preserve">This function enables a previosuly disabled attribute.

Since it can be costly to add and remove new attributes to buffers; to make
individual buffers more reuseable it is possible to enable and disable
attributes before using a buffer for drawing.

You don't need to call cogl_vertex_buffer_submit() after using this function</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A vertex buffer handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
        <parameter name="attribute_name" transfer-ownership="none">
          <doc xml:whitespace="preserve">The name of the attribute you want to enable</doc>
          <type name="utf8" c:type="char*"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_get_n_vertices"
              c:identifier="cogl_vertex_buffer_get_n_vertices">
      <doc xml:whitespace="preserve">Retrieves the number of vertices that @handle represents</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">the number of vertices</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A vertex buffer handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_indices_get_for_quads"
              c:identifier="cogl_vertex_buffer_indices_get_for_quads"
              introspectable="0">
      <doc xml:whitespace="preserve">Creates a vertex buffer containing the indices needed to draw pairs
of triangles from a list of vertices grouped as quads. There will
be at least @n_indices entries in the buffer (but there may be
more).

The indices will follow this pattern:

0, 1, 2, 0, 2, 3, 4, 5, 6, 4, 6, 7 ... etc

For example, if you submit vertices for a quad like this:

|[
0        3
########
#      #
#      #
########
1        2
]|

Then you can request 6 indices to render two triangles like this:

|[
0           0        3
##          ########
# ##          ##   #
#   ##          ## #
########          ##
1        2           2
]|

owned by Cogl and should not be modified or unref'd.</doc>
      <return-value>
        <doc xml:whitespace="preserve">A %CoglHandle containing the indices. The handled is</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="n_indices" transfer-ownership="none">
          <doc xml:whitespace="preserve">the number of indices in the vertex buffer.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_indices_get_type"
              c:identifier="cogl_vertex_buffer_indices_get_type">
      <doc xml:whitespace="preserve">Queries back the data type used for the given indices</doc>
      <return-value transfer-ownership="none">
        <doc xml:whitespace="preserve">The CoglIndicesType used</doc>
        <type name="IndicesType" c:type="CoglIndicesType"/>
      </return-value>
      <parameters>
        <parameter name="indices" transfer-ownership="none">
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_indices_new"
              c:identifier="cogl_vertex_buffer_indices_new"
              introspectable="0">
      <doc xml:whitespace="preserve">Depending on how much geometry you are submitting it can be worthwhile
optimizing the number of redundant vertices you submit. Using an index
array allows you to reference vertices multiple times, for example
during triangle strips.

cogl_vertex_buffer_draw_elements().</doc>
      <return-value>
        <doc xml:whitespace="preserve">A CoglHandle for the indices which you can pass to</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="indices_type" transfer-ownership="none">
          <doc xml:whitespace="preserve">a #CoglIndicesType specifying the data type used for the indices.</doc>
          <type name="IndicesType" c:type="CoglIndicesType"/>
        </parameter>
        <parameter name="indices_array" transfer-ownership="none">
          <doc xml:whitespace="preserve">Specifies the address of your array of indices</doc>
          <type name="gpointer" c:type="void*"/>
        </parameter>
        <parameter name="indices_len" transfer-ownership="none">
          <doc xml:whitespace="preserve">The number of indices in indices_array</doc>
          <type name="gint" c:type="int"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_new"
              c:identifier="cogl_vertex_buffer_new"
              introspectable="0">
      <doc xml:whitespace="preserve">Creates a new vertex buffer that you can use to add attributes.</doc>
      <return-value>
        <doc xml:whitespace="preserve">a new #CoglHandle</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="n_vertices" transfer-ownership="none">
          <doc xml:whitespace="preserve">The number of vertices that your attributes will correspond to.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_ref"
              c:identifier="cogl_vertex_buffer_ref"
              introspectable="0">
      <doc xml:whitespace="preserve">Increment the reference count for a vertex buffer</doc>
      <return-value>
        <doc xml:whitespace="preserve">the @handle.</doc>
        <type name="Handle" c:type="CoglHandle"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a @CoglHandle.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_submit"
              c:identifier="cogl_vertex_buffer_submit">
      <doc xml:whitespace="preserve">This function submits all the user added attributes to the GPU; once
submitted the attributes can be used for drawing.

You should aim to minimize calls to this function since it implies
validating your data; it potentially incurs a transport cost (especially if
you are using GLX indirect rendering) and potentially a format conversion
cost if the GPU doesn't natively support any of the given attribute formats.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">A vertex buffer handle</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="vertex_buffer_unref"
              c:identifier="cogl_vertex_buffer_unref">
      <doc xml:whitespace="preserve">Decrement the reference count for a vertex buffer</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="handle" transfer-ownership="none">
          <doc xml:whitespace="preserve">a @CoglHandle.</doc>
          <type name="Handle" c:type="CoglHandle"/>
        </parameter>
      </parameters>
    </function>
    <function name="viewport" c:identifier="cogl_viewport" version="0.8.2">
      <doc xml:whitespace="preserve">Replace the current viewport with the given values.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="width" transfer-ownership="none">
          <doc xml:whitespace="preserve">Width of the viewport</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="height" transfer-ownership="none">
          <doc xml:whitespace="preserve">Height of the viewport</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>
