diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-01 14:21:04 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-01 14:29:12 +0100 |
| commit | bf88e17d552d85cd18bc31757ef9d73049b327c4 (patch) | |
| tree | bf46e60bef0fc2247c44cf2291fbfa38765a7b98 /lib/nes/app/ui/screen-title.cc | |
| parent | cbde52a60605a4fe853d3a3562b2a059e2143e6e (diff) | |
implement text rendering
Diffstat (limited to 'lib/nes/app/ui/screen-title.cc')
| -rw-r--r-- | lib/nes/app/ui/screen-title.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/nes/app/ui/screen-title.cc b/lib/nes/app/ui/screen-title.cc index 2a7bc5c..f1e4f98 100644 --- a/lib/nes/app/ui/screen-title.cc +++ b/lib/nes/app/ui/screen-title.cc @@ -1,7 +1,8 @@ #include "nes/app/ui/screen-title.hh" #include "nes/app/graphics/renderer.hh" #include "nes/app/graphics/color.hh" -#include "nes/app/graphics/mask-tile.hh" +#include "nes/app/graphics/tiles/banner.hh" +#include "nes/app/graphics/tiles/icons.hh" #include "nes/app/input/input-manager.hh" namespace nes::app @@ -14,8 +15,10 @@ namespace nes::app auto screen_title::render(renderer& renderer) -> void { renderer.render_fill(color::background_primary); - renderer.render_rect(2, 4, 28, 8, color::accent_primary); - renderer.render_mask_tile(10, 16, tiles::letter_a, color::foreground_primary); + renderer.render_text(10, 16, "Hello, world!", color::foreground_primary); + renderer.render_mask_tile(14, 18, tiles::icon_directory, color::accent_primary); + renderer.render_mask_tile(16, 18, tiles::icon_cartridge, color::accent_primary); + renderer.render_image(2, 4, tiles::banner); } auto screen_title::process_events() -> action |
