Skip to main content

Crate game_toolkit_gfx

Crate game_toolkit_gfx 

Source
Expand description

Graphics subsystem: wgpu init, 2D sprite batcher, primitives, text, tilemap, painter API.

Re-exports§

pub use transform::Mat4;
pub use wgpu;

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::target to move it.
CircleInstance
Frame
Graphics
MeshId
Handle to a mesh uploaded via crate::Graphics::create_mesh.
MeshInstance
One instance of a mesh: a column-major model matrix and a tint color.
MeshVertex
One mesh vertex: position and normal, both in model space.
Painter
SpriteInstance
Texture
TextureId
Tilemap
Grid tilemap backed by an atlas. tiles indexes into the atlas left-to-right, top-to-bottom; index 0 is treated as empty and skipped.

Enums§

BlendMode

Traits§

Camera
A camera with a view_proj matrix, implemented by both crate::Camera2D and Camera3D so a pipeline can be fed by either.