Advertisement
Guest User

Untitled

a guest
May 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #ifndef SINGLETON_HPP
  2. #define SINGLETON_HPP
  3. #include <SFML/Graphics.hpp>
  4.  
  5. class Singleton
  6. {
  7. private:
  8. Singleton();
  9. public:
  10. sf::RenderWindow renderWindow;
  11. static Singleton & getSingleton()
  12. {
  13. static Singleton singleton;
  14. return singleton;
  15. }
  16.  
  17. };
  18. static Singleton & singletonClass()
  19. {
  20. return Singleton::getSingleton();
  21. }
  22.  
  23.  
  24. #endif // SINGLETON_HPP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement