Crate adi[][src]

Create platform-agnostic apps and video games (similar to SDL).

Macros

models

Macro to load models from files for the window.

sprites

Macro to create multiple sprites in an array.

sprites_fog

Macro to create multiple fog-affected sprites in an array.

sprites_gui

Macro to create multiple non-camera affected sprites in an array.

textures

Macro to load textures from files for the window.

Structs

Audio

A sound or music.

Clock

Clock represents the state of a Real-Time-Clock (RTC). You can use it to make animations, time operations, or determine the date and time (TODO).

Graphic

A graphic (image)

GraphicBuilder

Builder for Graphic

Gui

A Graphical User Interface

Mat4

Single-precision 2x2 column major matrix.

Model

A collection of indices and vertices

ModelBuilder

The builder for Model.

Sprite

Sprite represents anything that is rendered onto the screen.

Text

Some text.

Texture

A reference to an image in GPU memory.

Timer

Timer represents a High Precision Event Timer (HPET) or equivalent device. It is used for precise sleeping.

Transform

A transformation matrix.

Window

Window represents a connection to a display that can also recieve input.

WindowBuilder

A builder for Window.

Enums

GraphicDecodeErr

The errors that can be returned if decode() fails when loading graphics.

Input

Input to the window, that's put into the input queue, when an event has occurred.

Widget

A GUI Widget

Traits

Pulse

Call these functions on the return value of Clock::since(). Use rate_spr to specify how many seconds it takes to cycle through the animation.