aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/include/uiRenderer.h
blob: 286ac1f8a3ed6a5fa928356f4e162d104097c74a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include "uiObject.h"

class UIRenderer {
public:
    UIRenderer(SDL_Renderer* renderer);
    void render(UIObject* uiObject);

private:
    SDL_Renderer* renderer;

    void renderButton(Button* button);
    void renderText(Text* text);
    void renderTextInput(TextInput* textInput);
};