Switch WGL to ChoosePixelFormat

This commit is contained in:
Pierre Krieger 2015-12-19 13:06:50 +01:00
parent 0b6418fabb
commit 95a60ee329
3 changed files with 317 additions and 116 deletions

View file

@ -399,6 +399,7 @@ pub struct PixelFormat {
}
/// Describes how the backend should choose a pixel format.
// TODO: swap method? (swap, copy)
#[derive(Clone, Debug)]
pub struct PixelFormatRequirements {
/// If true, only hardware-accelerated formats will be conisdered. If false, only software