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.

On 8 September 2015 at 15:20, Qingjie Zhang <[email protected]> wrote:

> Hi,
> 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.
> Now I don't know how to get the handle.
> Many thanks for your reply!!!
> ...
>
> Thank you!
>
> Cheers,
> Qingjie
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=65061#65061
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to