grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.2k stars 130 forks source link

Expose `Version` and add `Context::version` #196

Closed derezzedex closed 2 years ago

derezzedex commented 2 years ago

This PR aims to expose the Version struct through a new Context::version.

Since parsing of glow::VERSION is already done internally, it would be great if this was exposed so that no further parsing would be needed (e.g to check if the current context supports instancing, etc).

grovesNL commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Build succeeded: