30 #ifndef _CEGUIAnimationManager_h_
31 #define _CEGUIAnimationManager_h_
33 #include "CEGUISingleton.h"
34 #include "CEGUIString.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
112 void destroyAnimation(
Animation* animation);
118 void destroyAnimation(
const String& name);
130 Animation* getAnimationAtIdx(
size_t index)
const;
136 size_t getNumAnimations()
const;
166 void destroyAllInstancesOfAnimation(
Animation* animation);
179 size_t getNumAnimationInstances()
const;
187 void stepInstances(
float delta);
201 void loadAnimationsFromXML(
const String& filename,
202 const String& resourceGroup =
"");
212 static void setDefaultResourceGroup(
const String& resourceGroup)
214 s_defaultResourceGroup = resourceGroup;
226 static const String& getDefaultResourceGroup()
228 return s_defaultResourceGroup;
242 bool isAnimationPresent(
const String& name)
const;
245 String generateUniqueAnimationName();
247 typedef std::map<String, Interpolator*> InterpolatorMap;
249 InterpolatorMap d_interpolators;
250 typedef std::vector<Interpolator*> BasicInterpolatorList;
252 BasicInterpolatorList d_basicInterpolators;
254 typedef std::map<String, Animation*> AnimationMap;
256 AnimationMap d_animations;
258 typedef std::multimap<Animation*, AnimationInstance*> AnimationInstanceMap;
260 AnimationInstanceMap d_animationInstances;
262 static const String s_xmlSchemaName;
264 static String s_defaultResourceGroup;
266 static const String GeneratedAnimationNameBase;
268 unsigned long d_uid_counter;
273 #if defined(_MSC_VER)
274 # pragma warning(pop)
277 #endif // end of guard _CEGUIAnimationManager_h_