From bc6dfc06d517320d4d179d016760e3e65b220ffe Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 26 Jun 2017 16:40:15 +0300 Subject: [PATCH] 0025464: Visualization - provide package for Volume Rendering --- src/OpenGl/OpenGl_TextureBufferArb.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/OpenGl/OpenGl_TextureBufferArb.hxx b/src/OpenGl/OpenGl_TextureBufferArb.hxx index 851640ed8c..834d6ca0a8 100644 --- a/src/OpenGl/OpenGl_TextureBufferArb.hxx +++ b/src/OpenGl/OpenGl_TextureBufferArb.hxx @@ -98,6 +98,12 @@ public: Standard_EXPORT void UnbindTexture (const Handle(OpenGl_Context)& theGlCtx, const GLenum theTextureUnit = GL_TEXTURE0) const; + //! Returns name of TBO. + GLuint TextureId() const + { + return myTextureId; + } + protected: GLuint myTextureId; //!< texture id -- 2.39.5