Mercurial > hg > old > magoroku_racing
diff camera.cc @ 128:d9e3137e70a0
xml name change
author | e085768 |
---|---|
date | Thu, 07 Jul 2011 16:10:21 +0900 |
parents | 6ef3b0efdeaf |
children |
line wrap: on
line diff
--- a/camera.cc Wed Jul 06 21:46:37 2011 +0900 +++ b/camera.cc Thu Jul 07 16:10:21 2011 +0900 @@ -16,7 +16,6 @@ void camera_init() { - //カメラの初期位置設定 def_camera.xyz[0] = 0; def_camera.xyz[1] =-7;// -3; @@ -41,7 +40,6 @@ //def_cameraをcameraにコピー memcpy( &camera, &def_camera, sizeof(CAMERA)); set_camera(&def_camera); - } /* @@ -65,8 +63,8 @@ camera_update(Game *game, FMATRIX pose) { FVECTOR location, eyes, vertical, angle; - - //int type = game->camera_type; + + //int type = game->camera_type; ps2_vu0_apply_matrix(location, pose, def_camera.xyz); ps2_vu0_apply_matrix(eyes, pose, def_camera.zd); @@ -95,11 +93,17 @@ def_camera.angle[1]-=0.02; } } + ps2_vu0_apply_matrix(angle, pose, def_camera.angle); ps2_vu0_copy_vector(camera.xyz, location); ps2_vu0_copy_vector(camera.zd, eyes); ps2_vu0_copy_vector(camera.yd, vertical); ps2_vu0_copy_vector(camera.angle, angle); set_camera(&camera); - } + + +CAMERA get_MagorokuCamera( void ) +{ + return camera; +}