Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

RoastVeg/tinygl-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgl - Rust bindings to TinyGL

Crates.io Documentation

TinyGL is a very lightweight partial OpenGL implementation. Its small size makes it ideal for static linking.

These bindings aim to broadly replicate the API of the gl crate, though there are notable differences.

Features

  • Impressive performance with low resource requirements
  • Highly portable OpenGL implementation, with no runtime dependencies
  • #[no_std] support out of the box

Call for Examples

Want to contribute a neat example of something you've made with tgl? Got a project that uses tgl as a dependency you'd like to see featured here? Open a PR!

Recommended Usage

Use tgl::Init to set up a "zbuffer", which TinyGL provides and we expose via tgl::zbuffer::open. A zbuffer can copy to framebuffers such as rust_minifb with ease. Check out the examples directory to see this in action.

With a framebuffer up and running, you can start making GL calls. Remember that TinyGL is only a partial implementation, and not all the methods you might expect are present.

About

Bindings to TinyGL, a Small, Free and Fast Subset of OpenGL

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

13 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages