goat3dgfx
diff src/camera.cc @ 12:1868c5975f31
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 24 Nov 2013 18:18:38 +0200 |
parents | d061fe1a31ec |
children | 7d6b667821cf |
line diff
1.1 --- a/src/camera.cc Sun Nov 24 14:00:14 2013 +0200 1.2 +++ b/src/camera.cc Sun Nov 24 18:18:38 2013 +0200 1.3 @@ -1,5 +1,6 @@ 1.4 #include "opengl.h" 1.5 #include "camera.h" 1.6 +#include "unistate.h" 1.7 #include "vr.h" 1.8 1.9 Camera::Camera() 1.10 @@ -37,12 +38,12 @@ 1.11 1.12 void Camera::use() const 1.13 { 1.14 - mult_matrix(matrix()); 1.15 + set_view_matrix(matrix()); 1.16 } 1.17 1.18 void Camera::use_inverse() const 1.19 { 1.20 - mult_matrix(inv_matrix()); 1.21 + set_view_matrix(inv_matrix()); 1.22 } 1.23 1.24 void Camera::input_move(float x, float y, float z)