<div dir="ltr"><div><div>Hi Qingjie,<br><br></div>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.<br><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 September 2015 at 15:20, Qingjie Zhang <span dir="ltr"><<a href="mailto:305479421@qq.com" target="_blank">305479421@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I generated a texture2d with osg, to use the texture in CUDA, I have to get the corresponding "opengl texture" handle(GLuint), and then access to the texture by the handle in CUDA.<br>
Now I don't know how to get the handle.<br>
Many thanks for your reply!!!<br>
...<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Qingjie<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=65061#65061" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=65061#65061</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>