Now mostly working with GUECS but shaders are still busted. Have to find out why they stopped working.

This commit is contained in:
Zed A. Shaw 2025-05-10 11:06:38 -04:00
parent a5f6a82611
commit ac22a11c9f
27 changed files with 162 additions and 1210 deletions

View file

@ -5,12 +5,10 @@
#include <SFML/Graphics.hpp>
#include <unordered_map>
#include <memory>
#include "matrix.hpp"
namespace textures {
struct SpriteTexture {
std::string name;
std::shared_ptr<sf::Sprite> sprite = nullptr;
std::shared_ptr<sf::Texture> texture = nullptr;
};
@ -23,11 +21,7 @@ namespace textures {
void init();
SpriteTexture get(std::string name);
SpriteTexture get(const std::string& name);
sf::Image load_image(std::string filename);
const uint32_t* get_surface(size_t num);
matrix::Matrix convert_char_to_texture(matrix::Matrix &from);
sf::Image load_image(const std::string& filename);
}