summaryrefslogtreecommitdiff
path: root/lib/nes/app/graphics/renderer.hh
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-02-06 19:54:38 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-02-06 19:54:38 +0100
commit64ebfde8bcd6408e3b6925624e8680c314db6efc (patch)
treeb969314f909f7f16ef5acc63f90dca317a40850a /lib/nes/app/graphics/renderer.hh
parentd060e3a50c987d10799ccc739bdbf9d7d7a13c10 (diff)
get rid of nasty stdlib
Diffstat (limited to 'lib/nes/app/graphics/renderer.hh')
-rw-r--r--lib/nes/app/graphics/renderer.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/nes/app/graphics/renderer.hh b/lib/nes/app/graphics/renderer.hh
index 2e24ad3..50ca092 100644
--- a/lib/nes/app/graphics/renderer.hh
+++ b/lib/nes/app/graphics/renderer.hh
@@ -3,8 +3,8 @@
#include "nes/app/graphics/color.hh"
#include "nes/app/graphics/text-attributes.hh"
#include "nes/common/containers/string-builder.hh"
+#include "nes/common/containers/string-view.hh"
#include "nes/common/types.hh"
-#include <string_view>
namespace nes
{
@@ -46,11 +46,11 @@ namespace nes::app
/// Render an image at the given tile coordinates.
auto render_image(i32 x, i32 y, image_view) -> void;
/// Render a string of text at the given tile coordinates (one tile per character).
- auto render_text(i32 x, i32 y, std::string_view, color, text_attributes = text_attributes{}) -> u32;
+ auto render_text(i32 x, i32 y, string_view, color, text_attributes = text_attributes{}) -> u32;
template<typename... Args>
auto render_text_format(
- i32 const x, i32 const y, color const c, text_attributes const attrs, std::string_view const fmt,
+ i32 const x, i32 const y, color const c, text_attributes const attrs, string_view const fmt,
Args... args) -> u32
{
string_buffer<width> buffer{};
@@ -60,7 +60,7 @@ namespace nes::app
template<typename... Args>
auto render_text_format(
- i32 const x, i32 const y, color const c, std::string_view const fmt, Args... args) -> u32
+ i32 const x, i32 const y, color const c, string_view const fmt, Args... args) -> u32
{
return render_text_format(x, y, c, text_attributes{}, fmt, args...);
}