Crate ggez [] [src]

Reexports

pub use game::Game;

Modules

audio

Provides an interface to output sound to the user's speakers.

conf

The conf module contains functions for loading and saving game configurations.

event

Currently only contains types for keyboard keycodes and modifier keys.

filesystem

Provides an interface to the user's filesystem.

game

This module contains traits and structs to actually run your game mainloop and handle top-level state.

graphics

The graphics module performs the actual drawing of images, text, and other objects with the Drawable trait. It also handles basic loading of images and text.

timer

Timing and measurement functions.

Structs

Context

A Context is an object that holds on to global resources. It basically tracks hardware state such as the screen, audio system, timers, and so on. Generally this type is not thread- safe and only one Context can exist at a time. Trying to create another one will fail. In normal usage you don't have to worry about this because it gets created and managed by the Game object, and is handed to your GameState for use in drawing and such.

Enums

GameError

An enum containing all kinds of game engine error.

Type Definitions

GameResult

A convenient result type consisting of a return type and a GameError