added windowFlag to WindowData so client can specify the first window's flags when application is created
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
namespace SakuraVNE {
|
namespace SakuraVNE {
|
||||||
struct WindowData {
|
struct WindowData {
|
||||||
|
std::span<const SDL_WindowFlags> windowFlags;
|
||||||
std::string title = "Window Title";
|
std::string title = "Window Title";
|
||||||
int width = 1280;
|
int width = 1280;
|
||||||
int height = 720;
|
int height = 720;
|
||||||
@@ -30,9 +31,7 @@ public:
|
|||||||
void Destroy();
|
void Destroy();
|
||||||
|
|
||||||
void Update();
|
void Update();
|
||||||
// TODO: implement
|
|
||||||
void AddFlags(std::span<const SDL_WindowFlags> flags = {});
|
void AddFlags(std::span<const SDL_WindowFlags> flags = {});
|
||||||
// TODO: implement
|
|
||||||
void RemoveFlags(std::span<const SDL_WindowFlags> flags = {});
|
void RemoveFlags(std::span<const SDL_WindowFlags> flags = {});
|
||||||
void Resize();
|
void Resize();
|
||||||
void ProcessEvent(const SDL_Event &event);
|
void ProcessEvent(const SDL_Event &event);
|
||||||
|
|||||||
Reference in New Issue
Block a user