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