gala/vapi/mutter-cogl-14.vapi
2024-01-12 16:03:36 -08:00

915 lines
37 KiB
Vala

/* mutter-cogl-14.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Cogl", gir_namespace = "Cogl", gir_version = "14", lower_case_cprefix = "cogl_")]
namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_bitmap_get_type ()")]
public class Bitmap : GLib.Object {
[CCode (has_construct_function = false)]
protected Bitmap ();
public Cogl.PixelFormat get_format ();
public int get_height ();
public int get_rowstride ();
public int get_width ();
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_buffer_get_type ()")]
public abstract class Buffer : GLib.Object {
[CCode (has_construct_function = false)]
protected Buffer ();
public uint get_size ();
public Cogl.BufferUpdateHint get_update_hint ();
public void* map (Cogl.BufferAccess access, Cogl.BufferMapHint hints);
public void* map_range (size_t offset, size_t size, Cogl.BufferAccess access, Cogl.BufferMapHint hints) throws GLib.Error;
public bool set_data (size_t offset, void* data, size_t size);
public void set_update_hint (Cogl.BufferUpdateHint hint);
public void unmap ();
[NoAccessorMethod]
public Cogl.Context context { construct; }
[NoAccessorMethod]
public Cogl.BufferBindTarget default_target { construct; }
[NoAccessorMethod]
public uint64 size { construct; }
public Cogl.BufferUpdateHint update_hint { set construct; }
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_context_get_type ()")]
public class Context : GLib.Object {
[CCode (has_construct_function = false)]
protected Context ();
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_foreach_feature")]
public void foreach_feature (Cogl.FeatureCallback callback);
public void free_timestamp_query (owned Cogl.TimestampQuery query);
public int64 get_gpu_time_ns ();
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_get_graphics_reset_status")]
public Cogl.GraphicsResetStatus get_graphics_reset_status ();
public unowned Cogl.Pipeline get_named_pipeline (Cogl.PipelineKey key);
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_has_feature")]
public bool has_feature (Cogl.FeatureID feature);
public bool is_hardware_accelerated ();
public void set_named_pipeline (Cogl.PipelineKey key, Cogl.Pipeline? pipeline);
public int64 timestamp_query_get_time_ns (Cogl.TimestampQuery query);
}
[CCode (cheader_filename = "cogl/cogl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cogl_frame_closure_get_type ()")]
[Compact]
public class FrameClosure {
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_frame_info_get_type ()")]
public class FrameInfo : GLib.Object {
[CCode (has_construct_function = false)]
protected FrameInfo ();
public int64 get_frame_counter ();
public bool get_is_symbolic ();
public int64 get_presentation_time_us ();
public float get_refresh_rate ();
public int64 get_rendering_duration_ns ();
public uint get_sequence ();
public int64 get_time_before_buffer_swap_us ();
public bool is_hw_clock ();
public bool is_vsync ();
public bool is_zero_copy ();
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_framebuffer_get_type ()")]
public abstract class Framebuffer : GLib.Object {
[CCode (has_construct_function = false)]
protected Framebuffer ();
public virtual bool allocate () throws GLib.Error;
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_blit_framebuffer")]
public bool blit (Cogl.Framebuffer dst, int src_x, int src_y, int dst_x, int dst_y, int width, int height) throws GLib.Error;
public void clear (ulong buffers, Cogl.Color color);
public void clear4f (ulong buffers, float red, float green, float blue, float alpha);
public void discard_buffers (ulong buffers);
public void draw_multitextured_rectangle (Cogl.Pipeline pipeline, float x_1, float y_1, float x_2, float y_2, [CCode (array_length = false)] float[] tex_coords, int tex_coords_len);
public void draw_rectangle (Cogl.Pipeline pipeline, float x_1, float y_1, float x_2, float y_2);
public void draw_rectangles (Cogl.Pipeline pipeline, [CCode (array_length = false)] float[] coordinates, uint n_rectangles);
public void draw_textured_rectangle (Cogl.Pipeline pipeline, float x_1, float y_1, float x_2, float y_2, float s_1, float t_1, float s_2, float t_2);
public void draw_textured_rectangles (Cogl.Pipeline pipeline, [CCode (array_length = false)] float[] coordinates, uint n_rectangles);
public static uint32 error_quark ();
public void finish ();
public void flush ();
public void frustum (float left, float right, float bottom, float top, float z_near, float z_far);
public int get_alpha_bits ();
public int get_blue_bits ();
public unowned Cogl.Context get_context ();
public int get_depth_bits ();
public bool get_depth_write_enabled ();
public bool get_dither_enabled ();
public int get_green_bits ();
public int get_height ();
public bool get_is_stereo ();
public Graphene.Matrix get_modelview_matrix ();
public Graphene.Matrix get_projection_matrix ();
public int get_red_bits ();
public int get_samples_per_pixel ();
public Cogl.StereoMode get_stereo_mode ();
public void get_viewport4fv ([CCode (array_length = false)] out unowned float viewport[4]);
public float get_viewport_height ();
public float get_viewport_width ();
public float get_viewport_x ();
public float get_viewport_y ();
public int get_width ();
public void identity_matrix ();
[NoWrapper]
public virtual bool is_y_flipped ();
public void orthographic (float x_1, float y_1, float x_2, float y_2, float near, float far);
public void perspective (float fov_y, float aspect, float z_near, float z_far);
public void pop_clip ();
public void pop_matrix ();
public void push_matrix ();
public void push_rectangle_clip (float x_1, float y_1, float x_2, float y_2);
public void push_region_clip (Mtk.Region region);
public bool read_pixels (int x, int y, int width, int height, Cogl.PixelFormat format, uint8 pixels);
public bool read_pixels_into_bitmap (int x, int y, Cogl.ReadPixelsFlags source, Cogl.Bitmap bitmap);
public void resolve_samples ();
public void resolve_samples_region (int x, int y, int width, int height);
public void rotate (float angle, float x, float y, float z);
public void rotate_euler (Graphene.Euler euler);
public void scale (float x, float y, float z);
public void set_depth_write_enabled (bool depth_write_enabled);
public void set_dither_enabled (bool dither_enabled);
public void set_modelview_matrix (Graphene.Matrix matrix);
public void set_projection_matrix (Graphene.Matrix matrix);
public void set_samples_per_pixel (int samples_per_pixel);
public void set_stereo_mode (Cogl.StereoMode stereo_mode);
public void set_viewport (float x, float y, float width, float height);
public void transform (Graphene.Matrix matrix);
public void translate (float x, float y, float z);
public Cogl.Context context { get; construct; }
[NoAccessorMethod]
public void* driver_config { get; construct; }
[NoAccessorMethod]
public int height { get; set construct; }
[NoAccessorMethod]
public int width { get; set construct; }
public signal void destroy ();
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Compact]
public class FramebufferDriverConfig {
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_offscreen_get_type ()")]
public class Offscreen : Cogl.Framebuffer {
[CCode (has_construct_function = false)]
protected Offscreen ();
[CCode (has_construct_function = false)]
public Offscreen.with_texture (Cogl.Texture texture);
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_onscreen_get_type ()")]
public class Onscreen : Cogl.Framebuffer {
[CCode (has_construct_function = false)]
protected Onscreen ();
public unowned Cogl.OnscreenDirtyClosure add_dirty_callback (owned Cogl.OnscreenDirtyCallback callback);
public unowned Cogl.FrameClosure add_frame_callback (owned Cogl.FrameCallback callback);
[NoWrapper]
public virtual void bind ();
public virtual int get_buffer_age ();
public int64 get_frame_counter ();
public void hide ();
public virtual void queue_damage_region ([CCode (array_length_cname = "n_rectangles", array_length_pos = 1.1, type = "const int*")] int[] rectangles);
public void remove_dirty_callback (Cogl.OnscreenDirtyClosure closure);
public void remove_frame_callback (Cogl.FrameClosure closure);
public void show ();
public void swap_buffers (Cogl.FrameInfo frame_info, void* user_data);
public virtual void swap_buffers_with_damage ([CCode (array_length_cname = "n_rectangles", array_length_pos = 1.5, type = "const int*")] int[] rectangles, Cogl.FrameInfo info);
public virtual void swap_region ([CCode (array_length_cname = "n_rectangles", array_length_pos = 1.5, type = "const int*")] int[] rectangles, Cogl.FrameInfo info);
}
[CCode (cheader_filename = "cogl/cogl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cogl_onscreen_dirty_closure_get_type ()")]
[Compact]
public class OnscreenDirtyClosure {
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_pipeline_get_type ()")]
public sealed class Pipeline : GLib.Object {
[CCode (has_construct_function = false)]
public Pipeline (Cogl.Context context);
public void add_layer_snippet (int layer, Cogl.Snippet snippet);
public void add_snippet (Cogl.Snippet snippet);
public Cogl.Pipeline copy ();
public void foreach_layer (Cogl.PipelineLayerCallback callback);
public Cogl.PipelineAlphaFunc get_alpha_test_function ();
public float get_alpha_test_reference ();
public Cogl.Color get_color ();
public Cogl.PipelineCullFaceMode get_cull_face_mode ();
public Cogl.Winding get_front_face_winding ();
public void get_layer_filters (int layer_index, out Cogl.PipelineFilter min_filter, out Cogl.PipelineFilter mag_filter);
public bool get_layer_point_sprite_coords_enabled (int layer_index);
public unowned Cogl.Texture get_layer_texture (int layer_index);
public Cogl.PipelineWrapMode get_layer_wrap_mode_s (int layer_index);
public Cogl.PipelineWrapMode get_layer_wrap_mode_t (int layer_index);
public int get_n_layers ();
public bool get_per_vertex_point_size ();
public float get_point_size ();
public int get_uniform_location (string uniform_name);
public unowned Cogl.Program get_user_program ();
public void remove_layer (int layer_index);
public void set_alpha_test_function (Cogl.PipelineAlphaFunc alpha_func, float alpha_reference);
public bool set_blend (string blend_string) throws GLib.Error;
public void set_blend_constant (Cogl.Color constant_color);
public void set_color (Cogl.Color color);
public void set_color4f (float red, float green, float blue, float alpha);
public void set_color4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
public void set_cull_face_mode (Cogl.PipelineCullFaceMode cull_face_mode);
public void set_front_face_winding (Cogl.Winding front_winding);
public bool set_layer_combine (int layer_index, string blend_string) throws GLib.Error;
public void set_layer_combine_constant (int layer_index, Cogl.Color constant);
public void set_layer_filters (int layer_index, Cogl.PipelineFilter min_filter, Cogl.PipelineFilter mag_filter);
public void set_layer_matrix (int layer_index, Graphene.Matrix matrix);
public void set_layer_max_mipmap_level (int layer, int max_level);
public void set_layer_null_texture (int layer_index);
public bool set_layer_point_sprite_coords_enabled (int layer_index, bool enable) throws GLib.Error;
public void set_layer_texture (int layer_index, Cogl.Texture texture);
public void set_layer_wrap_mode (int layer_index, Cogl.PipelineWrapMode mode);
public void set_layer_wrap_mode_s (int layer_index, Cogl.PipelineWrapMode mode);
public void set_layer_wrap_mode_t (int layer_index, Cogl.PipelineWrapMode mode);
public bool set_per_vertex_point_size (bool enable) throws GLib.Error;
public void set_point_size (float point_size);
public void set_uniform_1f (int uniform_location, float value);
public void set_uniform_1i (int uniform_location, int value);
public void set_uniform_float (int uniform_location, int n_components, int count, float value);
public void set_uniform_int (int uniform_location, int n_components, int count, int value);
public void set_uniform_matrix (int uniform_location, int dimensions, int count, bool transpose, float value);
public void set_user_program (Cogl.Program program);
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "G_TYPE_STRING")]
[Compact]
public class PipelineKey : string {
}
[CCode (cheader_filename = "cogl/cogl.h")]
public sealed class Primitive : GLib.Object {
[CCode (has_construct_function = false)]
public Primitive (Cogl.VerticesMode mode, int n_vertices, ...);
[Version (since = "1.10")]
public Cogl.Primitive copy ();
[Version (since = "1.16")]
public void draw (Cogl.Framebuffer framebuffer, Cogl.Pipeline pipeline);
public int get_first_vertex ();
public Cogl.VerticesMode get_mode ();
[Version (since = "1.8")]
public int get_n_vertices ();
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2C4[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p2t2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2T2[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p2t2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2T2C4[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p3 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p3c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3C4[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p3t2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3T2[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p3t2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3T2C4[] data);
public void set_first_vertex (int first_vertex);
public void set_mode (Cogl.VerticesMode mode);
[Version (since = "1.8")]
public void set_n_vertices (int n_vertices);
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_program_get_type ()")]
public class Program : GLib.Object {
[CCode (has_construct_function = false)]
protected Program ();
[Version (deprecated = true, deprecated_since = "1.16")]
public void attach_shader (Cogl.Shader shader);
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_create_program")]
[Version (deprecated = true, deprecated_since = "1.16")]
public static Cogl.Program create ();
[Version (deprecated = true, deprecated_since = "1.16")]
public int get_uniform_location (string uniform_name);
[Version (deprecated = true, deprecated_since = "1.16")]
public void link ();
[Version (deprecated = true, deprecated_since = "1.16")]
public void set_uniform_1f (int uniform_location, float value);
[Version (deprecated = true, deprecated_since = "1.16")]
public void set_uniform_1i (int uniform_location, int value);
[Version (deprecated = true, deprecated_since = "1.16")]
public void set_uniform_float (int uniform_location, int n_components, [CCode (array_length_cname = "count", array_length_pos = 2.5)] float[] value);
[Version (deprecated = true, deprecated_since = "1.16")]
public void set_uniform_int (int uniform_location, int n_components, [CCode (array_length_cname = "count", array_length_pos = 2.5)] int[] value);
[Version (deprecated = true, deprecated_since = "1.16")]
public void set_uniform_matrix (int uniform_location, int dimensions, bool transpose, [CCode (array_length_cname = "count", array_length_pos = 2.5)] float[] value);
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Compact]
public class Scanout {
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_shader_get_type ()")]
public class Shader : GLib.Object {
[CCode (has_construct_function = false)]
protected Shader ();
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_create_shader")]
[Version (deprecated = true, deprecated_since = "1.16")]
public static Cogl.Shader create (Cogl.ShaderType shader_type);
[Version (deprecated = true, deprecated_since = "1.16")]
public Cogl.ShaderType get_shader_type ();
[Version (deprecated = true, deprecated_since = "1.16")]
public void source (string source);
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_snippet_get_type ()")]
public class Snippet : GLib.Object {
[CCode (has_construct_function = false)]
public Snippet (Cogl.SnippetHook hook, string? declarations, string? post);
public unowned string get_declarations ();
public Cogl.SnippetHook get_hook ();
public unowned string get_post ();
public unowned string get_pre ();
public unowned string get_replace ();
public void set_declarations (string declarations);
public void set_post (string post);
public void set_pre (string pre);
public void set_replace (string replace);
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_texture_get_type ()")]
public abstract class Texture : GLib.Object {
[CCode (has_construct_function = false)]
protected Texture ();
public bool allocate () throws GLib.Error;
public Cogl.TextureComponents get_components ();
public int get_data (Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)] uint8[] data);
public bool get_gl_texture (out uint out_gl_handle, out uint out_gl_target);
public uint get_height ();
public int get_max_waste ();
public bool get_premultiplied ();
public uint get_width ();
public bool is_sliced ();
public void set_components (Cogl.TextureComponents components);
public bool set_data (Cogl.PixelFormat format, int rowstride, [CCode (array_length = false)] uint8[] data, int level) throws GLib.Error;
public void set_premultiplied (bool premultiplied);
public bool set_region (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint dst_height, int width, int height, Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)] uint8[] data);
public bool set_region_from_bitmap (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint dst_height, Cogl.Bitmap bitmap);
[NoAccessorMethod]
public Cogl.Context context { construct; }
[NoAccessorMethod]
public Cogl.PixelFormat format { construct; }
[NoAccessorMethod]
public int height { construct; }
[NoAccessorMethod]
public void* loader { construct; }
[NoAccessorMethod]
public int width { construct; }
}
[CCode (cheader_filename = "cogl/cogl.h", lower_case_csuffix = "texture_2d", type_id = "cogl_texture_2d_get_type ()")]
public sealed class Texture2D : Cogl.Texture {
[CCode (has_construct_function = false)]
protected Texture2D ();
public void egl_image_external_alloc_finish (void* user_data, GLib.DestroyNotify destroy);
public void egl_image_external_bind ();
[CCode (has_construct_function = false, type = "CoglTexture*")]
public Texture2D.from_bitmap (Cogl.Bitmap bitmap);
[CCode (has_construct_function = false, type = "CoglTexture*")]
public Texture2D.from_data (Cogl.Context ctx, int width, int height, Cogl.PixelFormat format, int rowstride, [CCode (array_length = false, type = "const uint8_t*")] uint8[] data) throws GLib.Error;
}
[CCode (cheader_filename = "cogl/cogl.h", lower_case_csuffix = "texture_2d_sliced", type_id = "cogl_texture_2d_sliced_get_type ()")]
public sealed class Texture2DSliced : Cogl.Texture {
[CCode (has_construct_function = false)]
protected Texture2DSliced ();
[CCode (has_construct_function = false, type = "CoglTexture*")]
public Texture2DSliced.from_bitmap (Cogl.Bitmap bmp, int max_waste);
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Compact]
public class TimestampQuery {
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Compact]
public class TraceContext {
}
[CCode (cheader_filename = "cogl/cogl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cogl_color_get_type ()")]
public struct Color {
[CCode (has_construct_function = false, type = "CoglColor*")]
public Color ();
public Cogl.Color? copy ();
public bool equal ([CCode (type = "void*")] Cogl.Color v2);
public void free ();
[CCode (cname = "cogl_color_init_from_4f")]
[Version (since = "1.4")]
public Color.from_4f (float red, float green, float blue, float alpha);
[CCode (cname = "cogl_color_init_from_4fv")]
[Version (since = "1.4")]
public Color.from_4fv (float color_array);
[CCode (cname = "cogl_color_init_from_4ub")]
[Version (since = "1.4")]
public Color.from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
[CCode (cname = "cogl_color_init_from_hsl")]
[Version (since = "1.16")]
public Color.from_hsl (float hue, float saturation, float luminance);
public float get_alpha ();
public uint8 get_alpha_byte ();
public float get_alpha_float ();
public float get_blue ();
public uint8 get_blue_byte ();
public float get_blue_float ();
public float get_green ();
public uint8 get_green_byte ();
public float get_green_float ();
public float get_red ();
public uint8 get_red_byte ();
public float get_red_float ();
public void init_from_4f (float red, float green, float blue, float alpha);
public void init_from_4fv (float color_array);
public void init_from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
public void init_from_hsl (float hue, float saturation, float luminance);
public void premultiply ();
public void set_alpha (float alpha);
public void set_alpha_byte (uint8 alpha);
public void set_alpha_float (float alpha);
public void set_blue (float blue);
public void set_blue_byte (uint8 blue);
public void set_blue_float (float blue);
public void set_green (float green);
public void set_green_byte (uint8 green);
public void set_green_float (float green);
public void set_red (float red);
public void set_red_byte (uint8 red);
public void set_red_float (float red);
public void to_hsl (out float hue, out float saturation, out float luminance);
public void unpremultiply ();
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
public struct OnscreenDirtyInfo {
public int x;
public int y;
public int width;
public int height;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
public struct TextureVertex {
public float x;
public float y;
public float z;
public float tx;
public float ty;
public Cogl.Color color;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
public struct TraceHead {
public uint64 begin_time;
public weak string name;
public weak string description;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP2 {
public float x;
public float y;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP2C4 {
public float x;
public float y;
public uint8 r;
public uint8 g;
public uint8 b;
public uint8 a;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP2T2 {
public float x;
public float y;
public float s;
public float t;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP2T2C4 {
public float x;
public float y;
public float s;
public float t;
public uint8 r;
public uint8 g;
public uint8 b;
public uint8 a;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP3 {
public float x;
public float y;
public float z;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP3C4 {
public float x;
public float y;
public float z;
public uint8 r;
public uint8 g;
public uint8 b;
public uint8 a;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP3T2 {
public float x;
public float y;
public float z;
public float s;
public float t;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP3T2C4 {
public float x;
public float y;
public float z;
public float s;
public float t;
public uint8 r;
public uint8 g;
public uint8 b;
public uint8 a;
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_ATTRIBUTE_TYPE_", has_type_id = false)]
public enum AttributeType {
BYTE,
UNSIGNED_BYTE,
SHORT,
UNSIGNED_SHORT,
FLOAT
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BUFFER_ACCESS_", type_id = "cogl_buffer_access_get_type ()")]
[Flags]
public enum BufferAccess {
READ,
WRITE,
READ_WRITE
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BUFFER_BIND_TARGET_", type_id = "cogl_buffer_bind_target_get_type ()")]
public enum BufferBindTarget {
PIXEL_PACK,
PIXEL_UNPACK,
ATTRIBUTE_BUFFER,
INDEX_BUFFER,
COUNT
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BUFFER_BIT_", has_type_id = false)]
[Flags]
public enum BufferBit {
COLOR,
DEPTH,
STENCIL
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BUFFER_ERROR_", type_id = "cogl_buffer_error_get_type ()")]
public enum BufferError {
MAP
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BUFFER_MAP_HINT_", type_id = "cogl_buffer_map_hint_get_type ()")]
[Flags]
public enum BufferMapHint {
DISCARD,
DISCARD_RANGE
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_", has_type_id = false)]
[Flags]
public enum BufferTarget {
WINDOW_BUFFER,
OFFSCREEN_BUFFER
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BUFFER_UPDATE_HINT_", type_id = "cogl_buffer_update_hint_get_type ()")]
public enum BufferUpdateHint {
STATIC,
DYNAMIC,
STREAM
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_DEPTH_TEST_FUNCTION_", has_type_id = false)]
public enum DepthTestFunction {
NEVER,
LESS,
EQUAL,
LEQUAL,
GREATER,
NOTEQUAL,
GEQUAL,
ALWAYS
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_EGL_IMAGE_FLAG_", has_type_id = false)]
[Flags]
public enum EglImageFlags {
NONE,
NO_GET_DATA
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_FEATURE_ID_", has_type_id = false)]
public enum FeatureID {
[CCode (cname = "COGL_FEATURE_ID_UNSIGNED_INT_INDICES")]
OGL_FEATURE_ID_UNSIGNED_INT_INDICES,
[CCode (cname = "COGL_FEATURE_ID_MAP_BUFFER_FOR_READ")]
OGL_FEATURE_ID_MAP_BUFFER_FOR_READ,
[CCode (cname = "COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE")]
OGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE,
[CCode (cname = "COGL_FEATURE_ID_FENCE")]
OGL_FEATURE_ID_FENCE,
[CCode (cname = "COGL_FEATURE_ID_TEXTURE_RG")]
OGL_FEATURE_ID_TEXTURE_RG,
[CCode (cname = "COGL_FEATURE_ID_TEXTURE_RGBA1010102")]
OGL_FEATURE_ID_TEXTURE_RGBA1010102,
[CCode (cname = "COGL_FEATURE_ID_TEXTURE_HALF_FLOAT")]
OGL_FEATURE_ID_TEXTURE_HALF_FLOAT,
[CCode (cname = "COGL_FEATURE_ID_TEXTURE_NORM16")]
OGL_FEATURE_ID_TEXTURE_NORM16,
[CCode (cname = "COGL_FEATURE_ID_BUFFER_AGE")]
OGL_FEATURE_ID_BUFFER_AGE,
[CCode (cname = "COGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL")]
OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL,
[CCode (cname = "COGL_FEATURE_ID_BLIT_FRAMEBUFFER")]
OGL_FEATURE_ID_BLIT_FRAMEBUFFER,
[CCode (cname = "COGL_FEATURE_ID_TIMESTAMP_QUERY")]
OGL_FEATURE_ID_TIMESTAMP_QUERY
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_FILTER_", has_type_id = false)]
public enum FilterReturn {
CONTINUE,
REMOVE
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_FRAME_EVENT_", has_type_id = false)]
public enum FrameEvent {
SYNC,
COMPLETE
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_GRAPHICS_RESET_STATUS_", has_type_id = false)]
public enum GraphicsResetStatus {
NO_ERROR,
GUILTY_CONTEXT_RESET,
INNOCENT_CONTEXT_RESET,
UNKNOWN_CONTEXT_RESET,
PURGED_CONTEXT_RESET
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_INDICES_TYPE_UNSIGNED_", has_type_id = false)]
public enum IndicesType {
BYTE,
SHORT,
INT
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIPELINE_ALPHA_FUNC_", has_type_id = false)]
public enum PipelineAlphaFunc {
NEVER,
LESS,
EQUAL,
LEQUAL,
GREATER,
NOTEQUAL,
GEQUAL,
ALWAYS
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIPELINE_CULL_FACE_MODE_", has_type_id = false)]
public enum PipelineCullFaceMode {
NONE,
FRONT,
BACK,
BOTH
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIPELINE_FILTER_", has_type_id = false)]
public enum PipelineFilter {
NEAREST,
LINEAR,
NEAREST_MIPMAP_NEAREST,
LINEAR_MIPMAP_NEAREST,
NEAREST_MIPMAP_LINEAR,
LINEAR_MIPMAP_LINEAR
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIPELINE_WRAP_MODE_", has_type_id = false)]
public enum PipelineWrapMode {
REPEAT,
MIRRORED_REPEAT,
CLAMP_TO_EDGE,
AUTOMATIC
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")]
public enum PixelFormat {
ANY,
A_8,
RGB_565,
RGBA_4444,
RGBA_5551,
YUV,
R_8,
RG_88,
RGB_888,
BGR_888,
RGBX_8888,
RGBA_8888,
BGRX_8888,
BGRA_8888,
XRGB_8888,
ARGB_8888,
XBGR_8888,
ABGR_8888,
RGBA_8888_PRE,
BGRA_8888_PRE,
ARGB_8888_PRE,
ABGR_8888_PRE,
RGBA_4444_PRE,
RGBA_5551_PRE,
RGBA_1010102,
BGRA_1010102,
XRGB_2101010,
ARGB_2101010,
XBGR_2101010,
ABGR_2101010,
RGBA_1010102_PRE,
BGRA_1010102_PRE,
ARGB_2101010_PRE,
ABGR_2101010_PRE,
RGBX_FP_16161616,
RGBA_FP_16161616,
BGRX_FP_16161616,
BGRA_FP_16161616,
XRGB_FP_16161616,
ARGB_FP_16161616,
XBGR_FP_16161616,
ABGR_FP_16161616,
RGBA_FP_16161616_PRE,
BGRA_FP_16161616_PRE,
ARGB_FP_16161616_PRE,
ABGR_FP_16161616_PRE,
RGBA_FP_32323232,
RGBA_FP_32323232_PRE,
R_16,
RG_1616,
RGBA_16161616,
RGBA_16161616_PRE,
DEPTH_16,
DEPTH_24_STENCIL_8;
public int get_bytes_per_pixel (int plane);
public int get_n_planes ();
public unowned string to_string ();
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_READ_PIXELS_COLOR_", has_type_id = false)]
[Flags]
public enum ReadPixelsFlags {
[CCode (cname = "COGL_READ_PIXELS_COLOR_BUFFER")]
READ_PIXELS_COLOR_BUFFER
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SHADER_TYPE_", has_type_id = false)]
public enum ShaderType {
VERTEX,
FRAGMENT
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SNIPPET_HOOK_", has_type_id = false)]
public enum SnippetHook {
VERTEX,
VERTEX_TRANSFORM,
VERTEX_GLOBALS,
POINT_SIZE,
FRAGMENT,
FRAGMENT_GLOBALS,
TEXTURE_COORD_TRANSFORM,
LAYER_FRAGMENT,
TEXTURE_LOOKUP
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_STEREO_", has_type_id = false)]
public enum StereoMode {
BOTH,
LEFT,
RIGHT
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_TEXTURE_COMPONENTS_", has_type_id = false)]
public enum TextureComponents {
A,
RG,
RGB,
RGBA,
DEPTH
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_VERTICES_MODE_", has_type_id = false)]
public enum VerticesMode {
POINTS,
LINES,
LINE_LOOP,
LINE_STRIP,
TRIANGLES,
TRIANGLE_STRIP,
TRIANGLE_FAN
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_WINDING_", has_type_id = false)]
public enum Winding {
CLOCKWISE,
COUNTER_CLOCKWISE
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_WINSYS_FEATURE_", has_type_id = false)]
public enum WinsysFeature {
VBLANK_COUNTER,
VBLANK_WAIT,
TEXTURE_FROM_PIXMAP,
SWAP_BUFFERS_EVENT,
SWAP_REGION,
SWAP_REGION_THROTTLE,
SWAP_REGION_SYNCHRONIZED,
BUFFER_AGE,
SYNC_AND_COMPLETE_EVENT,
N_FEATURES
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BITMAP_ERROR_", has_type_id = false)]
public errordomain BitmapError {
FAILED,
UNKNOWN_TYPE,
CORRUPT_IMAGE;
public static uint32 quark ();
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BLEND_STRING_ERROR_", has_type_id = false)]
public errordomain BlendStringError {
PARSE_ERROR,
ARGUMENT_PARSE_ERROR,
INVALID_ERROR,
GPU_UNSUPPORTED_ERROR;
[CCode (cheader_filename = "cogl/cogl.h")]
public static uint32 quark ();
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_FRAMEBUFFER_ERROR_", has_type_id = false)]
public errordomain FramebufferError {
[CCode (cname = "COGL_FRAMEBUFFER_ERROR_ALLOCATE")]
FRAMEBUFFER_ERROR_ALLOCATE
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_RENDERER_ERROR_", has_type_id = false)]
public errordomain RendererError {
XLIB_DISPLAY_OPEN,
BAD_CONSTRAINT
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SCANOUT_ERROR_", has_type_id = false)]
public errordomain ScanoutError {
[CCode (cname = "COGL_SCANOUT_ERROR_INHIBITED")]
SCANOUT_ERROR_INHIBITED;
public static GLib.Quark quark ();
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SYSTEM_ERROR_", has_type_id = false)]
public errordomain SystemError {
UNSUPPORTED,
NO_MEMORY
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_TEXTURE_ERROR_", has_type_id = false)]
public errordomain TextureError {
SIZE,
FORMAT,
BAD_PARAMETER,
TYPE;
public static uint32 quark ();
}
[CCode (cheader_filename = "cogl/cogl.h", instance_pos = 1.9)]
public delegate void FeatureCallback (Cogl.FeatureID feature);
[CCode (cheader_filename = "cogl/cogl.h", instance_pos = 3.9)]
public delegate void FrameCallback (Cogl.Onscreen onscreen, Cogl.FrameEvent event, Cogl.FrameInfo info);
[CCode (cheader_filename = "cogl/cogl.h", instance_pos = 2.9)]
public delegate void OnscreenDirtyCallback (Cogl.Onscreen onscreen, Cogl.OnscreenDirtyInfo info);
[CCode (cheader_filename = "cogl/cogl.h", instance_pos = 2.9)]
public delegate bool PipelineLayerCallback (Cogl.Pipeline pipeline, int layer_index);
[CCode (cheader_filename = "cogl/cogl.h", instance_pos = 1.9)]
public delegate bool Texture2DEGLImageExternalAlloc (Cogl.Texture2D tex_2d) throws GLib.Error;
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_AFIRST_BIT")]
public const int AFIRST_BIT;
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_A_BIT")]
public const int A_BIT;
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_BGR_BIT")]
public const int BGR_BIT;
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_DEPTH_BIT")]
public const int DEPTH_BIT;
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_PIXEL_FORMAT_MAX_PLANES")]
public const int PIXEL_FORMAT_MAX_PLANES;
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_PREMULT_BIT")]
public const int PREMULT_BIT;
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_STENCIL_BIT")]
public const int STENCIL_BIT;
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_TEXTURE_MAX_WASTE")]
public const int TEXTURE_MAX_WASTE;
[CCode (cheader_filename = "cogl/cogl.h")]
public static bool clutter_winsys_has_feature (Cogl.WinsysFeature feature);
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (replacement = "Color.init_from_hsl")]
public static void color_init_from_hsl (out Cogl.Color color, float hue, float saturation, float luminance);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void flush ();
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (replacement = "PixelFormat.get_bytes_per_pixel")]
public static int pixel_format_get_bytes_per_pixel (Cogl.PixelFormat format, int plane);
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (replacement = "PixelFormat.get_n_planes")]
public static int pixel_format_get_n_planes (Cogl.PixelFormat format);
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (replacement = "PixelFormat.to_string")]
public static unowned string pixel_format_to_string (Cogl.PixelFormat format);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_tracing_disabled_on_thread (GLib.MainContext main_context);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_tracing_enabled_on_thread (GLib.MainContext main_context, string group);
[CCode (cheader_filename = "cogl/cogl.h")]
public static bool start_tracing_with_fd (int fd) throws GLib.Error;
[CCode (cheader_filename = "cogl/cogl.h")]
public static bool start_tracing_with_path (string filename) throws GLib.Error;
[CCode (cheader_filename = "cogl/cogl.h")]
public static void stop_tracing ();
[CCode (cheader_filename = "cogl/cogl.h")]
public static void trace_describe (Cogl.TraceHead head, string description);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void trace_end (Cogl.TraceHead head);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void trace_mark (string name, string description);
}