move tile size to constants.hpp

This commit is contained in:
Konstantin Käfer
2014-02-13 17:34:08 +01:00
parent 2f32d1585d
commit b0357e8ea7
4 changed files with 30 additions and 14 deletions

View File

@@ -69,9 +69,6 @@ private:
double min_scale = pow(2, 0);
double max_scale = pow(2, 20);
// tile size
const int32_t size = 512;
// cache values for spherical mercator math
double zc, Bc, Cc;

View File

@@ -0,0 +1,16 @@
#ifndef LLMR_UTIL_CONSTANTS
#define LLMR_UTIL_CONSTANTS
#include <cmath>
#include "vec.hpp"
namespace llmr {
namespace util {
static const float tileSize = 256.0f;
}
}
#endif