| 75 | |
| 76 | |
| 77 | void |
| 78 | SimpleRenderer::camera_params (const Matrix44 &world_to_camera, |
| 79 | ustring projection, float hfov, |
| 80 | float hither, float yon, |
| 81 | int xres, int yres) |
| 82 | { |
| 83 | m_world_to_camera = world_to_camera; |
| 84 | m_projection = projection; |
| 85 | m_fov = hfov; |
| 86 | m_pixelaspect = 1.0f; // hard-coded |
| 87 | m_hither = hither; |
| 88 | m_yon = yon; |
| 89 | m_shutter[0] = 0.0f; m_shutter[1] = 1.0f; // hard-coded |
| 90 | float frame_aspect = float(xres)/float(yres) * m_pixelaspect; |
| 91 | m_screen_window[0] = -frame_aspect; |
| 92 | m_screen_window[1] = -1.0f; |
| 93 | m_screen_window[2] = frame_aspect; |
| 94 | m_screen_window[3] = 1.0f; |
| 95 | m_xres = xres; |
| 96 | m_yres = yres; |
| 97 | } |
| 98 | |
| 99 | |
| 100 |
nothing calls this directly
no outgoing calls
no test coverage detected