aurora/lib/window.hpp

24 lines
543 B
C++
Raw Permalink Normal View History

2022-07-27 15:25:25 +00:00
#pragma once
#include <aurora/aurora.h>
#include <aurora/event.h>
struct SDL_Window;
struct SDL_Renderer;
namespace aurora::window {
bool initialize();
void shutdown();
bool create_window(AuroraBackend backend);
bool create_renderer();
void destroy_window();
void show_window();
AuroraWindowSize get_window_size();
const AuroraEvent* poll_events();
SDL_Window* get_sdl_window();
SDL_Renderer* get_sdl_renderer();
void set_title(const char* title);
void set_fullscreen(bool fullscreen);
bool get_fullscreen();
2022-07-27 15:25:25 +00:00
}; // namespace aurora::window