Struct adi_screen::SpriteList
[−]
[src]
#[must_use]pub struct SpriteList(_, _, _, _, _, _);
Builder for multiple Sprite
s.
Methods
impl SpriteList
[src]
pub fn new(model: Model) -> SpriteList
[src]
Create a new list of Sprite
s.
pub fn transform(self, transform: Transform) -> SpriteList
[src]
Set the transform.
pub fn model(self, model: Model) -> SpriteList
[src]
Set the model.
pub fn alpha(self) -> Self
[src]
Enable alpha blending for following sprites.
pub fn opaque(self) -> Self
[src]
Disable all alpha blending for following sprites.
pub fn fog_cam(self) -> Self
[src]
Enable fog and camera.
pub fn gui(self) -> Self
[src]
Disable fog and camera.
pub fn camera(self) -> Self
[src]
Camera without fog.
pub fn solid(self, window: &mut Window, color: [f32; 4]) -> Self
[src]
Create a sprite with a solid color.
pub fn gradient(self, window: &mut Window, colors: Gradient) -> Self
[src]
Create a sprite shaded by a gradient (1 color per vertex).
pub fn texture(
self,
window: &mut Window,
texture: Texture,
tc: TexCoords
) -> Self
[src]
self,
window: &mut Window,
texture: Texture,
tc: TexCoords
) -> Self
Create a sprite with a texture and texture coordinates.
pub fn faded(
self,
window: &mut Window,
texture: Texture,
tc: TexCoords,
alpha: f32
) -> Self
[src]
self,
window: &mut Window,
texture: Texture,
tc: TexCoords,
alpha: f32
) -> Self
Create a sprite with a texture, texture coordinates and alpha.
Automatically Enables Alpha Blending. (no need to call alpha()
)
pub fn tinted(
self,
window: &mut Window,
texture: Texture,
tc: TexCoords,
tint: [f32; 4]
) -> Self
[src]
self,
window: &mut Window,
texture: Texture,
tc: TexCoords,
tint: [f32; 4]
) -> Self
Create a sprite with a texture and texture coordinates and tint.
pub fn complex(
self,
window: &mut Window,
texture: Texture,
tc: TexCoords,
tint_pv: Gradient
) -> Self
[src]
self,
window: &mut Window,
texture: Texture,
tc: TexCoords,
tint_pv: Gradient
) -> Self
Create a sprite with a texture and texture coordinates and tint per vertex.
pub fn to_vec(self) -> Vec<Sprite>
[src]
Convert into a Vec
of Sprite
s
pub fn only(self) -> Sprite
[src]
Convert into 1 Sprite
if there's only 1 in the list.