Moved everything around to let meson build the libraries, but I suspect I have too much SFML support gear for it to be useable.

This commit is contained in:
Zed A. Shaw 2025-05-07 12:21:34 -04:00
parent 560f506733
commit 838f54a4f4
22 changed files with 36 additions and 26 deletions

View file

@ -1,27 +0,0 @@
#pragma once
#include <cstdint>
#include <vector>
#include <string>
#include <SFML/Graphics.hpp>
#include <unordered_map>
#include <memory>
#include <nlohmann/json.hpp>
namespace shaders {
struct Record {
std::string name;
std::string file_name;
std::shared_ptr<sf::Shader> ptr = nullptr;
};
struct ShaderManager {
std::unordered_map<std::string, Record> shaders;
};
std::shared_ptr<sf::Shader> get(const std::string& name);
void init();
bool load_shader(std::string& name, nlohmann::json& settings);
bool updated(int my_version);
int reload();
int version();
}