Added Marco Jez's osgIntrospection + osgWrapper libs with osgintrospection
example
This commit is contained in:
15
src/osgIntrospection/MethodInfo.cpp
Normal file
15
src/osgIntrospection/MethodInfo.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <osgIntrospection/MethodInfo>
|
||||
|
||||
using namespace osgIntrospection;
|
||||
|
||||
void MethodInfo::getInheritedProviders(CustomAttributeProviderList &providers) const
|
||||
{
|
||||
for (int i=0; i<decltype_.getNumBaseTypes(); ++i)
|
||||
{
|
||||
const MethodInfo *mi = decltype_.getBaseType(i).getMethod(name_, params_, false);
|
||||
if (mi)
|
||||
{
|
||||
providers.push_back(mi);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user