1 unstable release

0.1.0 Mar 7, 2023

#1564 in Procedural macros

39 downloads per month

MIT/Apache

21KB
495 lines

OpenGL-Registry-Macros

Latest Version Documentation

Rust macros utilizing the OpenGL API and Extension Registry.

Example usage

use opengl_registry_macros::for_each_opengl_command;

for_each_opengl_command! {
    fn #gl_command_name(#gl_command_args) -> #gl_command_ret_type
    {
        println!("Hello from {}", stringify!(#gl_command_name));

        unimplemented!();
    }
}

lib.rs:

Macros utilizing the OpenGL API and Extension Registry.

Dependencies

~4.5–6MB
~104K SLoC