Expand description
The sprite prelude.
This includes the most common types in this crate, re-exported for your convenience.
Structs§
- Border
Rect - Defines the extents of the border of a rectangle.
- Sprite
- Describes a sprite to be rendered to a 2D camera
- Text2d
- The top-level 2D text component.
- Texture
Slice - Single texture slice, representing a texture rect to draw in a given area
- Texture
Slicer - Slices a texture using the 9-slicing technique. This allows to reuse an image at various sizes without needing to prepare multiple assets. The associated texture will be split into nine portions, so that on resize the different portions scale or tile in different ways to keep the texture in proportion.
Enums§
- Scaling
Mode - Represents various modes for proportional scaling of a texture.
- Slice
Scale Mode - Defines how a texture slice scales when resized
- Sprite
Image Mode - Controls how the image is altered when scaled.
Type Aliases§
- Text2d
Reader - 2d alias for
TextReader
. - Text2d
Writer - 2d alias for
TextWriter
.