Type Alias grafix_toolbox::GL::Tex2d

source ·
pub type Tex2d<S, F> = Tex<S, F, GL_TEXTURE_2D>;

Aliased Type§

struct Tex2d<S, F> {
    pub param: TexParam,
    /* private fields */
}

Fields§

§param: TexParam

Implementations§

source§

impl<S, F> Tex2d<S, F>

source

pub fn Cast<RS: TexSize, RF: TexFmt>(&self, minification: i32) -> Tex2d<RS, RF>

source§

impl<S: TexSize, F: TexFmt> Tex2d<S, F>

source

pub fn from_type<RS: TexSize, RF: TexFmt>(img: &Image<RS, RF>) -> Self

Trait Implementations§

source§

impl<S: TexSize, F: TexFmt, T: Borrow<Image<S, F>>> From<T> for Tex2d<S, F>

source§

fn from(img: T) -> Self

Converts to this type from the input type.