A 2D tile-based sandbox game.
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
1234567891011121314151617181920212223 |
- #pragma once
-
- #include <SFML/Graphics/Image.hpp>
- #include <SFML/Graphics/Texture.hpp>
-
- namespace Swan {
-
- class Asset {
- public:
- Asset(std::string path): path_(path) {}
-
- bool load(const std::string &pfx);
-
- std::string name_;
- std::string path_;
- sf::Image image_;
- sf::Texture tex_;
-
- static Asset INVALID_ASSET;
- static void initGlobal();
- };
-
- }
|