/gl_v

Friendly OpenGL bindings for V

Primary LanguageV

Friendly OpenGL bindings for V

One-to-one bindings of C OpenGL functions to friendly V functions.

For an example, look at test_app

Generate

The bindings are automatically generated.

To generate them yourself, run this command:

v run gen/cmd

This will generate all the bindings (OpenGL + GLEW) into the sys directory.

Usage

I would provide a useful example of usage here, but even simple OpenGL apps are several hundred lines. Check out test_app if you're interested. (you should probably replace the C GLFW calls in that example with code from my amazing glfw_v project.)