pub type Texture2D = Texture;Expand description
Texture2D, same as Texture
Aliased Type§
#[repr(C)]pub struct Texture2D {
pub id: u32,
pub width: i32,
pub height: i32,
pub mipmaps: i32,
pub format: i32,
}Fields§
§id: u32OpenGL texture id
width: i32Texture base width
height: i32Texture base height
mipmaps: i32Mipmap levels, 1 by default
format: i32Data format (PixelFormat type)