Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. class Entity
  2. {
  3.  public:
  4.     Entity(EntityModel* iModel)
  5.          : model(iModel)
  6.     {
  7.          sprite.setTexture(model->texture);
  8.     }
  9.     EntityModel* model;
  10.     sf::Sprite sprite;
  11. }
  12.  
  13. class EntityModel
  14. {
  15. public:
  16.     sf::Texture texture;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement