Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type !'a result = ('a, [ `Msg of string ]) Result.result
val import_memory :
('a, 'b, 'c) Bigarray.Array1.t ->
int ->
string ->
raw_scene result
val release_scene : raw_scene -> unit
val postprocess_scene : raw_scene -> int -> unit
type mesh = {
mesh_type : primitive_type;
mesh_vertices : vec3 array;
mesh_normals : vec3 array;
mesh_tangents : vec3 array;
mesh_bitangents : vec3 array;
mesh_colors : color4 array array;
mesh_texture_coords : vec3 array array;
mesh_uv_components : int array;
mesh_faces : face array;
mesh_bones : bone array;
mesh_name : string;
mesh_animations : anim_mesh array;
}
type material_property = {
prop_key : string;
prop_semantic : int;
prop_index : int;
prop_type : property_type_info;
prop_data : string;
}
type material = material_property array
type buffer =
(int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
type light = {
light_name : string;
light_source_type : light_source_type;
light_position : vec3;
light_direction : vec3;
light_attenuation_constant : float;
light_attenuation_linear : float;
light_attenuation_quadratic : float;
light_color_diffuse : color3;
light_color_specular : color3;
light_color_ambient : color3;
light_angle_inner_cone : float;
light_angle_outer_cone : float;
}