[osg-users] [SOLVED] [GL ES2] Add camera child

Ren Liwei lwr54 at 163.com
Tue May 12 18:33:51 PDT 2015


osg::ref_ptr<osg::Group> root;
root->addChild(node);          // forget to new before using root
osg::Group *subgraph = root->get(); // should be root.get()
camera->addChild(subgraph);

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63735#63735








More information about the osg-users mailing list