diff options
author | sanine <sanine.not@pm.me> | 2023-02-11 19:46:23 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-02-11 19:46:23 -0600 |
commit | 6722ef01e34f75bde72ba29e3279c0d1df030593 (patch) | |
tree | 1cb389a5af3c0aa4709def8a76c0628342c8aa7c /include/kalmia.h | |
parent | 3b740d521a685fdc4f85d100447ff6d88c0b1d28 (diff) |
add materials and images processingyacc-xml
Diffstat (limited to 'include/kalmia.h')
-rw-r--r-- | include/kalmia.h | 63 |
1 files changed, 62 insertions, 1 deletions
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; }; |