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 ()
 Default constructor.
 View (float ViewLeft, float ViewTop, float ViewWidth, float ViewHeight, float ViewZoom=1.f)
 Construct the view with position and size.

Public Attributes

float Left
 Left position of view.
float Top
 Top position of view.
float Width
 Width of view.
float Height
 Height of view.
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 40 of file View.hpp.


Constructor & Destructor Documentation

sf::View::View (  ) 

Default constructor.

Definition at line 36 of file View.cpp.

sf::View::View ( float  ViewLeft,
float  ViewTop,
float  ViewWidth,
float  ViewHeight,
float  ViewZoom = 1.f 
)

Construct the view with position and size.

Parameters:
ViewLeft : Left position of view
ViewTop : Top position of view
ViewWidth : Width of view
ViewHeight : Height of view
ViewZoom : Zoom (1 by default)

Definition at line 50 of file View.cpp.


Member Data Documentation

float sf::View::Left

Left position of view.

Definition at line 65 of file View.hpp.

float sf::View::Top

Top position of view.

Definition at line 66 of file View.hpp.

float sf::View::Width

Width of view.

Definition at line 67 of file View.hpp.

float sf::View::Height

Height of view.

Definition at line 68 of file View.hpp.

float sf::View::Zoom

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

Definition at line 69 of file View.hpp.


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