forked from knela96/XMultiply-Arcade-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleRender.h
More file actions
32 lines (24 loc) · 759 Bytes
/
ModuleRender.h
File metadata and controls
32 lines (24 loc) · 759 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
32
#ifndef __ModuleRenderer_H__
#define __ModuleRenderer_H__
#include "Module.h"
#include "SDL\include\SDL_rect.h"
struct SDL_Renderer;
struct SDL_Texture;
class ModuleRender : public Module
{
public:
ModuleRender();
~ModuleRender();
bool Init();
update_status PostUpdate();
update_status Update();
update_status PreUpdate();
bool CleanUp();
bool Blit(SDL_Texture* texture, int x, int y, SDL_Rect* section, float speed = 1.0f, float angle = 0.0f, bool use_camera = true, bool flip_horizontal = false);
bool DrawQuad(const SDL_Rect& rect, Uint8 r, Uint8 g, Uint8 b, Uint8 a, bool use_camera = true);
bool changeColor(SDL_Texture* texture, bool white);
public:
SDL_Renderer* renderer = nullptr;
SDL_Rect camera;
};
#endif //__ModuleRenderer_H__