Dualie
|
Used as a camera-like object to move the screen view to different positions in world coordinates. More...
#include <View.hpp>
Public Member Functions | |
View (const dl::FloatRect &viewRect) | |
void | reset (const dl::FloatRect &viewRect) |
Sets the view's viewrect to a new viewrect. | |
void | setCenter (dl::Vector2f center) |
Sets the center of the view's rect. | |
void | move (dl::Vector2f offset) |
Moves the view offset number of pixels. | |
dl::Vector2f | getOffset () |
Used as a camera-like object to move the screen view to different positions in world coordinates.
dl::Vector2f dl::View::getOffset | ( | ) |
void dl::View::move | ( | dl::Vector2f | offset | ) |
Moves the view offset number of pixels.
offset | The offset to move |
void dl::View::reset | ( | const dl::FloatRect & | viewRect | ) |
Sets the view's viewrect to a new viewrect.
viewRect | The viewrect to reset to |
void dl::View::setCenter | ( | dl::Vector2f | center | ) |
Sets the center of the view's rect.
center | The center to set |