Struct kiss3d::resource::Texture
[−]
[src]
pub struct Texture { /* fields omitted */ }
A gpu texture. It contains the texture id provided by opengl and is automatically released.
Methods
impl Texture
[src]
fn new() -> Rc<Texture>
Allocates a new texture on the gpu. The texture is not configured.
fn id(&self) -> GLuint
The opengl-provided texture id.