[][src]Trait awsm::webgl::PartialWebGlTextures

pub trait PartialWebGlTextures {
    fn awsm_create_texture(&self) -> Result<WebGlTexture, Error>;
fn awsm_texture_set_wrap(
        &self,
        bind_target: TextureTarget,
        wrap_target: TextureWrapTarget,
        wrap_mode: TextureWrapMode
    );
fn awsm_texture_set_min_filter(
        &self,
        bind_target: TextureTarget,
        filter: TextureMinFilter
    );
fn awsm_texture_set_mag_filter(
        &self,
        bind_target: TextureTarget,
        filter: TextureMagFilter
    );
fn awsm_texture_sources_can_mipmap(
        &self,
        srcs: &[&WebGlTextureSource]
    ) -> Result<(), Error>;
fn awsm_assign_simple_texture(
        &self,
        bind_target: TextureTarget,
        opts: &SimpleTextureOptions,
        src: &WebGlTextureSource,
        dest: &WebGlTexture
    ) -> Result<(), Error>;
fn awsm_assign_simple_texture_mips(
        &self,
        bind_target: TextureTarget,
        opts: &SimpleTextureOptions,
        srcs: &[&WebGlTextureSource],
        dest: &WebGlTexture
    ) -> Result<(), Error>;
fn awsm_simple_parameters(
        &self,
        bind_target: TextureTarget,
        opts: &SimpleTextureOptions,
        use_mips: bool
    );
fn awsm_assign_texture(
        &self,
        bind_target: TextureTarget,
        opts: &TextureOptions,
        set_parameters: Option<impl Fn(&Self)>,
        src: &WebGlTextureSource,
        dest: &WebGlTexture
    ) -> Result<(), Error>;
fn awsm_assign_texture_mips(
        &self,
        bind_target: TextureTarget,
        opts: &TextureOptions,
        set_parameters: Option<impl Fn(&Self)>,
        srcs: &[&WebGlTextureSource],
        dest: &WebGlTexture
    ) -> Result<(), Error>;
fn awsm_activate_texture_for_sampler_index(
        &self,
        bind_target: TextureTarget,
        sampler_index: u32,
        texture: &WebGlTexture
    );
fn _awsm_assign_texture(
        &self,
        bind_target: TextureTarget,
        mip_level: i32,
        opts: &TextureOptions,
        src: &WebGlTextureSource
    ) -> Result<(), Error>; }

Required methods

fn awsm_create_texture(&self) -> Result<WebGlTexture, Error>

fn awsm_texture_set_wrap(
    &self,
    bind_target: TextureTarget,
    wrap_target: TextureWrapTarget,
    wrap_mode: TextureWrapMode
)

fn awsm_texture_set_min_filter(
    &self,
    bind_target: TextureTarget,
    filter: TextureMinFilter
)

fn awsm_texture_set_mag_filter(
    &self,
    bind_target: TextureTarget,
    filter: TextureMagFilter
)

fn awsm_texture_sources_can_mipmap(
    &self,
    srcs: &[&WebGlTextureSource]
) -> Result<(), Error>

fn awsm_assign_simple_texture(
    &self,
    bind_target: TextureTarget,
    opts: &SimpleTextureOptions,
    src: &WebGlTextureSource,
    dest: &WebGlTexture
) -> Result<(), Error>

fn awsm_assign_simple_texture_mips(
    &self,
    bind_target: TextureTarget,
    opts: &SimpleTextureOptions,
    srcs: &[&WebGlTextureSource],
    dest: &WebGlTexture
) -> Result<(), Error>

fn awsm_simple_parameters(
    &self,
    bind_target: TextureTarget,
    opts: &SimpleTextureOptions,
    use_mips: bool
)

fn awsm_assign_texture(
    &self,
    bind_target: TextureTarget,
    opts: &TextureOptions,
    set_parameters: Option<impl Fn(&Self)>,
    src: &WebGlTextureSource,
    dest: &WebGlTexture
) -> Result<(), Error>

fn awsm_assign_texture_mips(
    &self,
    bind_target: TextureTarget,
    opts: &TextureOptions,
    set_parameters: Option<impl Fn(&Self)>,
    srcs: &[&WebGlTextureSource],
    dest: &WebGlTexture
) -> Result<(), Error>

fn awsm_activate_texture_for_sampler_index(
    &self,
    bind_target: TextureTarget,
    sampler_index: u32,
    texture: &WebGlTexture
)

fn _awsm_assign_texture(
    &self,
    bind_target: TextureTarget,
    mip_level: i32,
    opts: &TextureOptions,
    src: &WebGlTextureSource
) -> Result<(), Error>

Loading content...

Implementations on Foreign Types

impl PartialWebGlTextures for WebGlRenderingContext[src]

impl PartialWebGlTextures for WebGl2RenderingContext[src]

Loading content...

Implementors

Loading content...