mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
23 lines
498 B
C++
23 lines
498 B
C++
#pragma once
|
|
|
|
#include "aurora/aurora.h"
|
|
#include "webgpu/gpu.hpp"
|
|
|
|
#include <SDL3/SDL_events.h>
|
|
#include <aurora/rmlui.hpp>
|
|
#include <dawn/webgpu_cpp.h>
|
|
|
|
namespace aurora::rmlui {
|
|
|
|
struct RecordedFrame {
|
|
wgpu::BindGroup bindGroup;
|
|
bool overlay = false;
|
|
};
|
|
|
|
void initialize(const AuroraWindowSize& size) noexcept;
|
|
void handle_event(SDL_Event& event) noexcept;
|
|
RecordedFrame record_frame(const webgpu::Viewport& presentViewport) noexcept;
|
|
void shutdown() noexcept;
|
|
|
|
} // namespace aurora::rmlui
|