Implement singleton class into application
This commit is contained in:
+4
-4
@@ -4,11 +4,11 @@
|
||||
class Game : public Inferno::Application
|
||||
{
|
||||
public:
|
||||
Game() {};
|
||||
~Game() {};
|
||||
Game() : Application({}) {}
|
||||
~Game() {}
|
||||
};
|
||||
|
||||
Inferno::Application* Inferno::createApplication()
|
||||
Inferno::Application& Inferno::getApplication()
|
||||
{
|
||||
return new Game();
|
||||
return Game::the();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user