Struct surfman::ContextAttributes
source · 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.
Implementations§
source§impl ContextAttributes
impl ContextAttributes
pub(crate) fn zeroed() -> ContextAttributes
Trait Implementations§
source§impl Clone for ContextAttributes
impl Clone for ContextAttributes
source§fn clone(&self) -> ContextAttributes
fn clone(&self) -> ContextAttributes
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 ContextAttributes
impl Debug for ContextAttributes
source§impl PartialEq for ContextAttributes
impl PartialEq for ContextAttributes
source§fn eq(&self, other: &ContextAttributes) -> bool
fn eq(&self, other: &ContextAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ContextAttributes
impl StructuralPartialEq for ContextAttributes
Auto Trait Implementations§
impl Freeze for ContextAttributes
impl RefUnwindSafe for ContextAttributes
impl Send for ContextAttributes
impl Sync for ContextAttributes
impl Unpin for ContextAttributes
impl UnwindSafe for ContextAttributes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more