pub struct WebGlContext { /* private fields */ }Expand description
A WebGL context registered with the module.
Implementations§
Trait Implementations§
Source§impl IGlContext for WebGlContext
impl IGlContext for WebGlContext
Source§fn gl_interface(&self) -> Rc<GlInterface>
fn gl_interface(&self) -> Rc<GlInterface>
The entry points of the context.
Source§fn sample_count(&self) -> i32
fn sample_count(&self) -> i32
The number of samples of the default framebuffer.
Source§fn stencil_size(&self) -> i32
fn stencil_size(&self) -> i32
The number of stencil bits of the default framebuffer.
Source§fn make_current(&self) -> Rc<dyn IDisposable>
fn make_current(&self) -> Rc<dyn IDisposable>
Makes the context current. Disposing the result restores the
previously current context.
Whether the two contexts share their objects.
Whether
create_shared_context is
supported.Creates a context that shares its objects with this one.
Source§impl IGlSkiaSpecificOptionsFeature for WebGlContext
impl IGlSkiaSpecificOptionsFeature for WebGlContext
Source§fn use_native_skia_gr_gl_interface(&self) -> bool
fn use_native_skia_gr_gl_interface(&self) -> bool
Whether Skia should resolve the OpenGL entry points itself, with the
interface native to the platform, instead of through the entry point
lookup of the context.
Source§impl IPlatformGraphicsContext for WebGlContext
impl IPlatformGraphicsContext for WebGlContext
Source§fn ensure_current(&self) -> Rc<dyn IDisposable>
fn ensure_current(&self) -> Rc<dyn IDisposable>
Makes the context current. Disposing the result restores the
previously current context.
Auto Trait Implementations§
impl !RefUnwindSafe for WebGlContext
impl !Send for WebGlContext
impl !Sync for WebGlContext
impl !UnwindSafe for WebGlContext
impl Freeze for WebGlContext
impl Unpin for WebGlContext
impl UnsafeUnpin for WebGlContext
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more