summaryrefslogtreecommitdiff
path: root/include/llmr/geometry/buffer.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-06-23 18:05:06 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-06-23 18:05:25 +0200
commitba4294ae0c06c1ed160f0be47863c9515da8d403 (patch)
tree5a16d8c200d21fbdf1bb0d91168452aea6142b90 /include/llmr/geometry/buffer.hpp
parentf51fd9be585814dedf108cb6e81a674717e39fe6 (diff)
downloadqtlocation-mapboxgl-ba4294ae0c06c1ed160f0be47863c9515da8d403.tar.gz
saving current state
Diffstat (limited to 'include/llmr/geometry/buffer.hpp')
-rw-r--r--include/llmr/geometry/buffer.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llmr/geometry/buffer.hpp b/include/llmr/geometry/buffer.hpp
index 27807c809c..607f902bf1 100644
--- a/include/llmr/geometry/buffer.hpp
+++ b/include/llmr/geometry/buffer.hpp
@@ -32,6 +32,10 @@ public:
return pos / itemSize;
}
+ inline bool empty() const {
+ return pos == 0;
+ }
+
// Transfers this buffer to the GPU and binds the buffer to the GL context.
void bind(bool force = false) {
if (buffer == 0) {