Expand description
Graphics subsystem: wgpu init, 2D sprite batcher, primitives, text, tilemap, painter API.
Re-exports§
Modules§
- transform
- Minimal column-major 4x4 matrix helpers for building 3D model transforms.
Structs§
- Camera2D
- 2D orthographic camera. Default coordinate system: top-left origin, pixels.
- Camera3D
- Perspective camera. Set
Camera3D::eye/Camera3D::targetto move it. - Circle
Instance - Frame
- Graphics
- MeshId
- Handle to a mesh uploaded via
crate::Graphics::create_mesh. - Mesh
Instance - One instance of a mesh: a column-major model matrix and a tint color.
- Mesh
Vertex - One mesh vertex: position and normal, both in model space.
- Painter
- Sprite
Instance - Texture
- Texture
Id - Tilemap
- Grid tilemap backed by an atlas.
tilesindexes into the atlas left-to-right, top-to-bottom; index0is treated as empty and skipped.
Enums§
Traits§
- Camera
- A camera with a
view_projmatrix, implemented by bothcrate::Camera2DandCamera3Dso a pipeline can be fed by either.