YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::ICamera Struct Reference

Source area for a rendering entity. More...

#include <ICamera.hpp>

Inheritance diagram for yap::ICamera:
Collaboration diagram for yap::ICamera:

List of all members.

Public Member Functions

virtual ~ICamera ()
virtual bool IsInView (const Vector2 &point) const =0
virtual bool IsInView (const Vector2 &point, const Vector2 &size) const =0
virtual Vector2 ToLocal (const Vector2 &globalPoint) const =0
virtual Vector2 ToGlobal (const Vector2 &localPoint) const =0
virtual const sf::View & GetInnerView () const =0
virtual Event< ICamera
&, const Vector2 & > & 
OnMovedEvent () const =0
- Public Member Functions inherited from yap::ISpatial
virtual ~ISpatial ()
virtual const Vector2GetPosition () const =0
 Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
virtual const Vector2GetSize () const =0
 Gets the size in pixels of this ISpatial.
virtual const Vector2GetTopLeft () const =0
virtual const Vector2GetBottomRight () const =0
virtual const Vector2GetCenter () const =0
virtual const sf::FloatRect & GetRectangle () const =0
virtual void Move (const Vector2 &offset)=0
virtual void Scale (const Vector2 &factor)=0
virtual void SetPosition (const Vector2 &position)=0
virtual void SetSize (const Vector2 &size)=0

Detailed Description

Source area for a rendering entity.

Definition at line 15 of file ICamera.hpp.


Constructor & Destructor Documentation

virtual yap::ICamera::~ICamera ( )
inlinevirtual

Definition at line 17 of file ICamera.hpp.


Member Function Documentation

virtual const sf::View& yap::ICamera::GetInnerView ( ) const
pure virtual

Implemented in yap::Camera.

virtual bool yap::ICamera::IsInView ( const Vector2 point) const
pure virtual

Implemented in yap::Camera.

virtual bool yap::ICamera::IsInView ( const Vector2 point,
const Vector2 size 
) const
pure virtual

Implemented in yap::Camera.

virtual Event<ICamera&, const Vector2&>& yap::ICamera::OnMovedEvent ( ) const
pure virtual

Implemented in yap::Camera.

Here is the caller graph for this function:

virtual Vector2 yap::ICamera::ToGlobal ( const Vector2 localPoint) const
pure virtual

Implemented in yap::Camera.

virtual Vector2 yap::ICamera::ToLocal ( const Vector2 globalPoint) const
pure virtual

Implemented in yap::Camera.

Here is the caller graph for this function:


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