Changed the OpenGL part and the GLSL shaders to use UBO and
[demo] / src / camera.cc
index b3ad077..7de5501 100644 (file)
@@ -3,16 +3,10 @@
 #include <gmath/gmath.h>
 
 #include "camera.h"
-#include "state_manager.h"
 
 Camera::Camera() {}
 Camera::~Camera() {}
 
-void Camera::use() const
-{
-       state_manager.set_state("st_view_matrix", get_view_matrix());
-}
-
 OrbitCamera::OrbitCamera()
 {
        phi = theta = distance = 0;
@@ -63,4 +57,4 @@ void OrbitCamera::set_position(float x, float y, float z)
        position.x = x;
        position.y = y;
        position.z = z;
-}
\ No newline at end of file
+}