Updated the new module changes to use more compile/link-time checking rather than runtime checking.

This commit is contained in:
Alex Szpakowski
2014-07-21 15:12:01 -03:00
parent 014b9a46e5
commit d52bab4221
30 changed files with 59 additions and 87 deletions
-5
View File
@@ -28,11 +28,6 @@ namespace window
Window *Window::singleton = nullptr;
Window::Window()
{
moduleType = M_WINDOW;
}
Window::~Window()
{
if (singleton == this)
+3 -1
View File
@@ -75,9 +75,11 @@ public:
int height;
};
Window();
virtual ~Window();
// Implements Module.
virtual ModuleType getModuleType() const { return M_WINDOW; }
virtual bool setWindow(int width = 800, int height = 600, WindowSettings *settings = nullptr) = 0;
virtual void getWindow(int &width, int &height, WindowSettings &settings) = 0;