| 46 | } |
| 47 | |
| 48 | void Camera::reshape(float w, float h) |
| 49 | { |
| 50 | float dw = w - size.x; |
| 51 | float dh = h - size.y; |
| 52 | float cx = position.x + size.x / 2; |
| 53 | float cy = position.y + size.y / 2; |
| 54 | size.x += dw; |
| 55 | size.y += dh; |
| 56 | position.x = cx - size.x / 2; |
| 57 | position.y = cy - size.y / 2; |
| 58 | } |
| 59 | |
| 60 | void Camera::moveToTarget() |
| 61 | { |
nothing calls this directly
no outgoing calls
no test coverage detected