Implemented the splash screen and config file

This commit is contained in:
Kayne Ruse
2013-05-12 02:33:08 +10:00
parent 6a19d0a312
commit cc00129542
6 changed files with 104 additions and 53 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef SINGLETON_HPP_
#define SINGLETON_HPP_
/*
template<typename T>
class Singleton {
public:
static T* GetSingletonPtr() {
return &singleton;
}
static T& GetSingletonRef() {
return singleton;
}
private:
Singleton();
~Singleton();
Singleton(const Singleton&);
Singleton& operator=(const Singleton&);
Singleton(Singleton&&);
Singleton& operator=(Singleton&&);
static T singleton;
};
*/
template<typename T>
T* GetSingletonPtr() {
static T t;
return &t;
}
#endif