Struct cuivre::graphics::sprites::Sprite [−][src]
Represents one tile of a sprite sheet.
Fields
x: i32
y: i32
Methods
impl<'s> Sprite<'s>
[src]
impl<'s> Sprite<'s>
pub fn texture(&self) -> &'s Texture
[src]
pub fn texture(&self) -> &'s Texture
Texture used by this sprite.
pub fn gl_position(&self) -> Vector4f
[src]
pub fn gl_position(&self) -> Vector4f
Position of the sprite on the texture as OpenGL coordinates.