]> git.localhorst.tv Git - blobs.git/blobdiff - src/graphics/viewport.cpp
randomize creature properties a bit
[blobs.git] / src / graphics / viewport.cpp
index 9e22a260eeb12072eb75ea5931be9b666009d0c1..ac0b9e5c5b7c1516ea2795f615f581bc50861c4a 100644 (file)
@@ -1,7 +1,7 @@
 #include "Camera.hpp"
 #include "Viewport.hpp"
 
-#include "../const.hpp"
+#include "../math/const.hpp"
 #include "../world/Body.hpp"
 
 #include <cmath>
@@ -152,5 +152,9 @@ void Viewport::Clear() {
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 }
 
+void Viewport::ClearDepth() {
+       glClear(GL_DEPTH_BUFFER_BIT);
+}
+
 }
 }