|
NSUNI/NSLAR Library a250670
|
Namespaces | |
| namespace | nnl::vertexde::fmt |
| This namespace contains constants and functions for defining the vertex format. | |
Functions | |
| std::vector< SVertex > | nnl::vertexde::Decode (BufferView vertex_buffer, u32 vertex_format, std::array< u16, 8 > bone_indices={0}) |
| Extracts vertex data from a buffer and converts it to a simple representation. | |
| Buffer | nnl::vertexde::Encode (const std::vector< SVertex > &vertices, u32 vertex_format, std::array< u16, 8 > bone_indices={0}) |
| Converts vertex data from a simple representation to a binary vertex buffer. | |
| std::vector< SVertex > nnl::vertexde::Decode | ( | BufferView | vertex_buffer, |
| u32 | vertex_format, | ||
| std::array< u16, 8 > | bone_indices = {0} ) |
Extracts vertex data from a buffer and converts it to a simple representation.
This function processes the provided vertex buffer according to the specified vertex format and extracts various vertex attributes from it.
| vertex_buffer | The buffer containing the vertex data. |
| vertex_format | The format of the vertex data in the buffer. |
| bone_indices | An array of bone indices associated with the vertex weights. |
| Buffer nnl::vertexde::Encode | ( | const std::vector< SVertex > & | vertices, |
| u32 | vertex_format, | ||
| std::array< u16, 8 > | bone_indices = {0} ) |
Converts vertex data from a simple representation to a binary vertex buffer.
This function converts the provided vector of SVertex structures into a binary buffer suitable for use by the GE.
| vertices | A vector of SVertex to convert. |
| vertex_format | The format of the vertex data, which determines how the attributes are encoded. |
| bone_indices | An array of bone indices associated with the vertex weights. |