summaryrefslogtreecommitdiff
path: root/include/mbgl/geometry/vertex_buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/geometry/vertex_buffer.hpp')
-rw-r--r--include/mbgl/geometry/vertex_buffer.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/geometry/vertex_buffer.hpp b/include/mbgl/geometry/vertex_buffer.hpp
index 58fd4a9d03..05cda94245 100644
--- a/include/mbgl/geometry/vertex_buffer.hpp
+++ b/include/mbgl/geometry/vertex_buffer.hpp
@@ -25,6 +25,11 @@ public:
*/
void bind();
+ /*
+ * Returns the OpenGL ID of the buffer object.
+ */
+ uint32_t getID() const;
+
private:
const std::vector<vertex_type> array;
uint32_t buffer = 0;