O'Reilly logo

Marmalade SDK Mobile Game Development Essentials by Sean Scaplehorn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Loading and rendering an exported 3D animation

We're now in a position to start rendering a 3D animation, and as with rendering a static 3D model it's also surprisingly easy to do.

Adding the IwAnim API to a project

Before we can use Marmalade's animation functionality, we first need to add the IwAnim API to our project. This API builds on top of the IwGraphics API required for rendering static 3D models.

As with all such Marmalade APIs, we add support for IwAnim to a project by listing iwanim in the subprojects section of the MKB file. We must then call IwAnimInit after IwGraphicsInit has been called, and at shutdown time we need to call IwAnimTerminate.

Loading and accessing a 3D animation

The GROUP file format comes to our rescue once again ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required