piston2d-sprite 0.69.0

A library for sprite hierarchy and scene management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate graphics;

use self::graphics::ImageSize;

pub struct FakeTexture;

impl FakeTexture {
    pub fn new() -> Self { FakeTexture }
}

impl ImageSize for FakeTexture {
    fn get_size(&self) -> (u32, u32) { (32, 32) }
    fn get_width(&self) -> u32 { 32 }
    fn get_height(&self) -> u32 { 32 }
}