summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.rs b/src/main.rs
index 717599d..ade657e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -7,7 +7,6 @@ use std::path::Path;
use alligator_scripts::ScriptManager;
use alligator_sprites::SpriteManager;
use alligator_sys::{Renderer, RendererConfig, Window, WindowConfig, WindowEvent};
-use alligator_textures::TextureManager;
use serde::Deserialize;
use sha3::{Digest, Sha3_256};
@@ -65,19 +64,6 @@ pub struct Config {
vsync: bool,
}
-fn texture_manager(config: &Config) -> TextureManager {
- let mut textures = TextureManager::new(config.default_textures_size_target);
- for (key, texture) in config.textures.iter() {
- textures.add_texture(
- key.clone().into(),
- texture.path.clone().into(),
- texture.size,
- );
- }
-
- textures
-}
-
fn sprite_manager(config: &Config) -> SpriteManager {
SpriteManager::with_capacity(config.sprite_manager_capacity as usize)
}
@@ -137,7 +123,6 @@ fn main() {
let config = File::open("game.json").unwrap();
let config: Config = serde_json::from_reader(config).unwrap();
- let textures = texture_manager(&config);
let sprites = sprite_manager(&config);
let scripts = script_manager(&config);
let mut window = window(&config);