[][src]Crate yagl

Structs

AppContext

A reference to an instance of this struct is passed to most methods on Game. This struct allows Game methods to be able to interact with yagl about App related things (e.g. requesting to exit)

Color
DeviceId

An ID that identifies an external device Used for uniquely identifying the device that provided a given input

Dimensions

Dimensions of a rectangle

Instance

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

Options
Point
Rect

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

RenderContext
SpriteBatch
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

Window

Enums

Axis

An axis on a gamepad

GamepadButton

A button on a gamepad

Key

A key on the keyboard

MouseButton

A button on a mouse

Traits

Game

Trait describing the behavior of a game.

Functions

run