From: vsv Date: Mon, 26 Jun 2017 13:40:15 +0000 (+0300) Subject: 0025464: Visualization - provide package for Volume Rendering X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=bc6dfc06d517320d4d179d016760e3e65b220ffe;p=occt-copy.git 0025464: Visualization - provide package for Volume Rendering --- 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