<div dir="ltr"><div><div>Hi Qingjie,<br><br></div>The RenderInfo is managed by the my the rendering back end, it's passed to all draw callbacks and Drawables.<br><br></div>Robert<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 September 2015 at 04:29, 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 Robert,<br>
I'm knowing that the RenderInfo->getContextID() can give me the contextID to use in the getTextureObject(uint contextID), but where can I get the RenderInfo? I searched the source code of Texture but did not find that..<br>
Many thanks.<br>
<br>
Qingjie<br>
<span class=""><br>
<br>
robertosfield wrote:<br>
> Hi Qingjie,<br>
><br>
><br>
> 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>
><br>
> Robert.<br>
><br>
><br>
</span><span class="">> On 8 September 2015 at 15:20, Qingjie Zhang < ()> wrote:<br>
><br>
> > 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>
</span>> > <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> (<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>
> >  ()<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> (<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>
> ><br>
><br>
><br>
>  ------------------<br>
> Post generated by Mail2Forum<br>
<span class=""><br>
<br>
------------------<br>
Read this topic online here:<br>
</span><a href="http://forum.openscenegraph.org/viewtopic.php?p=65073#65073" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=65073#65073</a><br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>