]> git.lizzy.rs Git - minetest.git/blobdiff - src/clientmap.h
Add '/clearobjects quick'
[minetest.git] / src / clientmap.h
index e695411be593916695a4616c03449e95ac2e8524..d9239b52e19eacddfe7122b87a4055418ee3cbd7 100644 (file)
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "irrlichttypes_extrabloated.h"
 #include "map.h"
+#include "camera.h"
 #include <set>
 #include <map>
 
@@ -88,7 +89,6 @@ class ClientMap : public Map, public scene::ISceneNode
 
        void updateCamera(v3f pos, v3f dir, f32 fov, v3s16 offset)
        {
-               JMutexAutoLock lock(m_camera_mutex);
                m_camera_position = pos;
                m_camera_direction = dir;
                m_camera_fov = fov;
@@ -126,7 +126,7 @@ class ClientMap : public Map, public scene::ISceneNode
        int getBackgroundBrightness(float max_d, u32 daylight_factor,
                        int oldvalue, bool *sunlight_seen_result);
 
-       void renderPostFx();
+       void renderPostFx(CameraMode cam_mode);
 
        // For debug printing
        virtual void PrintInfo(std::ostream &out);
@@ -148,11 +148,14 @@ class ClientMap : public Map, public scene::ISceneNode
        v3f m_camera_direction;
        f32 m_camera_fov;
        v3s16 m_camera_offset;
-       JMutex m_camera_mutex;
 
        std::map<v3s16, MapBlock*> m_drawlist;
        
        std::set<v2s16> m_last_drawn_sectors;
+
+       bool m_cache_trilinear_filter;
+       bool m_cache_bilinear_filter;
+       bool m_cache_anistropic_filter;
 };
 
 #endif