Type Alias rust_raylib::ffi::Texture2D

source ·
pub type Texture2D = Texture;
Expand description

Texture2D, same as Texture

Aliased Type§

struct Texture2D {
    pub id: u32,
    pub width: i32,
    pub height: i32,
    pub mipmaps: i32,
    pub format: i32,
}

Fields§

§id: u32

OpenGL texture id

§width: i32

Texture base width

§height: i32

Texture base height

§mipmaps: i32

Mipmap levels, 1 by default

§format: i32

Data format (PixelFormat type)

Trait Implementations§

source§

impl Clone for Texture

source§

fn clone(&self) -> Texture

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Texture

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more