YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ICamera.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_ICAMERA_HPP
2
# define YAPOG_ICAMERA_HPP
3
4
# include <SFML/Graphics/View.hpp>
5
# include <SFML/Graphics/Rect.hpp>
6
7
# include "
YAPOG/Macros.hpp
"
8
# include "
YAPOG/Graphics/Vector2.hpp
"
9
# include "
YAPOG/Graphics/ISpatial.hpp
"
10
# include "
YAPOG/System/Event/Event.hpp
"
11
12
namespace
yap
13
{
15
struct
ICamera
:
public
ISpatial
16
{
17
virtual
~ICamera
() {}
18
19
virtual
bool
IsInView
(
const
Vector2
& point)
const
= 0;
20
virtual
bool
IsInView
(
const
Vector2
& point,
21
const
Vector2
& size)
const
= 0;
22
23
virtual
Vector2
ToLocal
(
const
Vector2
& globalPoint)
const
= 0;
24
virtual
Vector2
ToGlobal
(
const
Vector2
& localPoint)
const
= 0;
25
26
virtual
const
sf::View&
GetInnerView
()
const
= 0;
27
28
virtual
Event<ICamera&, const Vector2&>
&
OnMovedEvent
()
const
= 0;
29
};
30
}
// namespace yap
31
32
#endif // YAPOG_ICAMERA_HPP
YAPOG
include
YAPOG
Graphics
ICamera.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1