osgWrapper is the code generated by genWrapper
(http://www.openscenegraph.org/osgwiki/pmwiki.php/Tasks/GenWrapper) a
tool used to generate code for introspection( code that can be loaded
dynamically to use a lot of features of osg and its libraries in run
time) .For example, using osgReflection, this snippet of code
instances a class and uses its methods without a compile-time
dependency:

   const Type &T = Reflection::getType("osgNVCg::Program");
   Value myshader = T.createInstance();

   // set the program's profile and filename
   T.invokeMethod("setProfile", myshader, args(std::string("ARBVP1")), false);
   T.invokeMethod("setFileName", myshader,
args(std::string("osgnvpblock.cg")), false);

More info at: 
http://www.openscenegraph.org/osgwiki/pmwiki.php/Tasks/ReflectionFramework

Cheers,
   Jose L.

On 9/22/06, Yanling Liu <[EMAIL PROTECTED]> wrote:
Hi, just wondering what's osgWrapper for? Do I have to complie it when I
complie OSG?

Yanling

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/




--
 Jose L. Hidalgo Valiño (PpluX)
 ---- http://www.pplux.com ----
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to