Okay, so something like this should work, I guess.
void updateTexture( IplImage *img, ref_ptr<Node> geode)
{
ref_ptr<StateSet> state = geode->getOrCreateStateSet();
ref_ptr<Texture2D> Tex = (Texture2D*)
state->getTextureAttribute(0,StateAttribute::TEXTURE);
Tex->setImage(img);
return;
}
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

