-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGame.h
More file actions
41 lines (29 loc) · 810 Bytes
/
Game.h
File metadata and controls
41 lines (29 loc) · 810 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
#pragma once
#include <string>
#include <vector>
#include "camera.h"
#include "GameObject.h"
#include "Atmosphere.h"
#include "ApplicationInputHandler.h"
class Game {
public:
Game();
~Game();
Camera* camera;
bool Init();
void Update(float deltaTime);
void BindInput();
void DrawFrame();
void ShutDown();
void SetRunning(bool &runningFlag) {running = &runningFlag;}
private:
bool* running;
GameObject* terrain;
Atmosphere* sky;
ApplicationInputHandler inputHandler;
/*bool hasStencilComponent(VkFormat format) {
return format == VK_FORMAT_D32_SFLOAT_S8_UINT || format == VK_FORMAT_D24_UNORM_S8_UINT;
}*/
//void mouse_callback(GLFWwindow* window, double xposIn, double yposIn);
bool* enableMouseCallback = new bool(true);
};