![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A view adaptor for zooming/moving with the mouse. More...
#include <gf/View.h>
Public Member Functions | |
| ZoomingViewAdaptor (const RenderTarget &target, View &view) | |
| Constructor. More... | |
| void | processEvent (const Event &event) |
| Update the original view thanks to the event. More... | |
A view adaptor for zooming/moving with the mouse.
| gf::ZoomingViewAdaptor::ZoomingViewAdaptor | ( | const RenderTarget & | target, |
| View & | view | ||
| ) |
Constructor.
| target | The rendering target |
| view | The original view to zoom/move |
| void gf::ZoomingViewAdaptor::processEvent | ( | const Event & | event | ) |
Update the original view thanks to the event.
| event | An event |