Animation.drawFrame

From Spheriki

Jump to: navigation, search

Draw the "current" animation frame onto the framebuffer. The "current" frame is the one indicated as the one that should be rendered according to Animation.readNextFrame().


Usage

void Animation.drawFrame(x, y);
  • x The x position to draw the image at.
  • y The y position to draw the image at.


Examples

Play an animation continuously on the screen (ignoring the animation's delays or any frame rate limitation):

var anim = LoadAnimation("myfile.mng");
while (true)
{
  anim.readNextFrame();
  anim.drawFrame(20, 20);
  FlipScreen();
}


See also

Personal tools