Cleanup of GUECS and the textures manager.
This commit is contained in:
parent
438bd8ab8a
commit
4e7f837240
4 changed files with 31 additions and 28 deletions
|
@ -10,7 +10,6 @@
|
|||
namespace textures {
|
||||
|
||||
struct SpriteTexture {
|
||||
std::string name;
|
||||
std::shared_ptr<sf::Sprite> sprite = nullptr;
|
||||
std::shared_ptr<sf::Texture> texture = nullptr;
|
||||
};
|
||||
|
@ -25,9 +24,9 @@ namespace textures {
|
|||
|
||||
void init();
|
||||
|
||||
SpriteTexture get(std::string name);
|
||||
SpriteTexture get(const std::string& name);
|
||||
|
||||
sf::Image load_image(std::string filename);
|
||||
sf::Image load_image(const std::string& filename);
|
||||
|
||||
const uint32_t* get_surface(size_t num);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue