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;
}
Expand description

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

Required Methods§

Implementors§