2022-02-19 05:33:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-06-01 00:40:46 +00:00
|
|
|
struct SDL_Renderer;
|
2022-02-19 05:33:56 +00:00
|
|
|
struct SDL_Window;
|
|
|
|
union SDL_Event;
|
|
|
|
|
|
|
|
namespace wgpu {
|
|
|
|
class RenderPassEncoder;
|
|
|
|
} // namespace wgpu
|
|
|
|
|
2022-02-26 20:38:08 +00:00
|
|
|
namespace aurora {
|
|
|
|
struct WindowSize;
|
|
|
|
} // namespace aurora
|
|
|
|
|
2022-02-19 05:33:56 +00:00
|
|
|
namespace aurora::imgui {
|
|
|
|
void create_context() noexcept;
|
2022-06-01 00:40:46 +00:00
|
|
|
void initialize(SDL_Window* window, SDL_Renderer* renderer) noexcept;
|
2022-02-19 05:33:56 +00:00
|
|
|
void shutdown() noexcept;
|
|
|
|
|
|
|
|
void process_event(const SDL_Event& event) noexcept;
|
2022-02-26 20:38:08 +00:00
|
|
|
void new_frame(const WindowSize& size) noexcept;
|
2022-02-19 05:33:56 +00:00
|
|
|
void render(const wgpu::RenderPassEncoder& pass) noexcept;
|
|
|
|
} // namespace aurora::imgui
|