Expand description
pite-render: Renderer2D trait. wgpu is the only impl;
the viewport talks to the trait so batching/3D later doesn’t touch
tree or editor code.
Re-exports§
pub use atlas::Atlas;pub use atlas::AtlasFrame;
Modules§
- atlas
- Sprite-sheet atlases: frame metadata from a JSON sidecar plus the UV math the sprite pipeline needs.
- text
Structs§
Traits§
Functions§
- fit_
scale - Uniform “contain” scale that fits
designinsideactualkeeping aspect: the game renders the design resolution throughzoom * fit_scaleso content grows and shrinks with the window instead of showing more world. Zero sizes fall back to 1.0 (a minimized window must not divide). - screen_
to_ ndc - screen_
to_ world - world_
to_ screen