Mercurial > hg > Game > Cerium
diff Renderer/Engine/Camera.cc @ 1129:a8bffdb5d2e3 draft
bus error
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 13 Feb 2011 07:20:55 +0900 |
parents | 294bc9364bee |
children | 67927f3a6655 |
line wrap: on
line diff
--- a/Renderer/Engine/Camera.cc Mon Feb 14 02:24:28 2011 +0900 +++ b/Renderer/Engine/Camera.cc Sun Feb 13 07:20:55 2011 +0900 @@ -114,6 +114,9 @@ */ Camera::Camera(float w, float h, SceneGraphRoot *sgroot_) { + + printf("camera \n"); + name = (char*)"Camera"; sgroot = sgroot_; @@ -146,16 +149,13 @@ this->set_move_collision(camera_move, camera_collision, (void *)sgroot); -#if SPE_CREATE_POLYGON - -#endif - for(int i = 0; i < 16; i++) { real_matrix[i] = 0; if (i % 5 == 0) { real_matrix[i] = 1; } - } + } + update(w,h); // to make matrix[] }