From 1d5f5482f91391a6dfee9ec0e7cb0a22ee5f0464 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Sat, 1 Feb 2025 00:38:55 +0100 Subject: implement screens --- lib/nes/app/ui/screen-title.hh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/nes/app/ui/screen-title.hh (limited to 'lib/nes/app/ui/screen-title.hh') diff --git a/lib/nes/app/ui/screen-title.hh b/lib/nes/app/ui/screen-title.hh new file mode 100644 index 0000000..a8dfdc5 --- /dev/null +++ b/lib/nes/app/ui/screen-title.hh @@ -0,0 +1,22 @@ +#pragma once + +#include "nes/app/ui/screen.hh" + +namespace nes::app +{ + class input_manager; + + /// The main title screen for the emulator, used as an entrypoint for the UI. + /// + /// Presents options to load games, adjust settings, and more. + class screen_title final : public screen + { + input_manager& input_manager_; + + public: + explicit screen_title(input_manager&); + + auto render(renderer&) -> void override; + auto process_events() -> action override; + }; +} // namespace nes::app \ No newline at end of file -- cgit v1.3.1