41 std::vector<std::pair<v3s16,scene::IMeshBuffer*>>
bufs;
54 void add(scene::IMeshBuffer *buf,
v3s16 position, u8 layer);
110 video::IVideoDriver* driver = SceneManager->getVideoDriver();
111 driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
112 renderMap(driver, SceneManager->getSceneNodeRenderPass());
123 void renderMap(video::IVideoDriver* driver, s32 pass);
126 int oldvalue,
bool *sunlight_seen_result);
131 virtual void PrintInfo(std::ostream &out);
139 BS * 1000000,
BS * 1000000,
BS * 1000000);
static v2f dir(const v2f &pos_dist)
Definition: camera.cpp:240
CameraMode
Definition: camera.h:71
Definition: clientmap.h:67
bool m_cache_anistropic_filter
Definition: clientmap.h:154
s32 mapType() const
Definition: clientmap.h:77
virtual void PrintInfo(std::ostream &out)
Definition: clientmap.cpp:604
Client * m_client
Definition: clientmap.h:136
virtual void OnRegisterSceneNode()
Definition: clientmap.cpp:108
f32 m_camera_fov
Definition: clientmap.h:145
ClientMap(Client *client, MapDrawControl &control, s32 id)
Definition: clientmap.cpp:65
v3s16 m_camera_offset
Definition: clientmap.h:146
void updateDrawList()
Definition: clientmap.cpp:146
int getBackgroundBrightness(float max_d, u32 daylight_factor, int oldvalue, bool *sunlight_seen_result)
Definition: clientmap.cpp:492
void getBlocksInViewRange(v3s16 cam_pos_nodes, v3s16 *p_blocks_min, v3s16 *p_blocks_max)
Definition: clientmap.cpp:119
void renderPostFx(CameraMode cam_mode)
Definition: clientmap.cpp:576
void updateCamera(const v3f &pos, const v3f &dir, f32 fov, const v3s16 &offset)
Definition: clientmap.h:87
std::map< v3s16, MapBlock * > m_drawlist
Definition: clientmap.h:148
virtual ~ClientMap()=default
aabb3f m_box
Definition: clientmap.h:138
void renderMap(video::IVideoDriver *driver, s32 pass)
Definition: clientmap.cpp:261
MapSector * emergeSector(v2s16 p)
Definition: clientmap.cpp:94
f32 getCameraFov() const
Definition: clientmap.h:134
v3f m_camera_position
Definition: clientmap.h:143
bool m_cache_trilinear_filter
Definition: clientmap.h:152
const MapDrawControl & getControl() const
Definition: clientmap.h:133
virtual void render()
Definition: clientmap.h:108
virtual const aabb3f & getBoundingBox() const
Definition: clientmap.h:115
MapDrawControl & m_control
Definition: clientmap.h:141
v3f m_camera_direction
Definition: clientmap.h:144
void drop()
Definition: clientmap.h:82
bool m_cache_bilinear_filter
Definition: clientmap.h:153
std::set< v2s16 > m_last_drawn_sectors
Definition: clientmap.h:150
Definition: mapsector.h:40
#define BS
Definition: constants.h:74
core::aabbox3d< f32 > aabb3f
Definition: irr_aabb3d.h:26
core::vector2d< s16 > v2s16
Definition: irr_v2d.h:27
core::vector3d< s16 > v3s16
Definition: irr_v3d.h:28
core::vector3df v3f
Definition: irr_v3d.h:26
#define MAPTYPE_CLIENT
Definition: map.h:59
Definition: activeobjectmgr.cpp:25
Definition: clientmap.h:29
float wanted_range
Definition: clientmap.h:33
bool range_all
Definition: clientmap.h:31
bool show_wireframe
Definition: clientmap.h:35
Definition: clientmap.h:45
void add(scene::IMeshBuffer *buf, v3s16 position, u8 layer)
Definition: clientmap.cpp:41
void clear()
Definition: clientmap.cpp:35
std::vector< MeshBufList > lists[MAX_TILE_LAYERS]
Definition: clientmap.h:51
Definition: clientmap.h:39
video::SMaterial m
Definition: clientmap.h:40
std::vector< std::pair< v3s16, scene::IMeshBuffer * > > bufs
Definition: clientmap.h:41
std::string p(std::string path)
Definition: test_filepath.cpp:59
#define MAX_TILE_LAYERS
Definition: tile.h:183