diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-03-16 19:30:08 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-03-17 12:30:40 +0100 |
commit | 48c55af5c1d39e9a29cdb2e0c8203e6767f76c57 (patch) | |
tree | b81115238586a172be3acc487822cd27f12efe79 /src/mbgl/util/compression.hpp | |
parent | 0b1faba36920be2c9343c912b4817448f5659f71 (diff) | |
download | qtlocation-mapboxgl-48c55af5c1d39e9a29cdb2e0c8203e6767f76c57.tar.gz |
fix sprites for pixel ratios that are not 1 and 2
- OpenGL ES 2 doesn't allow NPOT textures with wrap-around
- The Sprite object reported the map's pixelRatio, even though it loaded @2x assets
- Copying icons from the sprite into the atlas now uses bilinear scaling to scale up to the actual size
Diffstat (limited to 'src/mbgl/util/compression.hpp')
-rw-r--r-- | src/mbgl/util/compression.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mbgl/util/compression.hpp b/src/mbgl/util/compression.hpp new file mode 100644 index 0000000000..a33b2476a7 --- /dev/null +++ b/src/mbgl/util/compression.hpp @@ -0,0 +1,15 @@ +#ifndef MBGL_UTIL_COMPRESSION +#define MBGL_UTIL_COMPRESSION + +#include <string> + +namespace mbgl { +namespace util { + +std::string compress(const std::string &raw); +std::string decompress(const std::string &raw); + +} +} + +#endif |