Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Entity
- {
- public:
- Entity(EntityModel* iModel)
- : model(iModel)
- {
- sprite.setTexture(model->texture);
- }
- EntityModel* model;
- sf::Sprite sprite;
- }
- class EntityModel
- {
- public:
- sf::Texture texture;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement