Handle title and window flags

This commit is contained in:
Joshua Granick
2014-07-09 15:39:02 -07:00
parent 9b6fced383
commit 10a2a74cd8
6 changed files with 93 additions and 33 deletions

View File

@@ -18,14 +18,32 @@ namespace lime {
public:
Application* currentApplication;
int flags;
};
Window* CreateWindow (Application* application, int width, int height, int flags);
Window* CreateWindow (Application* application, int width, int height, int flags, const char* title);
enum WindowFlags {
WINDOW_FLAG_FULLSCREEN = 0x00000001,
WINDOW_FLAG_BORDERLESS = 0x00000002,
WINDOW_FLAG_RESIZABLE = 0x00000004,
WINDOW_FLAG_HARDWARE = 0x00000008,
WINDOW_FLAG_VSYNC = 0x00000010,
WINDOW_FLAG_HW_AA = 0x00000020,
WINDOW_FLAG_HW_AA_HIRES = 0x00000060,
WINDOW_FLAG_ALLOW_SHADERS = 0x00000080,
WINDOW_FLAG_REQUIRE_SHADERS = 0x00000100,
WINDOW_FLAG_DEPTH_BUFFER = 0x00000200,
WINDOW_FLAG_STENCIL_BUFFER = 0x00000400
};
}