#[repr(C)]pub struct EmscriptenWebGLContextAttributes {Show 14 fields
pub alpha: bool,
pub depth: bool,
pub stencil: bool,
pub antialias: bool,
pub premultipliedAlpha: bool,
pub preserveDrawingBuffer: bool,
pub powerPreference: EM_WEBGL_POWER_PREFERENCE,
pub failIfMajorPerformanceCaveat: bool,
pub majorVersion: c_int,
pub minorVersion: c_int,
pub enableExtensionsByDefault: bool,
pub explicitSwapControl: bool,
pub proxyContextToMainThread: EMSCRIPTEN_WEBGL_CONTEXT_PROXY_MODE,
pub renderViaOffscreenBackBuffer: bool,
}
Fields§
§alpha: bool
§depth: bool
§stencil: bool
§antialias: bool
§premultipliedAlpha: bool
§preserveDrawingBuffer: bool
§powerPreference: EM_WEBGL_POWER_PREFERENCE
§failIfMajorPerformanceCaveat: bool
§majorVersion: c_int
§minorVersion: c_int
§enableExtensionsByDefault: bool
§explicitSwapControl: bool
§proxyContextToMainThread: EMSCRIPTEN_WEBGL_CONTEXT_PROXY_MODE
§renderViaOffscreenBackBuffer: bool
Trait Implementations§
Source§impl Clone for EmscriptenWebGLContextAttributes
impl Clone for EmscriptenWebGLContextAttributes
Source§fn clone(&self) -> EmscriptenWebGLContextAttributes
fn clone(&self) -> EmscriptenWebGLContextAttributes
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 moreimpl Copy for EmscriptenWebGLContextAttributes
Auto Trait Implementations§
impl Freeze for EmscriptenWebGLContextAttributes
impl RefUnwindSafe for EmscriptenWebGLContextAttributes
impl Send for EmscriptenWebGLContextAttributes
impl Sync for EmscriptenWebGLContextAttributes
impl Unpin for EmscriptenWebGLContextAttributes
impl UnwindSafe for EmscriptenWebGLContextAttributes
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