Struct adi_gpu::Texture
[−]
[src]
pub struct Texture { /* fields omitted */ }
A texture on the GPU.
Methods
impl Texture
[src]
fn new(display: &mut Display, image_data: Graphic) -> Texture
[src]
Create a new texture.
fn empty(display: &mut Display, width: u32, height: u32) -> Texture
[src]
Create an empty texture.
fn set(&mut self, display: &mut Display, data: &[u32])
[src]
Set the pixels for the texture.
fn w(&self) -> u32
[src]
Get the width
fn h(&self) -> u32
[src]
Get the height