1 个不稳定版本
0.1.0 | 2023年3月7日 |
---|
#1764 in 过程宏
21KB
495 行
OpenGL-Registry-Macros
Rust宏,用于利用OpenGL API和扩展注册表。
示例用法
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
:
利用OpenGL API和扩展注册表的宏。
依赖项
~4.5–6MB
~103K SLoC