Catchea
Topographic Data Browser
app.h
Go to the documentation of this file.
1 
7 #ifndef CATCHEA_APP_H
8 #define CATCHEA_APP_H
9 
10 #include <cstdio>
11 #include <cstdlib>
12 
13 struct GLFWwindow;
14 
15 #include <imgui.h>
16 #include <imgui_impl_glfw_gl3.h>
17 #include "real_tile/real_tile.h"
18 
19 struct MenuWidget;
20 struct MapWidget;
21 struct ControlWidget;
22 struct FooterWidget;
23 
24 #define APP_NAME "Catchea"
25 
26 struct App {
27 
28  GLFWwindow* window;
29 
30  RealTile* realTile;
31 
32  MenuWidget* menuWidget;
33  MapWidget* mapWidget;
34  ControlWidget* controlWidget;
35  FooterWidget* footerWidget;
36 };
37 
43 App* App__create();
44 
51 bool App__init(App* app);
52 
58 void App__run(App* app);
59 
65 void App__render(App* app);
66 
72 void App_file_open_request(App* app, const char* filename);
73 
80 bool App__terminate(App* app);
81 
87 void App__destroy(App* app);
88 
89 #endif //CATCHEA_APP_H
bool App__init(App *app)
Definition: app.cpp:47
void App_file_open_request(App *app, const char *filename)
Definition: app.cpp:183
Definition: map_widget.h:19
void App__render(App *app)
Definition: app.cpp:120
void App__destroy(App *app)
Definition: app.cpp:208
Definition: real_tile.h:14
Definition: app.h:26
App * App__create()
Definition: app.cpp:20
void App__run(App *app)
Definition: app.cpp:92
Definition: control_widget.h:16
bool App__terminate(App *app)
Definition: app.cpp:189
Definition: footer_widget.h:16
Definition: menu_widget.h:19