43 m_cache(tiles, widget),
44 m_currentLayer(tiles->LayerCount() - 1),
50 double top, left, bottom, right;
60 double width_m, height_m;
68 width_m = std::fabs(right - left);
69 height_m = std::fabs(top - bottom);
76 if (scale_y > scale_x)
87 while (
min_scale_ * std::pow(2.0, layer + 1) < scale) layer++;
132 glEnable(GL_TEXTURE_2D);
134 glColor4f(1.0
f, 1.0
f, 1.0
f, 1.0
f);
154 for (
int r = 0; r < baseLayer->
RowCount(); r++)
172 if (m_endColumn < layer->ColumnCount() && m_endRow < layer->RowCount())
192 glDisable(GL_TEXTURE_2D);