mirror of
https://github.com/gopher64/gopher64.git
synced 2026-10-31 19:47:19 +01:00
* pause on backgroun for android * more * more * more * more * more * more * more * more * more * add check * update gradle
25 lines
780 B
C++
25 lines
780 B
C++
#pragma once
|
|
|
|
#include "wsi.hpp"
|
|
#include <SDL3/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();
|
|
bool is_surface_valid() const { return surface_valid; }
|
|
|
|
private:
|
|
SDL_Window *window;
|
|
bool surface_valid = false;
|
|
};
|