Struct surfman::ContextAttributes [−][src]
pub struct ContextAttributes { pub version: GLVersion, pub flags: ContextAttributeFlags, }
Expand description
Attributes that control aspects of a context and/or surfaces created from that context.
Similar to: https://www.khronos.org/registry/webgl/specs/latest/1.0/#WEBGLCONTEXTATTRIBUTES
Fields
version: GLVersion
The OpenGL or OpenGL ES version that this context supports.
Keep in mind that OpenGL and OpenGL ES have different version numbering schemes. Before
filling in this field, check the result of Device::gl_api()
.
flags: ContextAttributeFlags
Various flags.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContextAttributes
impl Send for ContextAttributes
impl Sync for ContextAttributes
impl Unpin for ContextAttributes
impl UnwindSafe for ContextAttributes
Blanket Implementations
Mutably borrows from an owned value. Read more