Window talks to a PlatformWindow created by createPlatformWindow, and WaylandWindow is the Linux implementation. This lets another platform provide the window without touching Window or the code above it.
17 lines
251 B
C++
17 lines
251 B
C++
#pragma once
|
|
|
|
#include "Window.hpp"
|
|
|
|
#include "VulkanContext.hpp"
|
|
#include "PlatformWindow.hpp"
|
|
|
|
#include <memory>
|
|
|
|
namespace tp {
|
|
|
|
class Window::Context {
|
|
public:
|
|
std::unique_ptr<PlatformWindow> platform;
|
|
VulkanContext* vulkan = nullptr;
|
|
};
|
|
}
|