pub struct GLContextAttributes {
pub alpha: bool,
pub depth: bool,
pub stencil: bool,
pub antialias: bool,
pub premultiplied_alpha: bool,
pub preserve_drawing_buffer: bool,
}
Expand description
This structure represents the attributes the context must support It’s almost (if not) identical to WebGLGLContextAttributes
Fields§
§alpha: bool
§depth: bool
§stencil: bool
§antialias: bool
§premultiplied_alpha: bool
§preserve_drawing_buffer: bool
Implementations§
source§impl GLContextAttributes
impl GLContextAttributes
pub fn any() -> GLContextAttributes
Trait Implementations§
source§impl Clone for GLContextAttributes
impl Clone for GLContextAttributes
source§fn clone(&self) -> GLContextAttributes
fn clone(&self) -> GLContextAttributes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GLContextAttributes
impl Debug for GLContextAttributes
source§impl Default for GLContextAttributes
impl Default for GLContextAttributes
source§fn default() -> GLContextAttributes
fn default() -> GLContextAttributes
Returns the “default value” for a type. Read more