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

Add a function to the native context that loads the functions using `CStr` instead of `str` #225

Closed notgull closed 2 years ago

notgull commented 2 years ago

I'm not particularly attached to the name

grovesNL commented 2 years ago

Thanks! Looks like CI is failing on this.

This change seems reasonable, but just curious about the use case for loading with CStr instead. Are you using something other than the common loaders (e.g. glutin, sdl2)?

notgull commented 2 years ago

Whoops! This should hopefully fix it.

I was writing a wrapper around WGL and wanted to use this crate. I am definitely not writing my own OpenGL implementation.

bors[bot] commented 2 years ago

Build succeeded: