Registry / other / pistoncore-window

pistoncore-window

JSON →
library1.0.0rscratesunverified

A library for window abstraction in the Piston game engine.

# Cargo.toml [dependencies] pistoncore-window = "1.0.0"
INSTALL
IMPORT
SIG · PISTONCORE-WINDOW
P
pistoncore-window
otherrustv1.0.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.

Window
use pistoncore_window::Window;

Creates a window and runs the event loop using Piston's window abstraction.

use pistoncore_window::Window; use pistoncore_window::WindowSettings; fn main() { let mut window: Window = WindowSettings::new("Hello", [640, 480]) .exit_on_esc(true) .build() .unwrap(); while let Some(_) = window.next() {} }
Debug
Known issues
gotchaRequires a backend like glfw_window or sdl2_window to be added.
fix
Add a backend crate such as glfw_window = "*" to Cargo.toml.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pistoncore-window — cargo add pistoncore-window · libregistry