Files
gopher64/parallel-rdp/wsi_platform.hpp
T
Logan McNaughton 4da7cd0551 Update parallel-rdp WSI integration (#61)
* Update parallel-rdp WSI integration

* fix build

* disable mac build
2024-05-27 13:23:56 -06:00

23 lines
646 B
C++

#pragma once
#include "wsi.hpp"
#include <SDL.h>
class SDL_WSIPlatform : public Vulkan::WSIPlatform
{
public:
VkSurfaceKHR create_surface(VkInstance instance, VkPhysicalDevice gpu) override;
void destroy_surface(VkInstance instance, VkSurfaceKHR surface) override;
std::vector<const char *> get_instance_extensions() override;
uint32_t get_surface_width() override;
uint32_t get_surface_height() override;
bool alive(Vulkan::WSI &wsi) override;
void poll_input() override;
void poll_input_async(Granite::InputTrackerHandler *handler) override;
void set_window(SDL_Window *_window);
void do_resize();
private:
SDL_Window *window;
};