Added love.window.close (resolves issue #1059), and renamed love.window.isCreated to love.window.isOpen.

This commit is contained in:
Alex Szpakowski
2015-07-18 13:22:55 -03:00
parent 2cce18946d
commit 4cd725cee6
6 changed files with 54 additions and 58 deletions
+4 -2
View File
@@ -44,6 +44,8 @@ public:
bool setWindow(int width = 800, int height = 600, WindowSettings *settings = nullptr);
void getWindow(int &width, int &height, WindowSettings &settings);
void close();
bool setFullscreen(bool fullscreen, FullscreenType fstype);
bool setFullscreen(bool fullscreen);
@@ -60,7 +62,7 @@ public:
void setPosition(int x, int y, int displayindex);
void getPosition(int &x, int &y, int &displayindex);
bool isCreated() const;
bool isOpen() const;
void setWindowTitle(const std::string &title);
const std::string &getWindowTitle() const;
@@ -139,7 +141,7 @@ private:
} curMode;
bool created;
bool open;
bool mouseGrabbed;