diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-01 00:38:55 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-01 00:38:55 +0100 |
| commit | 1d5f5482f91391a6dfee9ec0e7cb0a22ee5f0464 (patch) | |
| tree | 80e1dff12390aa36ec532da655136e4b83b6ccf3 /lib/nes/app/ui/screen-title.hh | |
| parent | ccb81b60dac888e44079fb0228c1d5d8542ceade (diff) | |
implement screens
Diffstat (limited to 'lib/nes/app/ui/screen-title.hh')
| -rw-r--r-- | lib/nes/app/ui/screen-title.hh | 22 |
1 files changed, 22 insertions, 0 deletions
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 |
