[osg-users] Getting a TextureObject into a Texture2D
aluaces at udc.es
Wed Jul 30 08:49:55 PDT 2008
I also didn't find anything on the API, so I'm afraid you'll have to dive into
the code and find if you can get this functionality by subclassing or if you
have to modify OSG instead.
El Martes 29 Julio 2008ES 17:28:09 Steffen Kim escribió:
> I'm a little lost on creating an osg::Texture2D from an OpenGL-texture-ID I
> I tried to do this by creating an TextureObject with
> osg::Texture::TextureObject* tObject = new
> osg::Texture::TextureObject(_ilaceData.renderTextureID, GL_TEXTURE_2D);
> But now I'm stuck when it comes to putting this TextureObject into the
> Texture2D I want to use to display it.
> The usage of getTextureObject wasn't successful (I get a blank texture) so
> I would be very happy if anyone can give me a hint on how to do this. It
> seems like a quite strange questions to me and I guess I'm overlooking some
> simple function but I cannot find anything in the documentation.
> Thanks a lot,
More information about the osg-users