| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | #include <osgIntrospection/ReflectionMacros> |
|---|
| 9 | #include <osgIntrospection/TypedMethodInfo> |
|---|
| 10 | #include <osgIntrospection/StaticMethodInfo> |
|---|
| 11 | #include <osgIntrospection/Attributes> |
|---|
| 12 | |
|---|
| 13 | #include <osg/Geode> |
|---|
| 14 | #include <osg/Node> |
|---|
| 15 | #include <osg/StateSet> |
|---|
| 16 | #include <osgUtil/ShaderGen> |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | #ifdef IN |
|---|
| 20 | #undef IN |
|---|
| 21 | #endif |
|---|
| 22 | #ifdef OUT |
|---|
| 23 | #undef OUT |
|---|
| 24 | #endif |
|---|
| 25 | |
|---|
| 26 | BEGIN_ENUM_REFLECTOR(osgUtil::ShaderGenCache::StateMask) |
|---|
| 27 | I_DeclaringFile("osgUtil/ShaderGen"); |
|---|
| 28 | I_EnumLabel(osgUtil::ShaderGenCache::BLEND); |
|---|
| 29 | I_EnumLabel(osgUtil::ShaderGenCache::LIGHTING); |
|---|
| 30 | I_EnumLabel(osgUtil::ShaderGenCache::FOG); |
|---|
| 31 | I_EnumLabel(osgUtil::ShaderGenCache::DIFFUSE_MAP); |
|---|
| 32 | I_EnumLabel(osgUtil::ShaderGenCache::NORMAL_MAP); |
|---|
| 33 | END_REFLECTOR |
|---|
| 34 | |
|---|
| 35 | TYPE_NAME_ALIAS(std::map< unsigned int COMMA osg::ref_ptr< osg::StateSet > >, osgUtil::ShaderGenCache::StateSetMap) |
|---|
| 36 | |
|---|
| 37 | BEGIN_OBJECT_REFLECTOR(osgUtil::ShaderGenCache) |
|---|
| 38 | I_DeclaringFile("osgUtil/ShaderGen"); |
|---|
| 39 | I_BaseType(osg::Referenced); |
|---|
| 40 | I_Constructor0(____ShaderGenCache, |
|---|
| 41 | "", |
|---|
| 42 | ""); |
|---|
| 43 | I_Method2(void, setStateSet, IN, unsigned int, stateMask, IN, osg::StateSet *, program, |
|---|
| 44 | Properties::NON_VIRTUAL, |
|---|
| 45 | __void__setStateSet__unsigned_int__osg_StateSet_P1, |
|---|
| 46 | "", |
|---|
| 47 | ""); |
|---|
| 48 | I_Method1(osg::StateSet *, getStateSet, IN, unsigned int, stateMask, |
|---|
| 49 | Properties::NON_VIRTUAL, |
|---|
| 50 | __osg_StateSet_P1__getStateSet__unsigned_int, |
|---|
| 51 | "", |
|---|
| 52 | ""); |
|---|
| 53 | I_Method1(osg::StateSet *, getOrCreateStateSet, IN, unsigned int, stateMask, |
|---|
| 54 | Properties::NON_VIRTUAL, |
|---|
| 55 | __osg_StateSet_P1__getOrCreateStateSet__unsigned_int, |
|---|
| 56 | "", |
|---|
| 57 | ""); |
|---|
| 58 | I_ProtectedMethod1(osg::StateSet *, createStateSet, IN, unsigned int, stateMask, |
|---|
| 59 | Properties::NON_VIRTUAL, |
|---|
| 60 | Properties::CONST, |
|---|
| 61 | __osg_StateSet_P1__createStateSet__unsigned_int, |
|---|
| 62 | "", |
|---|
| 63 | ""); |
|---|
| 64 | I_IndexedProperty(osg::StateSet *, StateSet, |
|---|
| 65 | __osg_StateSet_P1__getStateSet__unsigned_int, |
|---|
| 66 | __void__setStateSet__unsigned_int__osg_StateSet_P1, |
|---|
| 67 | 0); |
|---|
| 68 | END_REFLECTOR |
|---|
| 69 | |
|---|
| 70 | BEGIN_OBJECT_REFLECTOR(osgUtil::ShaderGenVisitor) |
|---|
| 71 | I_DeclaringFile("osgUtil/ShaderGen"); |
|---|
| 72 | I_BaseType(osg::NodeVisitor); |
|---|
| 73 | I_Constructor0(____ShaderGenVisitor, |
|---|
| 74 | "", |
|---|
| 75 | ""); |
|---|
| 76 | I_Constructor1(IN, osgUtil::ShaderGenCache *, stateCache, |
|---|
| 77 | Properties::NON_EXPLICIT, |
|---|
| 78 | ____ShaderGenVisitor__ShaderGenCache_P1, |
|---|
| 79 | "", |
|---|
| 80 | ""); |
|---|
| 81 | I_Method1(void, setStateCache, IN, osgUtil::ShaderGenCache *, stateCache, |
|---|
| 82 | Properties::NON_VIRTUAL, |
|---|
| 83 | __void__setStateCache__ShaderGenCache_P1, |
|---|
| 84 | "", |
|---|
| 85 | ""); |
|---|
| 86 | I_Method0(osgUtil::ShaderGenCache *, getStateCache, |
|---|
| 87 | Properties::NON_VIRTUAL, |
|---|
| 88 | __ShaderGenCache_P1__getStateCache, |
|---|
| 89 | "", |
|---|
| 90 | ""); |
|---|
| 91 | I_Method1(void, setRootStateSet, IN, osg::StateSet *, stateSet, |
|---|
| 92 | Properties::NON_VIRTUAL, |
|---|
| 93 | __void__setRootStateSet__osg_StateSet_P1, |
|---|
| 94 | "Top level state set applied as the first one. ", |
|---|
| 95 | ""); |
|---|
| 96 | I_Method0(osg::StateSet *, getRootStateSet, |
|---|
| 97 | Properties::NON_VIRTUAL, |
|---|
| 98 | __osg_StateSet_P1__getRootStateSet, |
|---|
| 99 | "", |
|---|
| 100 | ""); |
|---|
| 101 | I_Method1(void, apply, IN, osg::Node &, node, |
|---|
| 102 | Properties::VIRTUAL, |
|---|
| 103 | __void__apply__osg_Node_R1, |
|---|
| 104 | "", |
|---|
| 105 | ""); |
|---|
| 106 | I_Method1(void, apply, IN, osg::Geode &, geode, |
|---|
| 107 | Properties::VIRTUAL, |
|---|
| 108 | __void__apply__osg_Geode_R1, |
|---|
| 109 | "", |
|---|
| 110 | ""); |
|---|
| 111 | I_Method0(void, reset, |
|---|
| 112 | Properties::VIRTUAL, |
|---|
| 113 | __void__reset, |
|---|
| 114 | "Method to call to reset visitor. ", |
|---|
| 115 | "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); |
|---|
| 116 | I_ProtectedMethod1(void, update, IN, osg::Drawable *, drawable, |
|---|
| 117 | Properties::NON_VIRTUAL, |
|---|
| 118 | Properties::NON_CONST, |
|---|
| 119 | __void__update__osg_Drawable_P1, |
|---|
| 120 | "", |
|---|
| 121 | ""); |
|---|
| 122 | I_SimpleProperty(osg::StateSet *, RootStateSet, |
|---|
| 123 | __osg_StateSet_P1__getRootStateSet, |
|---|
| 124 | __void__setRootStateSet__osg_StateSet_P1); |
|---|
| 125 | I_SimpleProperty(osgUtil::ShaderGenCache *, StateCache, |
|---|
| 126 | __ShaderGenCache_P1__getStateCache, |
|---|
| 127 | __void__setStateCache__ShaderGenCache_P1); |
|---|
| 128 | END_REFLECTOR |
|---|
| 129 | |
|---|
| 130 | STD_MAP_REFLECTOR(std::map< unsigned int COMMA osg::ref_ptr< osg::StateSet > >) |
|---|