summaryrefslogtreecommitdiff
path: root/src/geometry/glyph_atlas.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-03-14 12:43:42 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-03-14 12:43:42 +0100
commit3c5bac0f6b135b715bf8eb11177e372ddc4f69d0 (patch)
tree968d2f246a11383b68eb4d09adf5b2bb9579b4a6 /src/geometry/glyph_atlas.cpp
parent99cef810acf70fae90ba4ab7f318de402ecefd4f (diff)
downloadqtlocation-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.cpp3
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);
}
};