Expand description
Functions and types relating to meshes and shape drawing.
Performance
This module gives you very low level control over the geometry that you’re rendering - while that’s useful, it requires you to be a bit more careful about performance than other areas of Tetra’s API. Ensure that you read the docs for the various buffer/mesh types to understand their performance characteristics before using them.
Structs
- The radius of each corner of a rounded rectangle.
- A builder for creating primitive shape geometry, and associated buffers/meshes.
- Index data, stored in GPU memory.
- A 2D mesh that can be drawn to the screen.
- An individual piece of vertex data.
- Vertex data, stored in GPU memory.
Enums
- The expected usage of a GPU buffer.
- Ways of drawing a shape.
- The ordering of the vertices in a piece of geometry.