-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrenderer.h
More file actions
31 lines (27 loc) · 773 Bytes
/
Copy pathrenderer.h
File metadata and controls
31 lines (27 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef RENDERER_H
#define RENDERER_H
#include <SDL.h>
#include <SDL_ttf.h>
#include <SDL_image.h>
#include <string>
#include <vector>
#include "theme.h"
#include "types.h"
class Renderer {
public:
Renderer();
~Renderer();
bool initialize();
void clear();
void present();
void drawText(const std::string& text, int x, int y, SDL_Color color);
void drawRoundedRect(SDL_Rect rect, int radius, int thickness);
void drawProgressBar(int progress, const std::string& title, const std::vector<std::string>& queuedTitles);
void drawImage(const std::string& imagePath, SDL_Rect rect);
void drawMessageBox(const std::string& message);
private:
SDL_Window* window;
SDL_Renderer* renderer;
TTF_Font* font;
};
#endif // RENDERER_H