Responsible for moving or rotating the camera. More...
#include <Cameraman.hpp>
Public Member Functions | |
| Cameraman (Scene *s, Canvas *c) | |
| void | fit (int command) |
| void | refresh (int command) |
| void | reset (int command) |
| void | rotate (int command, float amount) |
| void | translate (int command, float amount) |
Responsible for moving or rotating the camera.
| void fit | ( | int | cmd | ) |
Fits items in the view.
| void refresh | ( | int | cmd | ) |
Refreshes the display.
| void reset | ( | int | cmd | ) |
Resets the view's rotation.
| void rotate | ( | int | cmd, | |
| float | amt | |||
| ) |
Rotates the camera around the scene.
| cmd | Command (should be in CIRCLE family). | |
| amt | Amount to rotate the camera. |
| void translate | ( | int | cmd, | |
| float | amt | |||
| ) |
Moves the camera.
| cmd | Command (either BOOM, TRACK, or ZOOM family). | |
| amt | Amount to move the camera. |
1.6.3