Struct libktx_rs::texture::Ktx1[][src]

pub struct Ktx1<'a, 'b: 'a> { /* fields omitted */ }
Expand description

KTX1-specific Texture functionality.

Implementations

Returns a pointer to the underlying (C-allocated) sys::ktxTexture1.

SAFETY: Pointers are harmless. Dereferencing them is not!

Returns the OpenGL format of the texture’s data (e.g. GL_RGBA).

Also see Self::gl_internal_format, Self::gl_base_internal_format.

Returns the OpenGL format of the texture’s data (e.g. GL_RGBA).

Also see Self::gl_format, Self::gl_base_internal_format.

Returns the OpenGL base internal format of the texture’s data (e.g. GL_RGBA).

Also see Self::gl_format, Self::gl_internal_format.

Returns the OpenGL datatype of the texture’s data (e.g. GL_UNSIGNED_BYTE).

Will this KTX1 need transcoding?

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 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.