|
|
void | Camera::reset (const Vector &tuxpos) |
| | reset camera position
|
| |
|
const Vector | Camera::get_translation () const |
| | return camera position
|
| |
|
void | Camera::set_translation (const Vector &translation) |
| |
|
void | Camera::set_translation_centered (const Vector &translation) |
| |
|
void | Camera::keep_in_bounds (const Rectf &bounds) |
| |
|
void | Camera::shake (float duration, float x, float y) |
| | shake camera in a direction 1 time
|
| |
| void | Camera::start_earthquake (float strength, float delay) |
| | Shake the camera vertically with a specified average strength, at a certain minimal delay, until stopped. More...
|
| |
|
void | Camera::stop_earthquake () |
| |
|
void | Camera::scroll_to (const Vector &goal, float scrolltime) |
| | scroll the upper left edge of the camera in scrolltime seconds to the position goal
|
| |
|
void | Camera::move (const Vector &offset) |
| |
|
Vector | Camera::get_center () const |
| | get the coordinates of the point directly in the center of this camera
|
| |
|
const Vector & | Camera::get_position () const |
| | get the coordinates of the point directly in the top left of this camera
|
| |
|
const Sizef & | Camera::get_screen_size () const |
| | get the width and height of the screen
|
| |
|
void | Camera::set_mode (Mode mode_) |
| |
|
Mode | Camera::get_mode () const |
| |
|
float | Camera::get_current_scale () const |
| | get the exact scale at this exact moment
|
| |
|
float | Camera::get_target_scale () const |
| | get the scale towards which the camera is moving
|
| |
|
void | Camera::ease_scale (float scale, float time, easing ease, AnchorPoint anchor=AnchorPoint::ANCHOR_MIDDLE) |
| | smoothly slide the scale and anchor position of the camera towards a new value
|
| |