rust-windowing / glutin

A low-level library for OpenGL context creation
Apache License 2.0
2k stars 477 forks source link

EGL: Provide color-space support #1658

Open MarijnS95 opened 10 months ago

MarijnS95 commented 10 months ago

Closes #1653

Still a few things to do, such as:

kchibisov commented 8 months ago

Do you want me to look into something specific here given that you have it as a draft and have a bunch of debug in the code?

MarijnS95 commented 4 months ago

@kchibisov sure the example used to contain a full setup for using EGL HDR color spaces.

As this is "the only" example in glutin I surely feel that shouldn't immediately expose the user to a completely EGL-specific color space setup, especially if we don't even go to lengths to use the right colors in other spaces. I've now dropped that from this PR. If you think we should, I could always reintroduce it as a separate example app (though wouldn't wish to duplicate 90% of the current example... :sweat_smile:).

This PR still contains some drive-by ideas to make it easier to work with "HDR" surfaces, such as maybe making it more straightforward to create a ConfigTemplateBuilder for different "popular" formats?