Struct adi_gpu_vulkan::Display [−][src]
pub struct Display { /* fields omitted */ }
To render anything with adi_gpu, you have to make a Display
Trait Implementations
impl Display for Display
[src]
impl Display for Display
fn color(&mut self, color: (f32, f32, f32))
[src]
fn color(&mut self, color: (f32, f32, f32))
Set the background color for the Display
. Read more
fn update(&mut self) -> Option<Input>
[src]
fn update(&mut self) -> Option<Input>
Get input, if there's any. If there's no input, update the Display
and return None
. Read more
fn camera(&mut self, xyz: Vec3, rotate_xyz: Vec3)
[src]
fn camera(&mut self, xyz: Vec3, rotate_xyz: Vec3)
Move the camera. Read more
fn model(&mut self, vertices: &[f32], fans: Vec<(u32, u32)>) -> Model
[src]
fn model(&mut self, vertices: &[f32], fans: Vec<(u32, u32)>) -> Model
Create a new Model
for this Display
.
fn fog(&mut self, fog: Option<(f32, f32)>)
[src]
fn fog(&mut self, fog: Option<(f32, f32)>)
Set the fog for the display. Read more
fn texture(&mut self, wh: (u16, u16), graphic: &VFrame) -> Texture
[src]
fn texture(&mut self, wh: (u16, u16), graphic: &VFrame) -> Texture
Create a new Texture
for this Display
.
fn gradient(&mut self, colors: &[f32]) -> Gradient
[src]
fn gradient(&mut self, colors: &[f32]) -> Gradient
Create a new Gradient
for this Display
.
fn texcoords(&mut self, texcoords: &[f32]) -> TexCoords
[src]
fn texcoords(&mut self, texcoords: &[f32]) -> TexCoords
Create new TexCoords
for this Display
.
fn set_texture(
&mut self,
texture: &mut Texture,
wh: (u16, u16),
graphic: &VFrame
)
[src]
fn set_texture(
&mut self,
texture: &mut Texture,
wh: (u16, u16),
graphic: &VFrame
)
Set the pixels for a Texture
.
fn shape_solid(
&mut self,
model: &Model,
transform: Transform,
color: [f32; 4],
blending: bool,
fog: bool,
camera: bool
) -> Shape
[src]
fn shape_solid(
&mut self,
model: &Model,
transform: Transform,
color: [f32; 4],
blending: bool,
fog: bool,
camera: bool
) -> Shape
Create a new shape with a solid color.
fn shape_gradient(
&mut self,
model: &Model,
transform: Transform,
colors: Gradient,
blending: bool,
fog: bool,
camera: bool
) -> Shape
[src]
fn shape_gradient(
&mut self,
model: &Model,
transform: Transform,
colors: Gradient,
blending: bool,
fog: bool,
camera: bool
) -> Shape
Create a new shape shaded by a gradient (1 color per vertex).
fn shape_texture(
&mut self,
model: &Model,
transform: Transform,
texture: &Texture,
tc: TexCoords,
blending: bool,
fog: bool,
camera: bool
) -> Shape
[src]
fn shape_texture(
&mut self,
model: &Model,
transform: Transform,
texture: &Texture,
tc: TexCoords,
blending: bool,
fog: bool,
camera: bool
) -> Shape
Create a new shape shaded by a texture using texture coordinates. Read more
fn shape_faded(
&mut self,
model: &Model,
transform: Transform,
texture: &Texture,
tc: TexCoords,
alpha: f32,
fog: bool,
camera: bool
) -> Shape
[src]
fn shape_faded(
&mut self,
model: &Model,
transform: Transform,
texture: &Texture,
tc: TexCoords,
alpha: f32,
fog: bool,
camera: bool
) -> Shape
Create a new shape shaded by a texture using texture coordinates and alpha. Read more
fn shape_tinted(
&mut self,
model: &Model,
transform: Transform,
texture: &Texture,
tc: TexCoords,
tint: [f32; 4],
blending: bool,
fog: bool,
camera: bool
) -> Shape
[src]
fn shape_tinted(
&mut self,
model: &Model,
transform: Transform,
texture: &Texture,
tc: TexCoords,
tint: [f32; 4],
blending: bool,
fog: bool,
camera: bool
) -> Shape
Create a new shape shaded by a texture using texture coordinates and tint. Read more
fn shape_complex(
&mut self,
model: &Model,
transform: Transform,
texture: &Texture,
tc: TexCoords,
tints: Gradient,
blending: bool,
fog: bool,
camera: bool
) -> Shape
[src]
fn shape_complex(
&mut self,
model: &Model,
transform: Transform,
texture: &Texture,
tc: TexCoords,
tints: Gradient,
blending: bool,
fog: bool,
camera: bool
) -> Shape
Create a new shape shaded by a texture using texture coordinates and tint per vertex. Read more
fn drop_shape(&mut self, shape: &Shape)
[src]
fn drop_shape(&mut self, shape: &Shape)
Drop a shape (don't draw it anymore).
fn transform(&mut self, shape: &Shape, transform: Transform)
[src]
fn transform(&mut self, shape: &Shape, transform: Transform)
Transform the shape.
fn resize(&mut self, wh: (u16, u16))
[src]
fn resize(&mut self, wh: (u16, u16))
Resize the display.
fn wh(&self) -> (u16, u16)
[src]
fn wh(&self) -> (u16, u16)
Get the width and height of the window, as a tuple.