[][src]Crate a2d

Re-exports

pub extern crate winit;

Structs

A2DError
Color
Dimensions

Dimensions of a rectangle

Graphics2D
Instance

Instance data. Data passed to the GPU per sprite in a sprite batch.

Point
Rect

Rect struct to make it more convenient to construct sprite instances Assumes a2d coordinates (i.e. origin at upper-left corner)

SpriteBatch
SpriteMapDimensions

Describes the dimensions of how the underlying sprite sheet is divided for this sprite map

SpriteSheet

An image loaded in GPU memory ready to be used with a SpriteBatch

TextGrid

Convenience struct for drawing text on the screen. Currently, functionality is pretty limited: * only able to use the Courier font bundled with A2D, * only ASCII text is supported

Type Definitions

Result