Miru Gl
OpenGL bindings for my personal game engine
Overview
This crate is meant to be used in Miru project, but can be used as a standalone.
It is important to note, that Miru is pinned to minimum OpenGL Core version, which is 3.3, to
keep it a simple as possible while also being compatible with most modern hardware.
Api is very similar to gl-rs, thanks to its gl_generator crate, but Struct Generator
is used instead.
MiruGl type thinly wraps generated gl::Gl struct.
Currently, it uses Rc to ensure that OpenGL functions aren't called prematurely
and that context isn't transferred across thread bounds, while also avoiding dealing with lifetimes.
Usage
[]
= "0.1"
Creating a window with OpenGL context using glutin:
use glutin;
use MiruGl;