Registry / other / piston-window

piston-window

JSON →
library0.147.0rscratesunverified

The official Piston Window for the Piston game engine.

# Cargo.toml [dependencies] piston_window = "0.147.0"
INSTALL
IMPORT
SIG · PISTON-WINDOW
P
piston-window
otherrustv0.147.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PistonWindow
use piston_window::PistonWindow;

Creates a window and runs the event loop.

use piston_window::*; fn main() { let mut window: PistonWindow = WindowSettings::new("Hello Piston!", [640, 480]) .exit_on_esc(true) .build() .unwrap(); while let Some(event) = window.next() { window.draw_2d(&event, |_c, g, _d| { clear([1.0; 4], g); }); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.147.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
piston-window — cargo add piston-window · libregistry