16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 01:59:19 +02:00

map window improvements

This commit is contained in:
milek7
2019-10-05 15:14:13 +02:00
parent fece956ffd
commit bb1c0d6895
2 changed files with 33 additions and 17 deletions

View File

@@ -97,6 +97,8 @@ class map_panel : public ui_panel
glm::vec2 translate;
float zoom = 1.0f / 1000.0f;
enum { MODE_MANUAL = 0, MODE_CAMERA, MODE_VEHICLE } mode = MODE_MANUAL;
float get_vehicle_rotation();
void render_map_texture(glm::mat4 transform, glm::vec2 surface_size);
void render_labels(glm::mat4 transform, ImVec2 origin, glm::vec2 surface_size);