diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2016-02-18 17:17:17 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2016-02-19 21:31:22 +0100 |
commit | 5f4ed94d90668af58a3e677e7401f0028871acce (patch) | |
tree | d56f02cc677ba239711d935c5a38aac8a0300432 /src/minimap.h | |
parent | 5dbaa689677e89ee10e2c6e3a4e8eb57b79f3140 (diff) | |
download | minetest-5f4ed94d90668af58a3e677e7401f0028871acce.tar.gz minetest-5f4ed94d90668af58a3e677e7401f0028871acce.tar.bz2 minetest-5f4ed94d90668af58a3e677e7401f0028871acce.zip |
Minimap: show player markers
Diffstat (limited to 'src/minimap.h')
-rw-r--r-- | src/minimap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/minimap.h b/src/minimap.h index dd1397d54..743b2bff2 100644 --- a/src/minimap.h +++ b/src/minimap.h @@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <map> #include <string> #include <vector> +#include "camera.h" #define MINIMAP_MAX_SX 512 #define MINIMAP_MAX_SY 512 @@ -82,6 +83,7 @@ struct MinimapData { video::ITexture *minimap_overlay_round; video::ITexture *minimap_overlay_square; video::ITexture *player_marker; + video::ITexture *object_marker_red; }; struct QueuedMinimapUpdate { @@ -138,9 +140,12 @@ public: video::IImage *heightmap_image); scene::SMeshBuffer *getMinimapMeshBuffer(); + + void updateActiveMarkers(); void drawMinimap(); video::IVideoDriver *driver; + Client* client; MinimapData *data; private: @@ -153,6 +158,7 @@ private: u16 m_surface_mode_scan_height; f32 m_angle; Mutex m_mutex; + std::list<v2f> m_active_markers; }; #endif |