]> git.lizzy.rs Git - minetest.git/blobdiff - src/clientmap.h
Performance Improvement: Use a cache which caches result for getFacePositions.
[minetest.git] / src / clientmap.h
index e695411be593916695a4616c03449e95ac2e8524..492e23fa5e98d61c5066ffb831bc580090777c32 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>
 
@@ -126,7 +127,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);
@@ -153,6 +154,10 @@ class ClientMap : public Map, public scene::ISceneNode
        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