| 37 | void add_camera_tweaks(); |
| 38 | |
| 39 | void xCameraInit(xCamera* cam, U32 width, U32 height) |
| 40 | { |
| 41 | xCameraFXInit(); |
| 42 | |
| 43 | cam->lo_cam = iCameraCreate(width, height, 1); |
| 44 | |
| 45 | xCameraSetFOV(cam, 75.0f); |
| 46 | |
| 47 | cam->bound.sph.center.x = 0.0f; |
| 48 | cam->bound.sph.center.y = 0.0f; |
| 49 | cam->bound.sph.center.z = 0.0f; |
| 50 | cam->bound.sph.r = 0.5f; |
| 51 | cam->tgt_mat = NULL; |
| 52 | cam->tgt_omat = NULL; |
| 53 | cam->tgt_bound = NULL; |
| 54 | cam->sc = NULL; |
| 55 | cam->tran_accum.x = 0.0f; |
| 56 | cam->tran_accum.y = 0.0f; |
| 57 | cam->tran_accum.z = 0.0f; |
| 58 | |
| 59 | add_camera_tweaks(); |
| 60 | } |
| 61 | |
| 62 | void add_camera_tweaks() |
| 63 | { |
no test coverage detected