grr!
A bare metal library for OpenGL 4.5+
grr
aims at providing a thin layer above OpenGL 4.5+, exposing a modern API orientated on Vulkan.
The sole purpose of the library is to have a cleaned up API for fast prototyping. Neither state caching, extensive error checking or further assistance is implemented nor in-scope of the lib!
Features
- API is built around direct state access
- Following Vulkan terminology and function names
- Only provided latest GL functionality
- Enforce sRGB framebuffer handling
Getting started
Checkout our Hello Triangle example to see the library in action!
Example
// Bind graphics pipeline (shaders)
grr.bind_pipeline;
// Configure vertex attributes
grr.bind_vertex_array;
// Bind vertex buffers fer fetching attribute data
grr.bind_vertex_buffers;
// Clear default framebuffer
grr.clear_attachment;
// Draw triangles
grr.draw;
// Present on screen!
window.swap_buffers.unwrap;