| 29 | |
| 30 | |
| 31 | void Camera::update() |
| 32 | { |
| 33 | if(m_P_entity) |
| 34 | { |
| 35 | position = m_P_entity->position; |
| 36 | rotation = m_P_entity->rotation; |
| 37 | } |
| 38 | |
| 39 | m_viewMatrix = Maths::createViewMatrix(*this); |
| 40 | |
| 41 | m_projectionViewMatrix = m_projectionMatrix * m_viewMatrix; |
| 42 | m_frustum.update(m_projectionViewMatrix); |
| 43 | } |
| 44 | |
| 45 | void Camera::hookEntity(const Entity& entity) |
| 46 | { |
nothing calls this directly
no test coverage detected