| 38 | } |
| 39 | |
| 40 | void Camera::setOrthoMatrix() |
| 41 | { |
| 42 | glMatrixMode(GL_PROJECTION); |
| 43 | glLoadIdentity(); |
| 44 | glOrtho((int)(position.x), (int)(position.x + size.x), (int)(position.y), |
| 45 | (int)(position.y + size.y), -1.0f, 1.0f); |
| 46 | } |
| 47 | |
| 48 | void Camera::reshape(float w, float h) |
| 49 | { |
no outgoing calls
no test coverage detected