tiny-gl 0.1.0

A set of OpenGL bindings suitable for use in a demo. This crate does not use std.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![no_std]

#[cfg(feature = "alloc")]
extern crate alloc;

pub mod wgl;
pub mod gl;
pub(crate) mod types;
pub(crate) mod utils;

use core::ffi::{c_void, CStr};

pub unsafe fn load(get_proc_address: impl Fn(&CStr)-> *const c_void + Copy) {
    gl::ffi::load(get_proc_address);
    wgl::ffi::load(get_proc_address);
}