move tile size to constants.hpp
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
16
include/llmr/util/constants.hpp
Normal file
16
include/llmr/util/constants.hpp
Normal 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
|
||||
Reference in New Issue
Block a user