mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
c05e7aace1
This is a breaking change: `GXSetViewport`, `GXSetScissor`, `GXSetTexCopySrc`, `GXSetTexCopyDst` now accept logical coords relative to the `VIConfigure` EFB size. `GXSetViewportRender` and `GXSetScissorRender` are used to override the scaled viewport/scissor from the logical coords.
28 lines
712 B
C++
28 lines
712 B
C++
#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();
|
|
void set_window_size(uint32_t width, uint32_t height);
|
|
void set_window_position(uint32_t x, uint32_t y);
|
|
void center_window();
|
|
void set_frame_buffer_scale(float scale);
|
|
}; // namespace aurora::window
|