34#define MINIMAP_MAX_SX 512
35#define MINIMAP_MAX_SY 512
135 const std::string &texture =
"", u16 scale = 1);
149 video::IImage *heightmap_image);
Definition texturesource.h:45
void enqueueBlock(v3s16 pos, MinimapMapblock *data)
Definition minimap.cpp:81
virtual void doUpdate()
Definition minimap.cpp:88
virtual ~MinimapUpdateThread()
Definition minimap.cpp:34
bool popBlockUpdate(QueuedMinimapUpdate *update)
Definition minimap.cpp:68
std::deque< QueuedMinimapUpdate > m_update_queue
Definition minimap.h:111
MinimapData * data
Definition minimap.h:104
std::mutex m_queue_mutex
Definition minimap.h:110
bool pushBlockUpdate(v3s16 pos, MinimapMapblock *data)
Definition minimap.cpp:45
std::map< v3s16, MinimapMapblock * > m_blocks_cache
Definition minimap.h:112
void getMap(v3s16 pos, s16 size, s16 height)
Definition minimap.cpp:120
MinimapUpdateThread()
Definition minimap.h:96
ITextureSource * m_tsrc
Definition minimap.h:164
Client * client
Definition minimap.h:160
std::list< MinimapMarker * > m_markers
Definition minimap.h:175
size_t getModeIndex() const
Definition minimap.h:138
std::mutex m_mutex
Definition minimap.h:174
MinimapUpdateThread * m_minimap_update_thread
Definition minimap.h:167
video::IVideoDriver * driver
Definition minimap.h:159
bool m_enable_shaders
Definition minimap.h:169
void addBlock(v3s16 pos, MinimapMapblock *data)
Definition minimap.cpp:243
void setMinimapShape(MinimapShape shape)
Definition minimap.cpp:257
void blitMinimapPixelsToImageRadar(video::IImage *map_image)
Definition minimap.cpp:400
void setModeIndex(size_t index)
Definition minimap.cpp:279
~Minimap()
Definition minimap.cpp:220
void addMode(MinimapModeDef mode)
Definition minimap.cpp:297
size_t m_current_mode_index
Definition minimap.h:171
scene::SMeshBuffer * m_meshbuffer
Definition minimap.h:168
v3s16 getPos() const
Definition minimap.h:125
MinimapShape getMinimapShape()
Definition minimap.cpp:270
video::ITexture * getMinimapTexture()
Definition minimap.cpp:470
void setPos(v3s16 pos)
Definition minimap.cpp:377
void removeMarker(MinimapMarker **marker)
Definition minimap.cpp:695
IShaderSource * m_shdrsrc
Definition minimap.h:165
MinimapMarker * addMarker(scene::ISceneNode *parent_node)
Definition minimap.cpp:688
size_t getMaxModeIndex() const
Definition minimap.h:139
v3f getYawVec()
Definition minimap.cpp:543
const NodeDefManager * m_ndef
Definition minimap.h:166
std::vector< MinimapModeDef > m_modes
Definition minimap.h:170
f32 getAngle() const
Definition minimap.h:127
MinimapData * data
Definition minimap.h:161
Minimap(Client *client)
Definition minimap.cpp:178
scene::SMeshBuffer * getMinimapMeshBuffer()
Definition minimap.cpp:555
void nextMode()
Definition minimap.cpp:366
void blitMinimapPixelsToImageSurface(video::IImage *map_image, video::IImage *heightmap_image)
Definition minimap.cpp:416
f32 m_angle
Definition minimap.h:173
video::IImage * getMinimapMask()
Definition minimap.cpp:447
void toggleMinimapShape()
Definition minimap.cpp:248
void setAngle(f32 angle)
Definition minimap.cpp:395
MinimapModeDef getModeDef() const
Definition minimap.h:142
void clearModes()
Definition minimap.h:132
void drawMinimap(core::rect< s32 > rect)
Definition minimap.cpp:578
u16 m_surface_mode_scan_height
Definition minimap.h:172
std::list< v2f > m_active_markers
Definition minimap.h:176
void updateActiveMarkers()
Definition minimap.cpp:702
This class is for getting the actual properties of nodes from their content ID.
Definition nodedef.h:556
#define MAP_BLOCKSIZE
Definition constants.h:79
MinimapType
Definition hud.h:123
core::vector3d< s16 > v3s16
Definition irr_v3d.h:28
core::vector3df v3f
Definition irr_v3d.h:26
MinimapShape
Definition minimap.h:37
@ MINIMAP_SHAPE_SQUARE
Definition minimap.h:38
@ MINIMAP_SHAPE_ROUND
Definition minimap.h:39
#define MINIMAP_MAX_SY
Definition minimap.h:35
#define MINIMAP_MAX_SX
Definition minimap.h:34
Definition activeobjectmgr.cpp:26
MinimapPixel minimap_scan[MINIMAP_MAX_SX *MINIMAP_MAX_SY]
Definition minimap.h:75
video::ITexture * minimap_overlay_square
Definition minimap.h:84
video::IImage * minimap_mask_square
Definition minimap.h:79
v3s16 old_pos
Definition minimap.h:74
video::ITexture * minimap_overlay_round
Definition minimap.h:83
video::ITexture * object_marker_red
Definition minimap.h:86
MinimapModeDef mode
Definition minimap.h:72
video::ITexture * texture
Definition minimap.h:80
bool textures_initialised
Definition minimap.h:82
video::ITexture * heightmap_texture
Definition minimap.h:81
video::ITexture * player_marker
Definition minimap.h:85
video::IImage * minimap_mask_round
Definition minimap.h:78
bool map_invalidated
Definition minimap.h:76
v3s16 pos
Definition minimap.h:73
bool minimap_shape_round
Definition minimap.h:77
void getMinimapNodes(VoxelManipulator *vmanip, const v3s16 &pos)
Definition minimap.cpp:736
MinimapPixel data[MAP_BLOCKSIZE *MAP_BLOCKSIZE]
Definition minimap.h:68
scene::ISceneNode * parent_node
Definition minimap.h:56
MinimapMarker(scene::ISceneNode *parent_node)
Definition minimap.h:52
MinimapType type
Definition minimap.h:43
u16 scale
Definition minimap.h:48
std::string label
Definition minimap.h:44
u16 map_size
Definition minimap.h:46
std::string texture
Definition minimap.h:47
u16 scan_height
Definition minimap.h:45
u16 height
Definition minimap.h:61
u16 air_count
Definition minimap.h:62
MapNode n
The topmost node that the minimap displays.
Definition minimap.h:60
v3s16 pos
Definition minimap.h:90
MinimapMapblock * data
Definition minimap.h:91