Crates.io | tgl |
lib.rs | tgl |
version | 0.1.1 |
source | src |
created_at | 2022-03-18 22:34:57.003693 |
updated_at | 2022-12-01 14:23:23.220214 |
description | Bindings to TinyGL, a Small, Free and Fast Subset of OpenGL |
homepage | https://github.com/roastveg/tinygl-rs/ |
repository | |
max_upload_size | |
id | 552939 |
size | 968,003 |
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.
#[no_std]
support out of the boxWant 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!
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.