Speedy2D icon indicating copy to clipboard operation
Speedy2D copied to clipboard

Add example of managing GL context using glutin

Open btbaggin opened this issue 3 years ago • 4 comments

Added a minimal example showing how to manage a GL context yourself, using glutin for windowing. Tested on Windows and Linux

btbaggin avatar Jul 02 '22 22:07 btbaggin

Thanks for this @btbaggin! I should hopefully get a chance to review this within the next week.

QuantumBadger avatar Jul 13 '22 07:07 QuantumBadger

I think the Clippy failure isn't your fault -- I'll fix this when I review the code.

QuantumBadger avatar Jul 13 '22 07:07 QuantumBadger

Thank you, this looks good! Sorry for the delay in reviewing.

Before I merge this, please could you add (1) the standard copyright header comment (you can copy this from another file), and (2) a comment at the top of the file explaining what the example is showing (i.e. how to manually manage the GL context yourself using Glutin). Thanks again for this!

QuantumBadger avatar Jul 23 '22 12:07 QuantumBadger

Done! Sorry it look a while. I don't come around here often.

I had the code lying around so I figure I should give back. Your library has been super helpful in my personal projects.

btbaggin avatar Jul 29 '22 01:07 btbaggin

Thank you! I'll merge this in.

QuantumBadger avatar Sep 03 '22 10:09 QuantumBadger

Changelog updated here: https://github.com/QuantumBadger/Speedy2D/commit/ad28244c8591d94c4285127e15d9cdedb382e7d1

Thanks again!

QuantumBadger avatar Sep 03 '22 10:09 QuantumBadger