[BROKEN] This build is totally broken. DONOT USE.
This commit is contained in:
parent
8dc70ad1ed
commit
f3f2e90cd2
15 changed files with 123 additions and 81 deletions
|
@ -38,6 +38,26 @@ namespace guecs {
|
|||
string name;
|
||||
};
|
||||
|
||||
struct SpriteTexture {
|
||||
std::shared_ptr<sf::Sprite> sprite = nullptr;
|
||||
std::shared_ptr<sf::Texture> texture = nullptr;
|
||||
};
|
||||
|
||||
class Backend {
|
||||
public:
|
||||
virtual SpriteTexture texture_get(const string& name) = 0;
|
||||
|
||||
virtual void sound_play(const string& name) = 0;
|
||||
|
||||
virtual void sound_stop(const string& name) = 0;
|
||||
|
||||
virtual std::shared_ptr<sf::Shader> shader_get(const std::string& name) = 0;
|
||||
|
||||
virtual bool shader_updated() = 0;
|
||||
};
|
||||
|
||||
void init(Backend* backend);
|
||||
|
||||
class UI {
|
||||
public:
|
||||
Entity MAIN = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue