Make changing window mode work

This commit is contained in:
2019-12-19 22:45:18 +01:00
parent 638009d729
commit 3efb05fac3
3 changed files with 139 additions and 27 deletions

View File

@@ -5,11 +5,19 @@ namespace openVulkanoCpp
{
class BaseWindow : virtual public IWindow
{
protected:
const int windowId;
WindowConfiguration windowConfig;
public:
BaseWindow() : windowId(CreateWindowId()) {}
virtual ~BaseWindow() = default;
const WindowConfiguration& GetWindowConfiguration() override
{
return windowConfig;
}
void GetSize(int* width, int* height) override = 0;
void GetSize(uint32_t* width, uint32_t* height) override
@@ -72,6 +80,16 @@ namespace openVulkanoCpp
return position;
}
const std::string& GetTitle() override
{
return windowConfig.title;
}
WindowMode GetWindowMode() override
{
return windowConfig.windowMode;
}
void SetPosition(int posX, int posY) override = 0;
void SetPosition(glm::ivec2 pos) override { SetPosition(pos.x, pos.y); }