From 1a5cb3448c9575665729ff49ba789ca816bfe3cb Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 7 Mar 2023 21:52:23 +0100 Subject: docs: add readme --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..63eec7b --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +## OpenGL-Registry-Macros +[![Latest Version](https://img.shields.io/crates/v/opengl-registry-macros)](https://crates.io/crates/opengl-registry-macros) +[![Documentation](https://img.shields.io/docsrs/opengl-registry-macros)](https://docs.rs/opengl-registry-macros) + +Rust macros utilizing the OpenGL API and Extension Registry. + +## Example usage +```rust +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!(); + } +} +``` + -- cgit v1.2.3-18-g5258