Make changing window mode work
This commit is contained in:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user