[osg-users] how to get the handle of opengl texture that corresponds to a OSG::Texture

Qingjie Zhang 305479421 at qq.com
Tue Sep 8 07:57:57 PDT 2015


Thank you Robert,
well, I've checked the source code of OSG, and found what you said, but I still don't know about the contextID, what value of the parameter should I give to the function?
Thanks so much!
Qingjie.


robertosfield wrote:
> Hi Qingjie,
> 
> 
> The osgTexture::TextureObject* osg::Texture::getTextureObject(uint contextID)  method can be used to get the OSG's wrapper for the OpenGL texture object.  The TextureObject::id() method returns the OpenGL texture object id.
> 
> 
> Robert.
> 


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65067#65067








More information about the osg-users mailing list