pub trait WebGLExtensionWrapper: JSTraceable + MallocSizeOf {
    // Required methods
    fn instance_or_init(
        &self,
        ctx: &WebGLRenderingContext,
        ext: &WebGLExtensions
    ) -> NonNull<JSObject>;
    fn spec(&self) -> WebGLExtensionSpec;
    fn is_supported(&self, _: &WebGLExtensions) -> bool;
    fn is_enabled(&self) -> bool;
    fn enable(&self, ext: &WebGLExtensions);
    fn name(&self) -> &'static str;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Trait used internally by WebGLExtensions to store and handle the different WebGL extensions in a common list.

Required Methods§

source

fn instance_or_init( &self, ctx: &WebGLRenderingContext, ext: &WebGLExtensions ) -> NonNull<JSObject>

source

fn spec(&self) -> WebGLExtensionSpec

source

fn is_supported(&self, _: &WebGLExtensions) -> bool

source

fn is_enabled(&self) -> bool

source

fn enable(&self, ext: &WebGLExtensions)

source

fn name(&self) -> &'static str

source

fn as_any(&self) -> &dyn Any

Implementors§