supertux
Functions
CameraAPI

Functions

void Camera::reset (const Vector &tuxpos)
 reset camera position
 
const VectorCamera::get_translation () const
 return camera position
 
void Camera::set_translation (const Vector &translation)
 
void Camera::shake (float duration, float x, float y)
 shake camera in a direction 1 time
 
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 int dx, const int dy)
 
void Camera::reload_config ()
 
Vector Camera::get_center () const
 get the coordinates of the point directly in the center of this camera
 
void Camera::set_mode (Mode mode_)
 

Detailed Description