Trait script::dom::webgl_extensions::extension::WebGLExtension

source ·
pub trait WebGLExtension: Sized{
    type Extension;

    // Required methods
    fn new(ctx: &WebGLRenderingContext) -> Root<Dom<Self::Extension>>;
    fn spec() -> WebGLExtensionSpec;
    fn is_supported(ext: &WebGLExtensions) -> bool;
    fn enable(ext: &WebGLExtensions);
    fn name() -> &'static str;
}
Expand description

Trait implemented by WebGL extensions.

Required Associated Types§

Required Methods§

source

fn new(ctx: &WebGLRenderingContext) -> Root<Dom<Self::Extension>>

Creates the DOM object of the WebGL extension.

source

fn spec() -> WebGLExtensionSpec

Returns which WebGL spec is this extension written against.

source

fn is_supported(ext: &WebGLExtensions) -> bool

Checks if the extension is supported.

source

fn enable(ext: &WebGLExtensions)

Enable the extension.

source

fn name() -> &'static str

Name of the WebGL Extension.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl WebGLExtension for ANGLEInstancedArrays

source§

impl WebGLExtension for EXTBlendMinmax

source§

impl WebGLExtension for EXTColorBufferHalfFloat

source§

impl WebGLExtension for EXTFragDepth

source§

impl WebGLExtension for EXTShaderTextureLod

source§

impl WebGLExtension for EXTTextureFilterAnisotropic

source§

impl WebGLExtension for OESElementIndexUint

source§

impl WebGLExtension for OESStandardDerivatives

source§

impl WebGLExtension for OESTextureFloat

source§

impl WebGLExtension for OESTextureFloatLinear

source§

impl WebGLExtension for OESTextureHalfFloat

source§

impl WebGLExtension for OESTextureHalfFloatLinear

source§

impl WebGLExtension for OESVertexArrayObject

source§

impl WebGLExtension for WEBGLColorBufferFloat

source§

impl WebGLExtension for WEBGLCompressedTextureETC1

source§

impl WebGLExtension for WEBGLCompressedTextureS3TC