diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-03-14 12:43:42 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-03-14 12:43:42 +0100 |
commit | 3c5bac0f6b135b715bf8eb11177e372ddc4f69d0 (patch) | |
tree | 968d2f246a11383b68eb4d09adf5b2bb9579b4a6 /src/geometry/glyph_atlas.cpp | |
parent | 99cef810acf70fae90ba4ab7f318de402ecefd4f (diff) | |
download | qtlocation-mapboxgl-3c5bac0f6b135b715bf8eb11177e372ddc4f69d0.tar.gz |
add debug window showing the glyph atlas
Diffstat (limited to 'src/geometry/glyph_atlas.cpp')
-rw-r--r-- | src/geometry/glyph_atlas.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/geometry/glyph_atlas.cpp b/src/geometry/glyph_atlas.cpp index ef55d268ed..05ede1476f 100644 --- a/src/geometry/glyph_atlas.cpp +++ b/src/geometry/glyph_atlas.cpp @@ -1,6 +1,7 @@ #include <llmr/geometry/glyph_atlas.hpp> #include <llmr/map/vector_tile.hpp> #include <llmr/platform/gl.hpp> +#include <llmr/platform/platform.hpp> #include <cassert> #include <algorithm> @@ -135,5 +136,7 @@ void GlyphAtlas::bind() { std::lock_guard<std::mutex> lock(mtx); glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, width, height, 0, GL_ALPHA, GL_UNSIGNED_BYTE, data); dirty = false; + + platform::show_debug_image("Glyph Atlas", data, width, height); } }; |