#include "presentation/overlays/watermark/WatermarkOverlayRenderer.h"

#include "presentation/fonts/MenuFontAtlas.h"
#include "presentation/runtime/Viewport.h"

namespace ta::presentation::overlays::watermark
{
void WatermarkOverlayRenderer::draw(ImDrawList* draw_list, const WatermarkOverlayData& data)
{
    if (!draw_list || !data.enabled)
        return;

    draw_list->AddText(
        ta::presentation::fonts::hud_font(),
        static_cast<float>(data.font_size) * ta::presentation::runtime::scale_factor(),
        {10.0f, 10.0f},
        ImGui::GetColorU32(data.color),
        data.text.c_str());
}
}
