diff --git a/src/gmio_amf/amf_document.h b/src/gmio_amf/amf_document.h index 5325cc9..0ac384b 100644 --- a/src/gmio_amf/amf_document.h +++ b/src/gmio_amf/amf_document.h @@ -263,6 +263,28 @@ struct gmio_amf_document { uint32_t element_index, void* ptr_element); + /*! Optional function that retrieves the i-th metadata assigned to a + * document sub-element + * + * \p element is the type of the sub-element of interest.\n + * \p element_index is the index of the sub-element within the AMF + * document.\n + * The domain of this index depends on \p element : + * Element type | Domain of index | gmio type + * --------------|---------------------------------------|---------------- + * MATERIAL | [0 .. material_count[ | gmio_amf_material + * OBJECT | [0 .. object_count[ | gmio_amf_object + * CONSTELLATION | [0 .. constellation_count[ | gmio_amf_constellation + * + * Function not required(can be set to \c NULL) if there is no metadata in + * the document */ + void (*func_get_document_element_metadata)( + const void* cookie, + enum gmio_amf_document_element element, + uint32_t element_index, + uint32_t metadata_index, + struct gmio_amf_metadata* ptr_metadata); + /*! Function that retrieves the i-th \c mesh within an \c object element */ void (*func_get_object_mesh)( const void* cookie, @@ -286,6 +308,17 @@ struct gmio_amf_document { const struct gmio_amf_object_mesh_element_index* element_index, void* ptr_element); + /*! Optional function that retrieves the i-th metadata attached to a mesh + * element(only vertex or volume) + * + * Function not required(can be set to \c NULL) if there is no metadata + * for all mesh elements */ + void (*func_get_object_mesh_element_metadata)( + const void* cookie, + const struct gmio_amf_object_mesh_element_index* mesh_element_index, + uint32_t metadata_index, + struct gmio_amf_metadata* ptr_metadata); + /*! Function that retrieves the i-th \c triangle within a mesh \c volume */ void (*func_get_object_mesh_volume_triangle)( const void* cookie, @@ -314,41 +347,6 @@ struct gmio_amf_document { uint32_t constellation_index, uint32_t instance_index, struct gmio_amf_instance* ptr_instance); - - /* Optional function pointers to retrieve metadata */ - - /*! Optional function that retrieves the i-th metadata assigned to a - * document sub-element - * - * \p element is the type of the sub-element of interest.\n - * \p element_index is the index of the sub-element within the AMF - * document.\n - * The domain of this index depends on \p element : - * Element type | Domain of index | gmio type - * --------------|---------------------------------------|---------------- - * MATERIAL | [0 .. material_count[ | gmio_amf_material - * OBJECT | [0 .. object_count[ | gmio_amf_object - * CONSTELLATION | [0 .. constellation_count[ | gmio_amf_constellation - * - * Function not required(can be set to \c NULL) if there is no metadata in - * the document */ - void (*func_get_document_element_metadata)( - const void* cookie, - enum gmio_amf_document_element element, - uint32_t element_index, - uint32_t metadata_index, - struct gmio_amf_metadata* ptr_metadata); - - /*! Optional function that retrieves the i-th metadata attached to a mesh - * element(only vertex or volume) - * - * Function not required(can be set to \c NULL) if there is no metadata - * for all mesh elements */ - void (*func_get_object_mesh_element_metadata)( - const void* cookie, - const struct gmio_amf_object_mesh_element_index* mesh_element_index, - uint32_t metadata_index, - struct gmio_amf_metadata* ptr_metadata); }; /*! @} */ diff --git a/src/gmio_amf/amf_global.h b/src/gmio_amf/amf_global.h index a0882ac..d326ee3 100644 --- a/src/gmio_amf/amf_global.h +++ b/src/gmio_amf/amf_global.h @@ -52,13 +52,8 @@ * gmio_amf_write_options * * - * - * \addtogroup gmio_amf - * @{ */ #pragma once #include "../gmio_core/global.h" - -/*! @} */ diff --git a/src/gmio_stl/stl_global.h b/src/gmio_stl/stl_global.h index 8dda2aa..5cff779 100644 --- a/src/gmio_stl/stl_global.h +++ b/src/gmio_stl/stl_global.h @@ -100,13 +100,8 @@ * gmio_stl_triangle * * - * - * \addtogroup gmio_stl - * @{ */ #pragma once #include "../gmio_core/global.h" - -/*! @} */ diff --git a/src/gmio_support/support_global.h b/src/gmio_support/support_global.h index 18a3e80..1649449 100644 --- a/src/gmio_support/support_global.h +++ b/src/gmio_support/support_global.h @@ -99,8 +99,6 @@ * All \c gmio_support source files are copied with install target (ie by doing * (n)make install) to PREFIX/src/gmio_support * - * \addtogroup gmio_support - * @{ */ /* @@ -125,5 +123,3 @@ #pragma once #include "../gmio_core/global.h" - -/*! @} */