55 releases (31 breaking)

0.31.0 Feb 21, 2018
0.30.0 Oct 15, 2017
0.29.0 Sep 25, 2017
0.27.0 Apr 28, 2017
0.0.1 Dec 12, 2014

#6 in Game engines

Download history 769/week @ 2018-07-04 587/week @ 2018-07-11 767/week @ 2018-07-18 453/week @ 2018-07-25 693/week @ 2018-08-01 1277/week @ 2018-08-08 918/week @ 2018-08-15 686/week @ 2018-08-22 643/week @ 2018-08-29 419/week @ 2018-09-05 559/week @ 2018-09-12 459/week @ 2018-09-19 489/week @ 2018-09-26

3,059 downloads per month
Used in 67 crates (12 directly)

MIT license

104KB
2.5K SLoC

window Build StatusCrates.io

A library for window abstraction

How to contribute


lib.rs:

Window storage and interfacing traits.

The Window trait is the minimum interface required for event loop. All backends usually support this trait.

The AdvancedWindow trait is the maximum interface that can be provided, while still staying consistent between backends. Not all backends implement AdvancedWindow; check your backend's documentation to see whether it implements this trait.

The WindowSettings structure is the preferred way of building new windows in Piston. It uses the BuildFromWindowSettings trait, which backends implement to handle window creation and setup.

The OpenGLWindow trait is used to provide low-level access to OpenGL through the abstract Piston API.

The Size structure is used throughout Piston to store window sizes. It implements some conversion traits for convenience.

Dependencies

~1.5MB
~28K SLoC