23 lines
791 B
C++
23 lines
791 B
C++
// For the nested case, manages SDL window for input/output
|
|
|
|
#pragma once
|
|
|
|
#include <SDL.h>
|
|
#include <SDL_vulkan.h>
|
|
|
|
#define CLIPBOARD 0
|
|
#define PRIMARYSELECTION 1
|
|
|
|
bool sdlwindow_init( void );
|
|
void sdlwindow_shutdown( void );
|
|
|
|
void sdlwindow_update( void );
|
|
void sdlwindow_title( std::shared_ptr<std::string> title, std::shared_ptr<std::vector<uint32_t>> icon );
|
|
void sdlwindow_set_selection(std::string, int selection);
|
|
|
|
// called from other threads with interesting things have happened with clients that might warrant updating the nested window
|
|
void sdlwindow_visible( bool bVisible );
|
|
void sdlwindow_grab( bool bGrab );
|
|
void sdlwindow_cursor(std::shared_ptr<std::vector<uint32_t>> pixels, uint32_t width, uint32_t height, uint32_t xhot, uint32_t yhot);
|
|
|
|
extern SDL_Window *g_SDLWindow;
|