Guest User

Framework.hpp

a guest
Mar 23rd, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #ifndef FRAMEWORK_HPP
  2. #define FRAMEWORK_HPP
  3.  
  4. #include <iostream>
  5. #include <list>
  6. #include <SFML\Graphics.hpp>
  7.  
  8. #include "Ball.hpp"
  9. #include "CollisionSystem.hpp"
  10. #include "BallManager.hpp"
  11.  
  12. class Framework
  13. {
  14. public:
  15.  
  16. Framework();
  17. ~Framework();
  18.  
  19. void run();
  20.  
  21. private:
  22.  
  23. void quit();
  24. void update(float frametime);
  25. void handleEvents();
  26. void render();
  27.  
  28. void calculateFrameTime();
  29.  
  30. sf::RenderWindow *pRenderWindow;
  31. sf::Event *pMainEvent;
  32. sf::Clock *pClock;
  33.  
  34. sf::Texture *pBackground;
  35. sf::Sprite *pSprite;
  36.  
  37. BallManager* pManager;
  38.  
  39. bool mRun;
  40. float mFrameTime;
  41. };
  42.  
  43. #endif
Add Comment
Please, Sign In to add comment