73 virtual void render()
override;
81 v3s16 *p_blocks_min,
v3s16 *p_blocks_max,
float range=-1.0f);
88 void renderMap(video::IVideoDriver* driver, s32 pass);
91 const video::SMaterial &material, s32 pass,
int frame,
int total_frames);
94 int oldvalue,
bool *sunlight_seen_result);
99 void PrintInfo(std::ostream &out)
override;
111 void reportMetrics(u64 save_time_us, u32 saved_blocks, u32 all_blocks)
override;
129 return distance_left > distance_right || (distance_left == distance_right && left > right);
157 u32
draw(video::IVideoDriver* driver);
164 BS * 1000000,
BS * 1000000,
BS * 1000000);
static v2f dir(const v2f &pos_dist)
Definition camera.cpp:191
CameraMode
Definition camera.h:60
Definition clientmap.h:121
MapBlockComparer(const v3s16 &camera_block)
Definition clientmap.h:123
v3s16 m_camera_block
Definition clientmap.h:133
bool operator()(const v3s16 &left, const v3s16 &right) const
Definition clientmap.h:125
Definition clientmap.h:46
bool m_cache_anistropic_filter
Definition clientmap.h:184
std::map< v3s16, MapBlock *, MapBlockComparer > m_drawlist
Definition clientmap.h:175
void updateDrawListShadow(v3f shadow_light_pos, v3f shadow_light_dir, float radius, float length)
Definition clientmap.cpp:1251
bool m_enable_raytraced_culling
Definition clientmap.h:188
bool m_needs_update_transparent_meshes
Definition clientmap.h:173
ClientMap(Client *client, RenderingEngine *rendering_engine, MapDrawControl &control, s32 id)
Definition clientmap.cpp:81
void reportMetrics(u64 save_time_us, u32 saved_blocks, u32 all_blocks) override
Definition clientmap.cpp:1305
Client * m_client
Definition clientmap.h:160
f32 m_camera_fov
Definition clientmap.h:170
const MapDrawControl & getControl() const
Definition clientmap.h:101
virtual ~ClientMap()
Definition clientmap.cpp:126
virtual void OnRegisterSceneNode() override
Definition clientmap.cpp:168
f32 getWantedRange() const
Definition clientmap.h:102
v3s16 m_camera_offset
Definition clientmap.h:171
bool m_loops_occlusion_culler
Definition clientmap.h:187
void updateDrawList()
Definition clientmap.cpp:266
int getBackgroundBrightness(float max_d, u32 daylight_factor, int oldvalue, bool *sunlight_seen_result)
Definition clientmap.cpp:969
void updateCamera(v3f pos, v3f dir, f32 fov, v3s16 offset, video::SColor light_color)
Definition clientmap.cpp:131
void renderPostFx(CameraMode cam_mode)
Definition clientmap.cpp:1054
void touchMapBlocks()
Definition clientmap.cpp:631
void onSettingChanged(std::string_view name, bool all)
Definition clientmap.cpp:110
std::map< v3s16, MapBlock * > m_drawlist_shadow
Definition clientmap.h:177
aabb3f m_box
Definition clientmap.h:163
bool maySaveBlocks() override
Definition clientmap.h:55
void renderMap(video::IVideoDriver *driver, s32 pass)
Definition clientmap.cpp:700
video::SColor m_camera_light_color
Definition clientmap.h:172
virtual const aabb3f & getBoundingBox() const override
Definition clientmap.h:75
bool m_needs_update_drawlist
Definition clientmap.h:178
virtual void render() override
Definition clientmap.cpp:181
f32 getCameraFov() const
Definition clientmap.h:103
MapSector * emergeSector(v2s16 p) override
Definition clientmap.cpp:154
std::vector< MapBlock * > m_keeplist
Definition clientmap.h:176
v3f m_camera_position
Definition clientmap.h:168
bool m_cache_trilinear_filter
Definition clientmap.h:182
RenderingEngine * m_rendering_engine
Definition clientmap.h:161
void PrintInfo(std::ostream &out) override
Definition clientmap.cpp:1089
MapDrawControl & m_control
Definition clientmap.h:166
u16 m_cache_transparency_sorting_distance
Definition clientmap.h:185
void renderMapShadows(video::IVideoDriver *driver, const video::SMaterial &material, s32 pass, int frame, int total_frames)
Definition clientmap.cpp:1094
v3f m_camera_direction
Definition clientmap.h:169
bool needsUpdateDrawList()
Definition clientmap.h:87
void updateTransparentMeshBuffers()
Definition clientmap.cpp:1310
bool m_cache_bilinear_filter
Definition clientmap.h:183
void getBlocksInViewRange(v3s16 cam_pos_nodes, v3s16 *p_blocks_min, v3s16 *p_blocks_max, float range=-1.0f)
Definition clientmap.cpp:188
std::set< v2s16 > m_last_drawn_sectors
Definition clientmap.h:180
bool isMeshOccluded(MapBlock *mesh_block, u16 mesh_size, v3s16 cam_pos_nodes)
Definition clientmap.cpp:1370
Definition texturesource.h:36
Definition mapsector.h:25
Definition mapblock_mesh.h:135
Definition renderingengine.h:68
#define BS
Definition constants.h:61
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector2d< s16 > v2s16
Definition irr_v2d.h:12
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition activeobjectmgr.cpp:11
Definition clientmap.h:30
Definition clientmap.h:35
Definition clientmap.h:138
video::SMaterial & getMaterial()
Definition clientmap.cpp:1354
bool m_use_partial_buffer
Definition clientmap.h:145
u32 draw(video::IVideoDriver *driver)
Definition clientmap.cpp:1359
scene::IMeshBuffer * m_buffer
Definition clientmap.h:141
v3s16 m_pos
Definition clientmap.h:139
DrawDescriptor(v3s16 pos, const PartialMeshBuffer *buffer)
Definition clientmap.h:151
DrawDescriptor(v3s16 pos, scene::IMeshBuffer *buffer, bool reuse_material)
Definition clientmap.h:147
bool m_reuse_material
Definition clientmap.h:144
const PartialMeshBuffer * m_partial_buffer
Definition clientmap.h:142
Definition clientmap.h:14
float wanted_range
Definition clientmap.h:16
bool allow_noclip
Definition clientmap.h:20
bool range_all
Definition clientmap.h:18
bool show_wireframe
Definition clientmap.h:22
static std::string p(std::string path)
Definition test_filesys.cpp:53