Added access methods to Serializer to help with using wrappers for other purposes such as script integration.
Added Vec*i and Vec*ui support to serializers
This commit is contained in:
@@ -93,14 +93,14 @@ struct UpdateWrapperVersionProxy
|
||||
UpdateWrapperVersionProxy( ObjectWrapper* w, int v ): _wrapper(w)
|
||||
{
|
||||
_lastVersion = w->getUpdatedVersion();
|
||||
w->setUpdatedVersion(v);
|
||||
w->setUpdatedVersion(v);
|
||||
}
|
||||
|
||||
|
||||
~UpdateWrapperVersionProxy()
|
||||
{
|
||||
_wrapper->setUpdatedVersion(_lastVersion);
|
||||
}
|
||||
|
||||
|
||||
ObjectWrapper* _wrapper;
|
||||
int _lastVersion;
|
||||
};
|
||||
@@ -133,6 +133,9 @@ public:
|
||||
IntLookup::Value getValue( const std::string& group, const std::string& str ) { return findLookup(group).getValue(str.c_str()); }
|
||||
const std::string& getString( const std::string& group, IntLookup::Value value ) { return findLookup(group).getString(value); }
|
||||
|
||||
IntLookupMap& getLookupMap() { return _globalMap; }
|
||||
const IntLookupMap& getLookupMap() const { return _globalMap; }
|
||||
|
||||
protected:
|
||||
|
||||
friend class osgDB::Registry;
|
||||
|
||||
Reference in New Issue
Block a user