mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Add doc to crate root
This commit is contained in:
parent
ed3ed47ad8
commit
52cccb8dda
15
src/lib.rs
15
src/lib.rs
|
@ -2,6 +2,21 @@
|
|||
#![feature(globs)]
|
||||
#![unstable]
|
||||
|
||||
//! The purpose of this library is to provide an OpenGL context on as many
|
||||
//! platforms as possible.
|
||||
//!
|
||||
//! # Building a window
|
||||
//!
|
||||
//! There are two ways to create a window:
|
||||
//!
|
||||
//! - Calling `Window::new()`.
|
||||
//! - Calling `let builder = WindowBuilder::new()` then `builder.build()`.
|
||||
//!
|
||||
//! The first way is the simpliest way and will give you default values.
|
||||
//!
|
||||
//! The second way allows you to customize the way your window and GL context
|
||||
//! will look and behave.
|
||||
|
||||
extern crate libc;
|
||||
|
||||
pub use events::*;
|
||||
|
|
Loading…
Reference in a new issue