Struct cat_engine_basement::graphics::level0::Texture[][src]

pub struct Texture { /* fields omitted */ }

Implementations

Generates a texture.

Generates a texture with the given target.

Returns GLError::InvalidValue if there’s no current context.

Binds a texture to a texturing target.

When a texture is bound to a target, the previous binding for that target is automatically broken.

Returns GLError::NoError if no error has accured.

Returns GLError::InvalidValue if there’s no current context.

Returns GLError::InvalidOperation if texture was previously created with a target that doesn’t match that of target.

Binds the zero-named texture to a texturing target.

When a texture is bound to a target, the previous binding for that target is automatically broken.

Returns GLError::NoError if no error has accured.

Returns GLError::InvalidValue if there’s no current context.

Specifies the index of the lowest defined mipmap level.

The initial value is 0.

Specifies the comparison operator.

The comparison operator is used when TEXTURE_COMPARE_MODE is set to COMPARE_REF_TO_TEXTURE.

Specifies the texture comparison mode for currently bound depth textures (the iternal format = DEPTH_COMPONENT).

Specifies the texture magnification function.

The texture magnification function is used whenever the level-of-detail function used when sampling from the texture determines that the texture should be magified.

Initially, it is set to TextureMagFilter::Linear.

Specifies the texture minifying function.

The texture minifying function is used whenever the level-of-detail function used when sampling from the texture determines that the texture should be minified.

Initially, it is set to TextureMinFilter::LinearMipmapLinear.

Sets the wrap parameter for texture coordinate s.

Initially, it is set to TextureWrap::Repeat.

Sets the wrap parameter for texture coordinate t.

Initially, it is set to TextureWrap::Repeat.

Sets the wrap parameter for texture coordinate r.

Initially, it is set to TextureWrap::Repeat.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.