Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Entity
  2. {
  3.  public:
  4.     Entity(EntityModel* iModel)
  5.          : model(iModel)
  6.     {
  7.     }
  8.     EntityModel* model;
  9. }
  10.  
  11. class EntityModel
  12. {
  13. public:
  14.     sf::Texture texture;
  15. }
  16.  
  17.  
  18. void draw()
  19. {
  20.      sf::Sprite objects(entityObject.model->texture);
  21.      window.draw(objects);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement