mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-24 10:44:28 -05:00
25 lines
966 B
C++
25 lines
966 B
C++
#pragma once
|
|
#include "sdl.hpp"
|
|
#include "ui/ColorMod.hpp"
|
|
|
|
// These are just functions to render generic parts of the UI.
|
|
namespace ui
|
|
{
|
|
/// @brief Renders a dialog box
|
|
/// @param target Target to render to.
|
|
/// @param x X coordinate to render to.
|
|
/// @param y Y coordinate to render to.
|
|
/// @param width Width of dialog box in pixels.
|
|
/// @param height Height of dialog box in pixels.
|
|
void render_dialog_box(SDL_Texture *target, int x, int y, int width, int height);
|
|
|
|
/// @brief Renders a bounding box.
|
|
/// @param target Target to render to.
|
|
/// @param x X coordinate to render to.
|
|
/// @param y Y coordinate to render to.
|
|
/// @param width Width of dialog box in pixels.
|
|
/// @param height Height of dialog box in pixels.
|
|
/// @param colorMod Color to multiply in rendering.
|
|
void render_bounding_box(SDL_Texture *target, int x, int y, int width, int height, const ui::ColorMod &colorMod);
|
|
} // namespace ui
|