blob: dea290d71e4acf1b8d6528506420240f237bb793 (
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
|
#pragma once
#include "tiler.hpp"
#include "../geometry/screenbase.hpp"
#include "../std/shared_ptr.hpp"
namespace yg
{
namespace gl
{
class BaseTexture;
}
class InfoLayer;
}
struct Tile
{
shared_ptr<yg::gl::BaseTexture> m_renderTarget; //< taken from resource manager
shared_ptr<yg::InfoLayer> m_infoLayer; //< 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
double m_duration; //< how long does it take to render tile
Tile();
Tile(shared_ptr<yg::gl::BaseTexture> const & renderTarget,
shared_ptr<yg::InfoLayer> const & infoLayer,
ScreenBase const & tileScreen,
Tiler::RectInfo const & rectInfo,
double duration);
~Tile();
};
|