Added Marco Jez's osgIntrospection + osgWrapper libs with osgintrospection

example
This commit is contained in:
Robert Osfield
2004-12-09 05:28:20 +00:00
parent dd0fac434a
commit 28d31c96b6
40 changed files with 6766 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/Object>
using namespace osgIntrospection;
// simple reflectors for types that are considered 'atomic'
ABSTRACT_OBJECT_REFLECTOR(osg::Referenced)
BEGIN_ENUM_REFLECTOR(osg::Object::DataVariance)
EnumLabel(osg::Object::STATIC);
EnumLabel(osg::Object::DYNAMIC);
END_REFLECTOR
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Object)
BaseType(osg::Referenced);
Property(osg::Object::DataVariance, DataVariance);
Property(osg::Referenced *, UserData);
Attribute(DefaultValueAttribute(0));
END_REFLECTOR