[osg-users] Create texture from texture handle

2015-03-16 Thread Steven Powers
HI! Currently I have this texture getting generated by a plugin that I'm using: glGenTextures(1, textureHandle); glBindTexture(GL_TEXTURE_2D, textureHandle); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D,

Re: [osg-users] Create texture from texture handle

2015-03-16 Thread Trajce Nikolov NICK
Hi Steven, yes, you can wrap your GL texture handle with osg::Textire2D object. Here is some snippet that might help: snip GLuint handle = ...; osg::ref_ptrosg::Texture2D texture = new osg::Texture2D; osg::ref_ptrosg::Texture::TextureObject textureObject = new