mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added love.window (issue #6.) All window-related functions have been moved from love.graphics to love.window.
love.graphics.setCaption has been renamed to love.window.setTitle.
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
|
||||
// LOVE
|
||||
#include "common/Module.h"
|
||||
#include <image/ImageData.h>
|
||||
#include "image/ImageData.h"
|
||||
#include "graphics/Graphics.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -55,7 +56,7 @@ public:
|
||||
|
||||
virtual ~Window();
|
||||
|
||||
virtual bool setWindow(int width = 800, int height = 600, WindowFlags *flags = 0) = 0;
|
||||
virtual bool setWindow(int width = 800, int height = 600, graphics::Graphics *graphics = 0, WindowFlags *flags = 0) = 0;
|
||||
virtual void getWindow(int &width, int &height, WindowFlags &flags) const = 0;
|
||||
|
||||
virtual bool checkWindowSize(int width, int height, bool fullscreen) const = 0;
|
||||
|
||||
Reference in New Issue
Block a user