2014-12-09 22:53:09 +00:00
|
|
|
namespace dk {
|
|
|
|
///--------------------------------------------------------------------------
|
|
|
|
///--------------------------------------------------------------------------
|
|
|
|
template <size_t D>
|
2014-12-11 22:58:52 +00:00
|
|
|
LayerBase<D>::LayerBase (const coords& parSize, const coords& parTileSize, const coords& parMasterTileSize) :
|
|
|
|
m_size(parSize),
|
|
|
|
m_tilesize(parTileSize),
|
|
|
|
m_mastersize(parMasterTileSize)
|
2014-12-09 22:53:09 +00:00
|
|
|
{
|
2014-12-11 22:58:52 +00:00
|
|
|
DK_ASSERT((parMasterTileSize / parTileSize) * parTileSize == parMasterTileSize);
|
2014-12-09 22:53:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
///--------------------------------------------------------------------------
|
|
|
|
///--------------------------------------------------------------------------
|
|
|
|
template <typename T, size_t D>
|
2014-12-11 22:58:52 +00:00
|
|
|
Layer<T, D>::Layer (const coords& parSize, const coords& parTileSize, const coords& parMasterTileSize, streamer_type&& parStreamer) :
|
|
|
|
LayerBase<D>(parSize, parTileSize, parMasterTileSize),
|
2014-12-09 22:53:09 +00:00
|
|
|
m_streamer(std::move(parStreamer))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|