From c74c107e7f51a09a584c1ae0172686e42a83ce85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 20 Dec 2013 13:24:59 +0100 Subject: [PATCH] Add Mesh::id() for consistency. --- src/Mesh.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Mesh.h b/src/Mesh.h index 57af67504..bc61c2956 100644 --- a/src/Mesh.h +++ b/src/Mesh.h @@ -407,6 +407,14 @@ class MAGNUM_EXPORT Mesh { /** @brief Move assignment */ Mesh& operator=(Mesh&& other) noexcept; + /** + * @brief OpenGL mesh ID + * + * If @extension{APPLE,vertex_array_object} is not available, returns + * 0. + */ + GLuint id() const { return _id; } + /** * @brief Index size *