Struct adi_gpu::Display
[−]
[src]
pub struct Display { /* fields omitted */ }
To render anything with adi_gpu, you have to make a Display
Methods
impl Display
[src]
fn new(
name: &str,
icon: Graphic,
bg_color: (f32, f32, f32),
fog: (f32, f32)
) -> Display
[src]
name: &str,
icon: Graphic,
bg_color: (f32, f32, f32),
fog: (f32, f32)
) -> Display
Connect to the display as a window with a name and icon. Icon is in
aci image format: [ width, height, bgra pixels ]
. fog
is a
tuple: (distance, depth).
fn bg_color(&mut self, color: (f32, f32, f32))
[src]
Change the background color of the Display
.
fn input(&mut self) -> Option<Input>
[src]
Get input, if there is any.
fn update(&mut self)
[src]
Update the display / window.
fn camera(&mut self, xyz: (f32, f32, f32), rotate_xyz: (f32, f32, f32))
[src]
Update the camera position and angle.
fn wh(&self) -> (u32, u32)
[src]
Get the width and height