From 6722ef01e34f75bde72ba29e3279c0d1df030593 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 11 Feb 2023 19:46:23 -0600 Subject: add materials and images processing --- include/kalmia.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/kalmia.h b/include/kalmia.h index 79fb004..7b56bd4 100644 --- a/include/kalmia.h +++ b/include/kalmia.h @@ -160,10 +160,71 @@ struct ka_library_geometries_t { }; -/******** kalmia_t ********/ +/**************** image types ****************/ + +struct ka_init_from_t { + char *ref; +}; + + +struct ka_image_t { + char *id; + char *sid; + char *name; + + struct ka_init_from_t init_from; +}; + + +struct ka_library_images_t { + char *id; + char *name; + + unsigned int image_count; + struct ka_image_t *image; +}; + + +/**************** effect types ****************/ + +struct ka_color_t { + char *sid; + ka_real_t rgba[4]; +}; + + +/**************** material types ****************/ + +struct ka_instance_effect_t { + char *sid; + char *name; + char *url; /* required */ +}; + + +struct ka_material_t { + char *id; + char *name; + + struct ka_instance_effect_t instance_effect; +}; + + +struct ka_library_materials_t { + char *id; + char *name; + + unsigned int material_count; + struct ka_material_t *material; +}; + + +/**************** kalmia_t ****************/ struct kalmia_t { struct ka_library_geometries_t *library_geometries; + struct ka_library_materials_t *library_materials; + struct ka_library_images_t *library_images; }; -- cgit v1.2.1