Advertisement
Guest User

Untitled

a guest
May 20th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class Singleton
  2. {
  3. private:
  4. Singleton();
  5. public:
  6. sf::RenderWindow renderWindow;
  7. static Singleton & getSingleton()
  8. {
  9. static Singleton singleton;
  10. return singleton;
  11. }
  12.  
  13. };
  14. static Singleton & singletonClass()
  15. {
  16. return Singleton::getSingleton();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement