GameKit  0.0.1a
C++ gamedev tools
ResourceHandler.cpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: ResourceHandler.cpp
5  *
6  * Description:
7  *
8  * Created: 17/01/2018 19:30:47
9  *
10  * Author: Quentin Bazin, <quent42340@gmail.com>
11  *
12  * =====================================================================================
13  */
15 
16 namespace gk {
17 
18 ResourceHandler *ResourceHandler::instance = nullptr;
19 
21  return *instance;
22 }
23 
25  instance = &handler;
26 }
27 
28 }
29 
static ResourceHandler & getInstance()
static ResourceHandler * instance
static void setInstance(ResourceHandler &handler)