Support exiting GPU Test

This commit is contained in:
2024-01-03 22:44:13 -06:00
parent 21efede7cb
commit 376cf02697
5 changed files with 80 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "font_writer.hpp"
#include <FontWriter/font_writer.hpp>
#include <PSX/Timer/frame_timer.hpp>
namespace Menu {
using namespace JabyEngine;
@@ -29,4 +30,21 @@ namespace Menu {
void update(JabyEngine::FontWriter& font_writer, State& cursor, const GPU::PositionI16& start);
};
class BackMenu {
private:
JabyEngine::FontWriter* font_writer;
SimpleTimer<uint32_t> timeout;
bool waiting;
public:
void setup(JabyEngine::FontWriter* font_writer);
void reset() {
this->timeout.reset();
this->waiting = false;
}
bool update(const GPU::PositionI16& position);
void render();
};
}