Remove TextureManager.

This commit is contained in:
2015-11-18 08:49:09 +01:00
parent 2ba792a8fd
commit 4edfc9a67e

View File

@@ -1,4 +1,3 @@
use std::collections::HashMap;
use sdl2::render::{Texture, Renderer}; use sdl2::render::{Texture, Renderer};
use sdl2::rect::Rect; use sdl2::rect::Rect;
@@ -9,17 +8,6 @@ pub trait Sprite {
} }
pub struct TextureManager<'a> {
textures: HashMap<String, &'a Texture>
}
impl<'a> TextureManager<'a> {
pub fn insert_texture(&mut self, key: String, texture: &'a Texture) {
self.textures.insert(key, texture);
}
}
pub struct StaticSprite<'a> { pub struct StaticSprite<'a> {
texture: &'a Texture, texture: &'a Texture,
x: i32, x: i32,