-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleRender.h
27 lines (22 loc) · 885 Bytes
/
ModuleRender.h
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
#pragma once
#include "Module.h"
#include "Globals.h"
#include "SDL\include\SDL.h"
class ModuleRender : public Module
{
public:
ModuleRender(Application* app, bool start_enabled = true);
~ModuleRender();
bool Init();
update_status PreUpdate();
update_status Update();
update_status PostUpdate();
bool CleanUp();
bool Blit(SDL_Texture* texture, int x, int y, SDL_Rect* section = NULL, float speed = 1.0f, double angle = 0, int pivot_x = INT_MAX, int pivot_y = INT_MAX);
bool DrawQuad(const SDL_Rect& rect, Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255, bool filled = true, bool use_camera = true);
bool DrawLine(int x1, int y1, int x2, int y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255, bool use_camera = true);
bool DrawCircle(int x1, int y1, int redius, Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255, bool use_camera = true);
public:
SDL_Renderer* renderer;
SDL_Rect camera;
};