Crate tcod_window [] [src]

This crate provides a TCOD back-end for the Piston game engine.

Example

The following example shows a quick example of the basic functionality of TcodWindow.

extern crate piston;
extern crate tcod_window;

use piston::window::{Size, WindowSettings};
use tcod_window::TcodWindow;

fn main() {
    let mut window = TcodWindow::new(
        WindowSettings::new(
            "My Application".to_owned(),
            Size {
                width: 100,
                height: 100,
            }
        )
    );
}

Structs

TcodWindow

A window implemented by a TCOD back-end.

Functions

tcod_map_key

Maps a TCOD key to a piston-input key.

tcod_map_mouse

Maps a TCOD mouse state change to a piston-input button.