Refactor code
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
{
|
||||
namespace RenderAPI
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "IWindow.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
@@ -80,6 +87,11 @@ namespace openVulkanoCpp
|
||||
return position;
|
||||
}
|
||||
|
||||
bool HasTitle() override
|
||||
{
|
||||
return WindowMode::WINDOWED == GetWindowMode();
|
||||
}
|
||||
|
||||
const std::string& GetTitle() override
|
||||
{
|
||||
return windowConfig.title;
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
#include <glm/glm.hpp>
|
||||
@@ -35,6 +42,7 @@ namespace openVulkanoCpp
|
||||
|
||||
virtual void Init(RenderAPI::RenderApi renderApi) = 0;
|
||||
|
||||
virtual bool HasTitle() = 0;
|
||||
virtual const std::string& GetTitle() = 0;
|
||||
virtual void SetTitle(const std::string& title) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user