diff options
author | sanine <sanine.not@pm.me> | 2023-02-03 23:01:31 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-02-03 23:01:31 -0600 |
commit | 1b4564c02380d10f7f8630d73441e7f9aa83c812 (patch) | |
tree | da0f9294e1fc7c637547629faab4b45ed3e3494c /include | |
parent | ea512c3b1d2d85ff76aa7d4979c73dd7f1217757 (diff) |
begin implementing kai_read_float_array()
Diffstat (limited to 'include')
-rw-r--r-- | include/kalmia.h | 61 |
1 files changed, 3 insertions, 58 deletions
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 |