summaryrefslogtreecommitdiff
path: root/src/mbgl/sprite
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-09-26 12:53:32 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-10-28 17:14:01 -0700
commit0e57d10d77e555a9229f7d522d83f87df7d5180d (patch)
tree2a3c3b0dd4ed6edf385ba8d390d919e469b7a96a /src/mbgl/sprite
parenta4c82b8a3b5e48f3bbccf32be80d45ca78d51515 (diff)
downloadqtlocation-mapboxgl-0e57d10d77e555a9229f7d522d83f87df7d5180d.tar.gz
[core] Modern C++ bindings for OpenGL
Diffstat (limited to 'src/mbgl/sprite')
-rw-r--r--src/mbgl/sprite/sprite_atlas.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/sprite/sprite_atlas.hpp b/src/mbgl/sprite/sprite_atlas.hpp
index 3a0aea2dad..f4ed1b306e 100644
--- a/src/mbgl/sprite/sprite_atlas.hpp
+++ b/src/mbgl/sprite/sprite_atlas.hpp
@@ -26,13 +26,15 @@ class Context;
class SpriteImage;
class SpritePosition;
-struct SpriteAtlasPosition {
+class SpriteAtlasPosition {
+public:
std::array<float, 2> size = {{ 0, 0 }};
std::array<float, 2> tl = {{ 0, 0 }};
std::array<float, 2> br = {{ 0, 0 }};
};
-struct SpriteAtlasElement {
+class SpriteAtlasElement {
+public:
Rect<uint16_t> pos;
std::shared_ptr<const SpriteImage> spriteImage;
float relativePixelRatio;