[][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 and GUI widgets, check out barg which depends on this crate. And if you want more than just rendering, check out cala. And, eventually, specifically for video games plop.

Structs

Graphic

A graphic on the GPU.

Shader

A shader.

ShaderBuilder

A builder for portable shaders.

Shape

A shape.

ShapeBuilder

A shape builder.

Transform

A transformation matrix.

Window

A window on the monitor.