raw-gl-context
raw-gl-context copied to clipboard
cross-platform OpenGL context creation
Update libraries for compatibility with latest winit. ~~macOS is untested, and Linux panics under WSL2.~~
This PR adds some infrastructure to handle errors that can be raised when making X11 API calls: * Adds a private, platform-specific field to `GlError::CreationFailed` for implementations to add more...
This combines the other PRs with a couple other changes I've made for rafx. I think it may be more convenient to discuss/iterate on it this way than doing individual...
This is a draft because it includes other changes that may or may not be desired. One possible tweak would be adding the shared context to the GlConfig, but it...
This change adds an example that uses SDL2 instead of winit. This works great for macOS but SDL2 requires extra steps to link in windows. I usually use the bundled...
I slightly modified the macOS implementation to work more similarly to the `glutin` crate. I don't know that this is necessarily the best fix, but it does work for me....
- Update winit to 0.24, this makes the example compile on apple silicon - Make the window use changing clear color over time to make it clear that the GL...
I am using Fedora 35 with Radeon graphics. Window creation fails even when you switch to using X11 on winit. This is fixed by removing the frame buffer attribute GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB...
When I run the winit example and resize the window on macOS it looks like this:  I bumped winit to 0.24 to fix build errors. The same behavior occurs...