[][src]Crate window

Window

Minimal Rust code for creating a window, automatically choosing a backend window manager and graphics API.

Other Rust window creation libraries require you to build for a specific backend, so I made this crate to fix the issue. You can now make a program that runs Wayland on a machine that has Wayland installed, and will fall back to XCB if it's not installed. And, will run OpenGLES (eventually try Vulkan first, too) if it's installed, and fall back to OpenGL if it's not installed.

Since this crate is minimal, it doesn't even handle window decoration. If you want window decoration, GUI widgets, and other hardware abstractions check out cala.

Coordinate System

Getting Started

TODO

Modules

input

User input from the window.

Macros

shader

Load a generated shader from the res crate.

Structs

Group

A group. Groups

RasterId

A raster that has been uploaded to the GPU.

Shader

A shader.

ShaderBuilder

A builder for portable shaders.

Shape

A shape.

ShapeBuilder

A shape builder.

Transform

A 4x4 transformation matrix.

Window

A window on the monitor.