From 30b4364c772114303d9045677186a53855ea5343 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Thu, 6 Feb 2025 16:28:39 +0100 Subject: implement in-game popups --- lib/nes/app/graphics/renderer.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/nes/app/graphics/renderer.hh') diff --git a/lib/nes/app/graphics/renderer.hh b/lib/nes/app/graphics/renderer.hh index 9b764a6..83cafb3 100644 --- a/lib/nes/app/graphics/renderer.hh +++ b/lib/nes/app/graphics/renderer.hh @@ -37,6 +37,8 @@ namespace nes::app auto operator=(renderer const&) -> renderer& = delete; auto operator=(renderer&&) -> renderer& = delete; + auto get_display() const -> display& { return display_; } + /// Render a colored tile at the given tile coordinates. auto render_image_tile(i32 x, i32 y, image_tile const&) -> void; /// Render an alpha-only tile at the given tile coordinates with the given color. @@ -66,6 +68,8 @@ namespace nes::app /// Render a rectangle at the given tile coordinates with a given size (measured in tiles). auto render_rect(i32 x, i32 y, u32 width, u32 height, color) -> void; + /// Render a border around a rectangle with the given size (measured in tiles). + auto render_border(i32 x, i32 y, u32 width, u32 height, color) -> void; /// Completely fill the screen. auto render_fill(color) -> void; -- cgit v1.3.1