#pragma once

#include "UIConstants.hpp"
#include <SDL.h>
#include <SDL_ttf.h>
#include <string>

namespace GModTeach {
namespace UI {

class Renderer {
public:
    static void DrawText(
        SDL_Renderer* renderer,
        TTF_Font* font,
        const std::string& text,
        int x,
        int y,
        SDL_Color color = CLR_WHITE
    );

    static void DrawCenteredText(
        SDL_Renderer* renderer,
        TTF_Font* font,
        const std::string& text,
        const SDL_Rect& bounds,
        SDL_Color color = CLR_WHITE
    );

    static void GetTextSize(
        TTF_Font* font,
        const std::string& text,
        int& outWidth,
        int& outHeight
    );
};

} 
} 
