mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Updated the new module changes to use more compile/link-time checking rather than runtime checking.
This commit is contained in:
@@ -28,11 +28,6 @@ namespace window
|
||||
|
||||
Window *Window::singleton = nullptr;
|
||||
|
||||
Window::Window()
|
||||
{
|
||||
moduleType = M_WINDOW;
|
||||
}
|
||||
|
||||
Window::~Window()
|
||||
{
|
||||
if (singleton == this)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user