diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-02-10 15:20:46 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-02-10 15:20:46 +0100 |
commit | eb9a6b7068b9910301bfc7a3b83e114c7545c893 (patch) | |
tree | a15bcf6c0b43b03cfd23404c6ddf8c901a3cfcad | |
parent | 4c6dc54352db2c5ef616eb88984845bb11ee2dbe (diff) | |
download | qtlocation-mapboxgl-eb9a6b7068b9910301bfc7a3b83e114c7545c893.tar.gz |
add more docs
-rw-r--r-- | include/llmr/geometry/buffer.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llmr/geometry/buffer.hpp b/include/llmr/geometry/buffer.hpp index 02f03d0105..1177bb196e 100644 --- a/include/llmr/geometry/buffer.hpp +++ b/include/llmr/geometry/buffer.hpp @@ -25,10 +25,13 @@ public: } } + // Returns the number of elements in this buffer. This is not the number of + // bytes, but rather the number of coordinates with associated information. inline size_t index() const { return pos / itemSize; } + // Transfers this buffer to the GPU and binds the buffer to the GL context. void bind() { if (buffer == 0) { glGenBuffers(1, &buffer); |