mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-22 20:17:46 +00:00
Qt5 for macOS can actually use the same code as on Linux/Win, but apparently no one wants to build it with Vulkan support. Instead, we spawn a standalone SDL2 window.
20 lines
No EOL
307 B
C++
20 lines
No EOL
307 B
C++
#pragma once
|
|
|
|
#include "renderer.hpp"
|
|
|
|
struct SDL_Window;
|
|
|
|
class StandaloneWindow {
|
|
public:
|
|
StandaloneWindow(Renderer* renderer);
|
|
|
|
VkSurfaceKHR getSurface(VkInstance instance);
|
|
|
|
void render();
|
|
|
|
std::vector<RenderModel> models;
|
|
|
|
private:
|
|
Renderer* m_renderer;
|
|
SDL_Window* m_window;
|
|
}; |