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