Struct cat_engine_basement::graphics::level0::Texture [−][src]
pub struct Texture { /* fields omitted */ }
Implementations
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.
pub fn set_compare_function(
&self,
target: TextureParameterTarget,
function: TextureCompareFunction
)
pub fn set_compare_function(
&self,
target: TextureParameterTarget,
function: TextureCompareFunction
)
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
.