-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModuleRenderer3D.h
More file actions
47 lines (32 loc) · 834 Bytes
/
ModuleRenderer3D.h
File metadata and controls
47 lines (32 loc) · 834 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
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include "Module.h"
#include "Globals.h"
#include "glmath.h"
#include "Light.h"
#include "FrameBuffer.h"
#define MAX_LIGHTS 8
class ModuleRenderer3D : public Module
{
public:
ModuleRenderer3D(Application* app, bool start_enabled = true);
~ModuleRenderer3D();
bool Init();
update_status PreUpdate(float dt);
update_status PostUpdate(float dt);
bool CleanUp();
void OnResize(int width, int height);
void checkRenderFilters();
static void SetSDLIcon(SDL_Window * window);
public:
FrameBuffer* fbo;
Light lights[MAX_LIGHTS];
SDL_GLContext context;
mat3x3 NormalMatrix;
mat4x4 ModelMatrix, ViewMatrix, ProjectionMatrix;
bool depth_active = true;
bool cullface_active = true;
bool lighting_active = true;
bool color_active = true;
bool texture_active = true;
bool wireframe_active = false;
};