Struct asi_opengl::Texture [−][src]
pub struct Texture(_);
An GPU Texture handle.
Methods
impl Texture
[src]
impl Texture
pub fn set(&self, w: u16, h: u16, px: &[u8])
[src]
pub fn set(&self, w: u16, h: u16, px: &[u8])
Set the bound texture's pixels
pub fn update(&self, w: u16, h: u16, px: &[u8])
[src]
pub fn update(&self, w: u16, h: u16, px: &[u8])
Update the pixels of an already bound & set texture.
pub fn bind(&self)
[src]
pub fn bind(&self)
Use a texture.