From f41026651259cb1770542ca03f82f0e87b8df3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 27 Mar 2012 23:15:49 +0200 Subject: [PATCH] Added function to get OpenGL internal ID for given texture. --- src/AbstractTexture.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AbstractTexture.h b/src/AbstractTexture.h index 6b97f0a66..b184693e8 100644 --- a/src/AbstractTexture.h +++ b/src/AbstractTexture.h @@ -156,6 +156,9 @@ class MAGNUM_EXPORT AbstractTexture { /** @brief %Texture layer */ inline GLint layer() const { return _layer; } + /** @brief OpenGL internal texture ID */ + inline GLuint id() const { return texture; } + /** * @brief Bind texture for usage / rendering *