Holder for a indexed mesh.
More...
|
| | Mesh (std::uint32_t vertexCount, std::uint32_t indexCount) |
| | Constructs Mesh with empty vertex and index buffer.
|
| |
| | Mesh (const char *asset) |
| | Constructs Mesh from an in memory char buffer.
|
| |
| | Mesh (const char *asset) |
| | Constructs UV Mesh from an in memory char buffer.
|
| |
| | Mesh (float *heights, uint32_t sizeX, uint32_t sizeZ, float spacing) |
| | Constructs heightmap Mesh from an in memory char buffer.
|
| |
|
|
std::uint32_t | vertexCount |
| |
|
std::uint32_t | indexCount |
| |
|
Buffer< VertexType > | verticies |
| |
|
Buffer< std::uint32_t > | indicies |
| |
template<typename VertexType>
class Crafter::Mesh< VertexType >
Holder for a indexed mesh.
- Template Parameters
-
| VertexType | The vertex type to use that is internally stored, this must match the type the glsl shader expects. |
◆ Mesh() [1/4]
template<typename VertexType>
| Crafter::Mesh< VertexType >::Mesh |
( |
std::uint32_t | vertexCount, |
|
|
std::uint32_t | indexCount ) |
|
inline |
Constructs Mesh with empty vertex and index buffer.
- Parameters
-
| vertexCount | count of the vertex buffer |
| vertexCount | count of the index buffer |
◆ Mesh() [2/4]
template<typename VertexType>
Constructs Mesh from an in memory char buffer.
- Parameters
-
| asset | pointer to the char buffer. |
◆ Mesh() [3/4]
template<typename VertexType>
Constructs UV Mesh from an in memory char buffer.
- Parameters
-
| asset | pointer to the char buffer. |
◆ Mesh() [4/4]
template<typename VertexType>
| Crafter::Mesh< VertexType >::Mesh |
( |
float * | heights, |
|
|
uint32_t | sizeX, |
|
|
uint32_t | sizeZ, |
|
|
float | spacing ) |
|
inline |
Constructs heightmap Mesh from an in memory char buffer.
- Parameters
-
| heights | pointer to heights. |
| sizeX | size in the X dimension. |
| sizeZ | size in the Y dimension. |
| spacing | spacing between the points . |
The documentation for this class was generated from the following file:
- src/module/Crafter.Graphics-Mesh.cppm