61 releases (37 breaking)

0.37.0 Feb 7, 2019
0.35.0 Jan 17, 2019
0.34.0 Nov 15, 2018
0.32.0 May 11, 2018
0.0.1 Dec 12, 2014

#9 in Game engines

Download history 924/week @ 2018-11-26 532/week @ 2018-12-03 713/week @ 2018-12-10 523/week @ 2018-12-17 1241/week @ 2018-12-24 549/week @ 2018-12-31 816/week @ 2019-01-07 661/week @ 2019-01-14 797/week @ 2019-01-21 639/week @ 2019-01-28 851/week @ 2019-02-04 544/week @ 2019-02-11 617/week @ 2019-02-18 573/week @ 2019-02-25 599/week @ 2019-03-04

3,170 downloads per month
Used in 75 crates (12 directly)

MIT license

108KB
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

~1MB
~26K SLoC