Add API for transparency and decorations and add support for win32
This commit is contained in:
parent
1377f276b7
commit
81314f91d8
5 changed files with 80 additions and 2 deletions
|
|
@ -295,6 +295,8 @@ pub struct BuilderAttribs<'a> {
|
|||
alpha_bits: Option<u8>,
|
||||
stereoscopy: bool,
|
||||
srgb: Option<bool>,
|
||||
transparent: bool,
|
||||
decorations: bool,
|
||||
}
|
||||
|
||||
impl BuilderAttribs<'static> {
|
||||
|
|
@ -318,6 +320,8 @@ impl BuilderAttribs<'static> {
|
|||
alpha_bits: None,
|
||||
stereoscopy: false,
|
||||
srgb: None,
|
||||
transparent: false,
|
||||
decorations: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -346,6 +350,8 @@ impl<'a> BuilderAttribs<'a> {
|
|||
alpha_bits: self.alpha_bits,
|
||||
stereoscopy: self.stereoscopy,
|
||||
srgb: self.srgb,
|
||||
transparent: self.transparent,
|
||||
decorations: self.decorations,
|
||||
};
|
||||
|
||||
(new_attribs, sharing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue