Refactor code

This commit is contained in:
2020-09-26 21:13:14 +02:00
parent 4f2122a2be
commit 079b55f0d0
9 changed files with 548 additions and 403 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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;