Catchea
Topographic Data Browser
map_widget.h
Go to the documentation of this file.
1 
7 #ifndef CATCHEA_MAP_WIDGET_H
8 #define CATCHEA_MAP_WIDGET_H
9 
10 #include <cstdlib>
11 
12 #include <imgui.h>
13 #include <vector>
14 
15 #include "resource_manager.h"
16 
17 struct App;
18 
19 struct MapWidget {
20 
21  Texture texTile;
22 
23  App* app;
24 
25 };
26 
33 
42 bool MapWidget__init(MapWidget* mw, App* app);
43 
51 void MapWidget__render(MapWidget* mw, const ImVec2& window_pos, const ImVec2& window_size);
52 
61 
68 
69 #endif //CATCHEA_MAP_WIDGET_H
void MapWidget__render(MapWidget *mw, const ImVec2 &window_pos, const ImVec2 &window_size)
Definition: map_widget.cpp:65
Definition: map_widget.h:19
bool MapWidget__init(MapWidget *mw, App *app)
Definition: map_widget.cpp:44
MapWidget * MapWidget__create()
Definition: map_widget.cpp:23
void MapWidget__destroy(MapWidget *mw)
Definition: map_widget.cpp:226
Definition: app.h:26
bool MapWidget__terminate(MapWidget *mw)
Definition: map_widget.cpp:218
Represents texture with dimensions and id in OpenGL.
Definition: resource_manager.h:19