-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.h
More file actions
46 lines (35 loc) · 736 Bytes
/
app.h
File metadata and controls
46 lines (35 loc) · 736 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
#ifndef APP
#define APP
#include <glad/glad.h>
#include <GL/gl.h>
#include <GLFW/glfw3.h>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/glm.hpp>
#include <stdexcept>
#include <iostream>
#include "fishHandler.h"
#include "fishRenderer.h"
#include "global.h"
#include "serializer.h"
#include "imgui/imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
class App{
public:
App();
~App();
void Run();
bool isRunning();
private:
GLFWwindow* window;
FishRenderer* renderer;
FishHandler* handler;
float last_frame;
bool o_first_touch;
bool inputing_text;
void process_input();
void handle_imgui();
void update_limit_framerate();
};
#endif // !APP