[][src]Trait web_glitz::extensions::Extension

pub trait Extension: Sized {
    fn try_init(connection: &mut Connection, context_id: u64) -> Option<Self>;
}

Trait implemented for extension objects, used by [RenderingContext::get_extension] to initialize the extension.

Required methods

fn try_init(connection: &mut Connection, context_id: u64) -> Option<Self>

Attempts to initialize the extension on the current Connection and return the extension object, or returns None if it fails.

Loading content...

Implementors

impl Extension for web_glitz::extensions::color_buffer_float::Extension[src]

impl Extension for web_glitz::extensions::texture_float_linear::Extension[src]

Loading content...