Added Marco Jez's osgIntrospection + osgWrapper libs with osgintrospection
example
This commit is contained in:
23
src/osgWrappers/osg/Object.cpp
Normal file
23
src/osgWrappers/osg/Object.cpp
Normal 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
|
||||
Reference in New Issue
Block a user