Table of Contents

symanim

Demonstrates playing animations with optional rotation and scaling.

Synopsis

symanim

Description

This program animates the 3 components of the 3DO logo on top of a background display. While the program is running, the user can do the following:

The program adapts to NTSC vs. PAL automatically. Upon startup, the program loads in an image file to use as a backdrop. It also loads three ANIM files to use for the three components of the 3DO logo. Different versions of the pictures are loaded depending on whether the display is NTSC or PAL.

Once all components are loaded, a screen group with two screens is created. The two screens are used for double-buffering. Throughout the animation, we use a SPORT transfer to copy the backdrop image from its buffer into the screen buffer that is not currently displayed. We then render the current set of components onto the screen buffer. Once all this is completed, we swap screen buffers, which makes the rendering visible. The cycle starts again with the newly hidden screen buffer.

Associated Files

symanim.c, sprite.c, sprite.h

Location

examples/Graphics/symanim