-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModuleRender.h
More file actions
36 lines (28 loc) · 773 Bytes
/
ModuleRender.h
File metadata and controls
36 lines (28 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
32
33
34
35
36
#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 speedX = 1.0f,float speedY = 1.0f);
bool DrawQuad(const SDL_Rect& rect, Uint8 r, Uint8 g, Uint8 b, Uint8 a, bool use_camera = true);
public:
SDL_Renderer* renderer = nullptr;
SDL_Rect camera;
//float fCameraSpeed;
float currentCameraPosX;
//bool scroll = false;
//int cameraPosX;
bool exitGameLoop = false;
};
#endif //__ModuleRenderer_H__