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 *