#include "assets.h"

GameAssets::GameAssets(const std::string& path)
{
    auto sprites = od::TexAtlasPack::loadAtlasFromJsonFile(
                path + "/sprites.json");
    tex_pack.addAtlas("sprites", sprites);
    
    const std::string shaders_path = path + "/shaders/";
    //shader_pack.verbose = true;
    od::Json json_shaders(od::filepath(shaders_path + "/shaders.json"));
    shader_pack.loadShaders(json_shaders, shaders_path);
    shader_pack.initUniforms(json_shaders);
}