shade 0.0.5

Another graphics library
Documentation

Shade

MIT License crates.io docs.rs

Shade is a Rust graphics library with a unified rendering API.

It currently provides OpenGL and WebGL backends, plus shared types for buffers, textures, shaders, uniforms, images, and small rendering utilities.

Features

  • One graphics API across desktop OpenGL, WebGL2 and mobile
  • Explicit control over buffers, textures, shaders, uniforms, and draw calls
  • Helper modules for 2D, 3D, immediate-mode style rendering, images, and dithering
  • Optional image loading support for PNG, GIF, and JPEG
  • Optional MSDF generation support

Shade is a rendering library, not a windowing framework. You bring the GL/WebGL context and event loop, then render through Shade.

Installation

[dependencies]
shade = "0.0.5"

Available cargo features:

  • gl enables the OpenGL backend
  • webgl enables the WebGL backend
  • png, gif, jpeg enable image decoders
  • msdfgen enables MSDF helpers
  • serde enables serde support where available

Examples

See the examples/ directory for complete programs.

License

Licensed under MIT License, see license.txt.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.