#pragma once #include #include /*! \file vertexstructure.h \brief Provides types for setting up the structure of vertices in a vertex-buffer. */ #ifdef __cplusplus extern "C" { #endif typedef kinc_g4_vertex_data_t kinc_g5_vertex_data_t; // typedef kinc_g4_vertex_attribute_t kinc_g5_vertex_attribute_t; typedef kinc_g4_vertex_element_t kinc_g5_vertex_element_t; typedef kinc_g4_vertex_structure_t kinc_g5_vertex_structure_t; /// /// Initializes a vertex-structure. /// /// The structure to initialize /// static inline void kinc_g5_vertex_structure_init(kinc_g5_vertex_structure_t *structure) { kinc_g4_vertex_structure_init(structure); } /// /// Adds an element to a vertex-structure. /// /// The structure to add an element to /// The name to use for the new element /// The type of data to assign for the new element /// static inline void kinc_g5_vertex_structure_add(kinc_g5_vertex_structure_t *structure, const char *name, kinc_g5_vertex_data_t data) { kinc_g4_vertex_structure_add(structure, name, data); } #ifdef __cplusplus } #endif