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,31 @@
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/Material>
using namespace osgIntrospection;
BEGIN_ENUM_REFLECTOR(osg::Material::Face)
EnumLabel(osg::Material::FRONT);
EnumLabel(osg::Material::BACK);
EnumLabel(osg::Material::FRONT_AND_BACK);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osg::Material::ColorMode)
EnumLabel(osg::Material::AMBIENT);
EnumLabel(osg::Material::SPECULAR);
EnumLabel(osg::Material::DIFFUSE);
EnumLabel(osg::Material::EMISSION);
EnumLabel(osg::Material::AMBIENT_AND_DIFFUSE);
EnumLabel(osg::Material::OFF);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::Material)
BaseType(osg::StateAttribute);
Property(osg::Material::ColorMode, ColorMode);
IndexedProperty(const osg::Vec4 &, Ambient, osg::Material::Face, face);
IndexedProperty(const osg::Vec4 &, Diffuse, osg::Material::Face, face);
IndexedProperty(const osg::Vec4 &, Specular, osg::Material::Face, face);
END_REFLECTOR