24 lines
539 B
C++
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
|