sf::View Class Reference

This class defines a view (position, size and zoom) ; you can consider it as a camera. More...

#include <View.hpp>

List of all members.


Public Member Functions

 View (const FloatRect &ViewRect=FloatRect(0, 0, 1000, 1000), float ViewZoom=1.f)
 Construct the view with position and size.

Public Attributes

FloatRect Rect
 Rectangle defining the view's position and size.
float Zoom
 Zoom (less than 1 is unzoom, greater than 1 is zoom).

Detailed Description

This class defines a view (position, size and zoom) ; you can consider it as a camera.

Definition at line 41 of file View.hpp.


Constructor & Destructor Documentation

sf::View::View ( const FloatRect ViewRect = FloatRect(0, 0, 1000, 1000),
float  ViewZoom = 1.f 
)

Construct the view with position and size.

Parameters:
ViewRect : Rectangle defining the position and size of the view
ViewZoom : Zoom factor (1 by default)


Member Data Documentation

FloatRect sf::View::Rect

Rectangle defining the view's position and size.

Definition at line 57 of file View.hpp.

float sf::View::Zoom

Zoom (less than 1 is unzoom, greater than 1 is zoom).

Definition at line 58 of file View.hpp.


The documentation for this class was generated from the following file: