mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-04-09 10:24:54 -05:00
19 lines
753 B
C++
19 lines
753 B
C++
#pragma once
|
|
#include "sdl.hpp"
|
|
#include <string_view>
|
|
// This file contains basic graphics functions various parts of JKSV use.
|
|
|
|
namespace gfxutil
|
|
{
|
|
/// @brief Generates a generic icon for saves and titles that lack one.
|
|
/// @param text Text to be centered and rendered to the icon.
|
|
/// @param fontSize
|
|
/// @param background Background color to use.
|
|
/// @param foreground Color to use to render the text.
|
|
/// @return sdl::SharedTexture of the icon.
|
|
sdl::SharedTexture create_generic_icon(std::string_view text,
|
|
int fontSize,
|
|
sdl::Color background,
|
|
sdl::Color foreground);
|
|
} // namespace gfxutil
|