#[repr(C)]
pub struct Texture { pub format: TextureFormat, pub width: i32, pub height: i32, pub mipmap: bool, /* private fields */ }

Fields

format: TextureFormatwidth: i32height: i32mipmap: bool

Implementations

Upload texture data for the given mip level of this texture

Upload texture data for the given mip level and region of this texture

Copy a region of the framebuffer into a region of the given texture

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.