mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Rework internal module registration to happen in constructors.
This commit is contained in:
@@ -131,9 +131,6 @@ public:
|
||||
|
||||
virtual ~Window();
|
||||
|
||||
// Implements Module.
|
||||
virtual ModuleType getModuleType() const { return M_WINDOW; }
|
||||
|
||||
virtual void setGraphics(graphics::Graphics *graphics) = 0;
|
||||
|
||||
virtual bool setWindow(int width = 800, int height = 600, WindowSettings *settings = nullptr) = 0;
|
||||
@@ -239,6 +236,10 @@ public:
|
||||
static bool getConstant(DisplayOrientation in, const char *&out);
|
||||
static std::vector<std::string> getConstants(DisplayOrientation);
|
||||
|
||||
protected:
|
||||
|
||||
Window(const char *name);
|
||||
|
||||
private:
|
||||
|
||||
static StringMap<Setting, SETTING_MAX_ENUM>::Entry settingEntries[];
|
||||
|
||||
Reference in New Issue
Block a user