AnimationSerializer         Simple serializer for animations
Print

Introduction

This is a simple serializer to save and load an animation (animationtrack) to and from disk in binary format.

It was created for use with the Camcorder camera motion recorder, but could be used for any animationtrack keyframe based animation.

Code

 

Usage

Saving an animation
AnimationSerializer animSerializer;
animSerializer.exportAnimation(animation, "theAnimation.anim");
Loading an animation
AnimationSerializer animSerializer;
Animation* anim = animSerializer.importAnimation("theAnimation.anim");

 

See Also
Image

 
Camcorder - the last part of the page shows how to use the camera recorder helper class with the animation serializer.


Contributors to this page: jacmoe133512 points  .
Page last modified on Saturday 31 of July, 2010 12:52:17 UTC by jacmoe133512 points .


The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.