Struct adi_gpu::ShapeBuilder
[−]
[src]
pub struct ShapeBuilder { /* fields omitted */ }
Builder for Shape
Methods
impl ShapeBuilder
[src]
fn new(vertices: Model) -> ShapeBuilder
[src]
Obtain a new ShapeBuilder
with vertices
fn push_solid(
&self,
display: &mut Display,
transform: Transform,
color: [f32; 4],
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
[src]
&self,
display: &mut Display,
transform: Transform,
color: [f32; 4],
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
Push a shape with a solid color
fn push_gradient(
&self,
display: &mut Display,
transform: Transform,
colors: Gradient,
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
[src]
&self,
display: &mut Display,
transform: Transform,
colors: Gradient,
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
Push a shape with shaded by a gradient (1 color per vertex)
fn push_texture(
&self,
display: &mut Display,
transform: Transform,
texture: Texture,
tc: TexCoords,
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
[src]
&self,
display: &mut Display,
transform: Transform,
texture: Texture,
tc: TexCoords,
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
Push a shape with a texture and texture coordinates
Texture Coordinates follow this format (X, Y, UNUSED(1.0), ALPHA)
fn push_faded(
&self,
display: &mut Display,
transform: Transform,
texture: Texture,
tc: TexCoords,
alpha: f32,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
[src]
&self,
display: &mut Display,
transform: Transform,
texture: Texture,
tc: TexCoords,
alpha: f32,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
Push a shape with a texture, texture coordinates and alpha
Texture Coordinates follow this format (X, Y, UNUSED(1.0), ALPHA)
fn push_tinted(
&self,
display: &mut Display,
transform: Transform,
texture: Texture,
tc: TexCoords,
tint: [f32; 4],
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
[src]
&self,
display: &mut Display,
transform: Transform,
texture: Texture,
tc: TexCoords,
tint: [f32; 4],
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
Push a shape with a texture and texture coordinates and tint
Texture Coordinates follow this format (X, Y, UNUSED(1.0), ALPHA)
fn push_complex(
&self,
display: &mut Display,
transform: Transform,
texture: Texture,
tc: TexCoords,
tints: Gradient,
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
[src]
&self,
display: &mut Display,
transform: Transform,
texture: Texture,
tc: TexCoords,
tints: Gradient,
blending: bool,
fancy: bool,
fog: bool,
camera: bool
) -> Shape
Push a shape with a texture and texture coordinates and tint per vertex
Texture Coordinates follow this format (X, Y, UNUSED(1.0), ALPHA)