mirror of
https://github.com/elementary/gala.git
synced 2024-10-26 16:01:57 +03:00
cogl-2: Add custom.vala and metadata files
This commit is contained in:
parent
442b7ef310
commit
f1ed6dcafa
79
vapi/Cogl-2-custom.vala
Normal file
79
vapi/Cogl-2-custom.vala
Normal file
@ -0,0 +1,79 @@
|
||||
namespace Cogl {
|
||||
[BooleanType]
|
||||
[CCode (cheader_filename = "cogl/cogl.h")]
|
||||
[SimpleType]
|
||||
public struct Bool : bool {
|
||||
}
|
||||
|
||||
public struct Color {
|
||||
[Version (since = "1.4")]
|
||||
[CCode (cname="cogl_color_init_from_4f")]
|
||||
public Color.from_4f (float red, float green, float blue, float alpha);
|
||||
[Version (since = "1.4")]
|
||||
[CCode (cname="cogl_color_init_from_4fv")]
|
||||
public Color.from_4fv (float color_array);
|
||||
[Version (since = "1.4")]
|
||||
[CCode (cname="cogl_color_init_from_4ub")]
|
||||
public Color.from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
|
||||
[Version (since = "1.16")]
|
||||
[CCode (cname="cogl_color_init_from_hsl")]
|
||||
public Color.from_hsl (float hue, float saturation, float luminance);
|
||||
}
|
||||
|
||||
[Compact]
|
||||
public class Bitmap : Cogl.Handle {
|
||||
}
|
||||
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_quaternion_get_gtype ()", copy_function = "cogl_quaternion_copy", free_function = "cogl_quaternion_free")]
|
||||
[Compact]
|
||||
public class Quaternion {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_offscreen_get_gtype ()", ref_function = "cogl_offscreen_ref", unref_function = "cogl_offscreen_unref")]
|
||||
public class Offscreen : Cogl.Handle {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_vertex_buffer_ref", unref_function = "cogl_vertex_buffer_unref")]
|
||||
public class VertexBuffer : Cogl.Handle {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_shader_ref", unref_function = "cogl_shader_unref")]
|
||||
public class Shader : Cogl.Handle {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_program_ref", unref_function = "cogl_program_unref")]
|
||||
public class Program : Cogl.Handle {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_handle_ref", unref_function = "cogl_handle_unref")]
|
||||
public class Handle {
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_bitmap")]
|
||||
[Version (since = "1.0")]
|
||||
public Cogl.Bool is_bitmap ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_material")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16")]
|
||||
public Cogl.Bool is_material ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_offscreen")]
|
||||
public Cogl.Bool is_offscreen ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_program")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16")]
|
||||
public Cogl.Bool is_program (Cogl.Handle handle);
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_shader")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16")]
|
||||
public Cogl.Bool is_shader ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_texture")]
|
||||
public Cogl.Bool is_texture ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_vertex_buffer")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16", since = "1.0")]
|
||||
public Cogl.Bool is_vertex_buffer ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_vertex_buffer_indices")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16", since = "1.4")]
|
||||
public Cogl.Bool is_vertex_buffer_indices ();
|
||||
}
|
||||
|
||||
}
|
102
vapi/Cogl-2.metadata
Normal file
102
vapi/Cogl-2.metadata
Normal file
@ -0,0 +1,102 @@
|
||||
Color struct
|
||||
Bool skip
|
||||
Quaternion skip=false
|
||||
|
||||
Material base_type="Cogl.Handle"
|
||||
MaterialLayer base_type="Cogl.Handle"
|
||||
|
||||
_ColorSizeCheck skip
|
||||
_MatrixSizeCheck skip
|
||||
_TextureVertexSizeCheck skip
|
||||
|
||||
Offscreen.ref skip
|
||||
Offscreen.unref skip
|
||||
|
||||
Color
|
||||
.init_* skip
|
||||
color_init_from_hsl skip
|
||||
color_equal.v1 type="Cogl.Color"
|
||||
color_equal.v2 type="Cogl.Color"
|
||||
color_equal symbol_type=method
|
||||
|
||||
texture_new_* name="texture_new_(.+)" parent="Cogl.Texture"
|
||||
Texture
|
||||
.get_data.data type="uint8[]"
|
||||
.new_from_data.data type="uint8[]"
|
||||
.set_data.data type="uint8[]"
|
||||
.set_region.data type="uint8[]"
|
||||
|
||||
Matrix
|
||||
.transform_points.points_in type="uint8[]"
|
||||
.transform_points.stride_out out
|
||||
.transform_points.points_out out type="uint8[]"
|
||||
.project_points.points_in type="uint8[]"
|
||||
.project_points.stride_out out
|
||||
.project_points.points_out out type="uint8[]"
|
||||
|
||||
matrix_equal.v1 type="Cogl.Matrix"
|
||||
matrix_equal.v2 type="Cogl.Matrix"
|
||||
matrix_equal symbol_type=method
|
||||
|
||||
polygon.vertices array array_length_idx=1
|
||||
|
||||
vertex_buffer_* name="vertex_buffer_(.+)" parent="Cogl.VertexBuffer"
|
||||
//vertex_buffer_* symbol_type="method" instance_idx=0
|
||||
vertex_buffer_add symbol_type="method" instance_idx=0
|
||||
vertex_buffer_delete symbol_type="method" instance_idx=0
|
||||
vertex_buffer_disable symbol_type="method" instance_idx=0
|
||||
vertex_buffer_draw symbol_type="method" instance_idx=0
|
||||
vertex_buffer_draw_elements symbol_type="method" instance_idx=0
|
||||
vertex_buffer_enable symbol_type="method" instance_idx=0
|
||||
vertex_buffer_get_n_vertices symbol_type="method" instance_idx=0
|
||||
vertex_buffer_indices_get_type symbol_type="method" instance_idx=0
|
||||
vertex_buffer_submit symbol_type="method" instance_idx=0
|
||||
vertex_buffer_unref skip
|
||||
vertex_buffer_ref skip
|
||||
|
||||
shader_* name="shader_(.+)" parent="Cogl.Shader"
|
||||
shader_* symbol_type="method" instance_idx=0
|
||||
shader_unref skip
|
||||
shader_ref skip
|
||||
|
||||
program_* name="program_(.+)" parent="Cogl.Program"
|
||||
program_attach_shader symbol_type="method" instance_idx=0
|
||||
program_get_uniform_location symbol_type="method" instance_idx=0
|
||||
program_link symbol_type="method" instance_idx=0
|
||||
program_set_uniform_1f symbol_type="method" instance_idx=0
|
||||
program_set_uniform_1i symbol_type="method" instance_idx=0
|
||||
program_set_uniform_float symbol_type="method" instance_idx=0
|
||||
program_set_uniform_int symbol_type="method" instance_idx=0
|
||||
program_set_uniform_matrix symbol_type="method" instance_idx=0
|
||||
program_use symbol_type="method" instance_idx=0
|
||||
|
||||
program_unref skip
|
||||
program_ref skip
|
||||
|
||||
is_bitmap parent="Cogl.Handle"
|
||||
is_material parent="Cogl.Handle"
|
||||
is_offscreen parent="Cogl.Handle"
|
||||
is_program parent="Cogl.Handle"
|
||||
is_shader parent="Cogl.Handle"
|
||||
is_texture parent="Cogl.Handle"
|
||||
is_vertex_buffer parent="Cogl.Handle"
|
||||
is_vertex_buffer_indices parent="Cogl.Handle"
|
||||
|
||||
create_program type="unowned Cogl.Program" name="create" parent="Cogl.Program"
|
||||
create_shader type="unowned Cogl.Shader" name="create" parent="Cogl.Shader"
|
||||
|
||||
get_source type="unowned Cogl.Material"
|
||||
push_source.material type="Cogl.Material"
|
||||
set_source.material type="Cogl.Material"
|
||||
|
||||
Bitmap.error_quark parent="Cogl.BitmapError" name="quark"
|
||||
Texture.error_quark parent="Cogl.TextureError" name="quark"
|
||||
texture_error_quark skip
|
||||
|
||||
BitmapError errordomain
|
||||
BlendStringError errordomain
|
||||
RendererError errordomain
|
||||
SystemError errordomain
|
||||
TextureError errordomain
|
||||
|
||||
FuncPtr skip
|
Loading…
Reference in New Issue
Block a user