Files
rogue/source/rogue.cpp
2026-04-17 00:02:29 -03:00

24 lines
539 B
C++

#include "rogue.hpp"
namespace rog {
rogue::rogue(logger *log)
: log(log), display(&user_input, {1920, 1080}, "Rogue PT"),
context(&display) {
if (!context.rtx_supported) {
log->warn("rtx is not supported on {}. inline ray tracing and ray tracing "
"pipeline will not be available",
context.gpu_name);
}
}
void rogue::stop() { close_requested = true; }
void rogue::run() {
while (!close_requested.load() && !display.should_close()) {
display.poll_events();
}
}
} // namespace rog