glfw: move constants into separate modules

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-16 11:33:46 -07:00
parent 166d621797
commit 6308a2f8dd
4 changed files with 30 additions and 25 deletions

16
glfw/src/version.zig Normal file
View file

@ -0,0 +1,16 @@
const c = @cImport(@cInclude("GLFW/glfw3.h"));
// The major version number of the GLFW library.
//
// This is incremented when the API is changed in non-compatible ways.
pub const major = c.GLFW_VERSION_MAJOR;
// The minor version number of the GLFW library.
//
// This is incremented when features are added to the API but it remains backward-compatible.
pub const minor = c.GLFW_VERSION_MINOR;
// The revision number of the GLFW library.
//
// This is incremented when a bug fix release is made that does not contain any API changes.
pub const revision = c.GLFW_VERSION_REVISION;