blob: 7b086d2590c413cbce9dce6ca83de161595aebc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#pragma once
#include "tiler.hpp"
#include "geometry/screenbase.hpp"
#include "std/shared_ptr.hpp"
namespace graphics
{
namespace gl
{
class BaseTexture;
}
class OverlayStorage;
}
struct Tile
{
shared_ptr<graphics::gl::BaseTexture> m_renderTarget; //< taken from resource manager
shared_ptr<graphics::OverlayStorage> m_overlay; //< text and POI's
ScreenBase m_tileScreen; //< cached to calculate it once, cause tile blitting
//< is performed on GUI thread.
Tiler::RectInfo m_rectInfo; //< taken from tiler
bool m_isEmptyDrawing; //< does this tile contains only coasts and oceans
int m_sequenceID; // SequenceID in witch tile was rendered
Tile();
Tile(shared_ptr<graphics::gl::BaseTexture> const & renderTarget,
shared_ptr<graphics::OverlayStorage> const & overlay,
ScreenBase const & tileScreen,
Tiler::RectInfo const & rectInfo,
bool isEmptyDrawing,
int sequenceID);
~Tile();
};
struct LessRectInfo
{
bool operator()(Tile const * l, Tile const * r) const;
};
|