Now mostly working with GUECS but shaders are still busted. Have to find out why they stopped working.
This commit is contained in:
parent
a5f6a82611
commit
ac22a11c9f
27 changed files with 162 additions and 1210 deletions
10
textures.hpp
10
textures.hpp
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue