/tinygl

Lightweight Rust wrapper for OpenGL on web & desktop

Primary LanguageRustMIT LicenseMIT

tinygl

Build

tinygl is an environment to create OpenGL programs in Rust with:

  • Pre-processing of GLSL shader code (#include support, syntax checking, etc.), using shaderc
  • Conversion of GLSL shaders to SPIR-V or transpilation to GLSL ES for WebGL, also using shaderc
  • Rust code generation for loading shaders, programs and type-checked uniform setter methods

This is a project currently under heavy development, do not expect any kind of stability for a while.

Building

  • (Optional) Re-generate OpenGL desktop bindings using cargo xtask gen-bindings
  • cargo build

Authors

Alixinne alixinne@pm.me

License

Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT).