moved LessRectInfo into tile compilation unit.

This commit is contained in:
rachytski 2012-04-16 23:43:26 +04:00 committed by Alex Zolotarev
parent bbd46391f8
commit 457a8ed689
4 changed files with 11 additions and 10 deletions

View file

@ -159,11 +159,6 @@ void ScreenCoverage::Remove(Tile const *)
{
}
bool LessRectInfo::operator()(Tile const * l, Tile const * r) const
{
return l->m_rectInfo < r->m_rectInfo;
}
void ScreenCoverage::SetScreen(ScreenBase const & screen)
{
m_screen = screen;

View file

@ -23,11 +23,6 @@ namespace yg
class CoverageGenerator;
struct LessRectInfo
{
bool operator()(Tile const * l, Tile const * r) const;
};
class ScreenCoverage
{
private:

View file

@ -23,3 +23,8 @@ Tile::Tile(shared_ptr<yg::gl::BaseTexture> const & renderTarget,
Tile::~Tile()
{}
bool LessRectInfo::operator()(Tile const * l, Tile const * r) const
{
return l->m_rectInfo < r->m_rectInfo;
}

View file

@ -36,3 +36,9 @@ struct Tile
~Tile();
};
struct LessRectInfo
{
bool operator()(Tile const * l, Tile const * r) const;
};