Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef SINGLETON_HPP
- #define SINGLETON_HPP
- #include <SFML/Graphics.hpp>
- class Singleton
- {
- private:
- Singleton();
- public:
- sf::RenderWindow renderWindow;
- static Singleton & getSingleton()
- {
- static Singleton singleton;
- return singleton;
- }
- };
- static Singleton & singletonClass()
- {
- return Singleton::getSingleton();
- }
- #endif // SINGLETON_HPP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement