Gamedev Framework (gf)  0.11.0
A C++14 framework for 2D games
Public Member Functions | List of all members
gf::ZoomingViewAdaptor Class Reference

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...
 

Detailed Description

A view adaptor for zooming/moving with the mouse.

Constructor & Destructor Documentation

◆ ZoomingViewAdaptor()

gf::ZoomingViewAdaptor::ZoomingViewAdaptor ( const RenderTarget target,
View view 
)

Constructor.

Parameters
targetThe rendering target
viewThe original view to zoom/move

Member Function Documentation

◆ processEvent()

void gf::ZoomingViewAdaptor::processEvent ( const Event event)

Update the original view thanks to the event.

Parameters
eventAn event