Struct hate::Sprite
[−]
[src]
pub struct Sprite { /* fields omitted */ }
Methods
impl Sprite
[src]
fn from_path<P: AsRef<Path>>(context: &mut Context, path: P, size: f32) -> Self
fn from_path_rect<P: AsRef<Path>>(
context: &mut Context,
path: P,
size: Size<f32>
) -> Self
context: &mut Context,
path: P,
size: Size<f32>
) -> Self
fn from_mesh(mesh: RMesh) -> Self
fn is_same(&self, other: &Self) -> bool
fn pos(&self) -> Point
fn set_pos(&mut self, pos: Point)
fn set_color(&mut self, color: [f32; 4])
fn color(&self) -> [f32; 4]
fn size(&self) -> Size<f32>
fn draw(&self, context: &mut Context, parent_matrix: Matrix4<f32>)
Trait Implementations
impl Debug for Sprite
[src]
impl Clone for Sprite
[src]
fn clone(&self) -> Sprite
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more