PDA

View Full Version : doubt in animation demo "stickman"



hema
13th July 2011, 04:04
hi,

i have a doubt in stickman demo project.

anyone please clear

Animation animation;
{
QFile file(animationFileName);
if (file.open(QIODevice::ReadOnly))
animation.load(&file);
}

const int frameCount = animation.totalFrames();


in this code,animation file name is "dead" with "file" ext.what does file contains?
what it returns while loading?

please clear my doubt.
thanks in advance.

Santosh Reddy
13th July 2011, 04:12
it returns Frames when loaded (in fact it returns whatever is saved using Animaton::save()), have look at these functions implementation


void Animation::save(QIODevice *device) const;
void Animation::load(QIODevice *device);

hema
13th July 2011, 05:16
thanks for reply

Added after 56 minutes:

hi,

where animation.save() is called in stickman porject