From 1b4564c02380d10f7f8630d73441e7f9aa83c812 Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 3 Feb 2023 23:01:31 -0600 Subject: begin implementing kai_read_float_array() --- include/kalmia.h | 61 +++----------------------------------------------------- 1 file changed, 3 insertions(+), 58 deletions(-) (limited to 'include') diff --git a/include/kalmia.h b/include/kalmia.h index 524072b..bab1b34 100644 --- a/include/kalmia.h +++ b/include/kalmia.h @@ -66,66 +66,11 @@ typedef float ka_real_t; /**************** geometry types ****************/ struct ka_float_array_t { + unsigned int count; /* required */ char *id; - size_t count; - ka_real_t *data; + unsigned int digits; /* default 6 */ + int magnitude; /* default 38 */ }; -struct ka_param_t { - char *name; - char *type; -}; - - -struct ka_accessor_t { - size_t count; - size_t offset; - char *source; - size_t stride; - - struct ka_param_t *param; - size_t param_count; -}; - - -struct ka_technique_common_t { - struct ka_accessor_t accessor; -}; - - -struct ka_source_t { - char *id; - struct ka_float_array_t float_array; - struct ka_technique_common_t technique_common; -}; - - -struct ka_vertices_t { -}; - - -struct ka_triangles_t { -}; - - -struct ka_mesh_t { - struct ka_source_t *source; - size_t source_count; - - struct ka_vertices_t vertices; - - struct ka_triangles_t *triangles; - size_t triangles_count; -}; - - -struct ka_geometry_t { - struct ka_mesh_t mesh; -}; - - -typedef ka_real_t ka_matrix_t[16]; - - #endif -- cgit v1.2.1