Files
OpenVulkano/openVulkanoCpp/Host/GLFW/PlatformGLFW.hpp
2020-10-28 01:13:11 +01:00

40 lines
780 B
C++

/*
* 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 "Base/IPlatform.hpp"
#include "InputProviderGLFW.hpp"
namespace openVulkanoCpp
{
class IWindow;
namespace GLFW
{
class PlatformGLFW final : public IPlatform
{
std::vector<std::unique_ptr<IWindow>> windows;
InputProviderGLFW inputProvider;
bool initialized = false;
public:
PlatformGLFW() = default;
~PlatformGLFW() override;
[[nodiscard]] bool IsInitialized() const { return initialized; }
void Init() override;
void Tick() override;
void Close() override;
IWindow* MakeWindow() override;
};
}
}