]> git.localhorst.tv Git - gworm.git/blobdiff - src/app/Application.h
speed up rendering by caching world texture
[gworm.git] / src / app / Application.h
index 23815d34460fe64b0815db3cf9111ea1a04cb2b8..5b46f9c9a1aa4bf094ba8af7ecbdac7e827b3d34 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "../graphics/Camera.h"
 #include "../graphics/Moveable.h"
+#include "../graphics/Texture.h"
 #include "../graphics/Vector.h"
 
 #include <SDL.h>
@@ -40,6 +41,8 @@ private:
        Canvas &canvas;
        World &world;
 
+       Texture worldTex;
+
        Moveable<float> focus;
        Camera cam;