Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Singleton
- {
- private:
- Singleton();
- public:
- sf::RenderWindow renderWindow;
- static Singleton & getSingleton()
- {
- static Singleton singleton;
- return singleton;
- }
- };
- static Singleton & singletonClass()
- {
- return Singleton::getSingleton();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement