SIO2action Struct Reference

#include <sio2_action.h>

Collaboration diagram for SIO2action:

Collaboration graph
[legend]

List of all members.

Public Attributes

char name [SIO2_MAX_CHAR]
 The name of the SIO2action.
unsigned int s_frame
 The total size of the frame in bytes.
unsigned int n_frame
 The number of frame in the current SIO2action.
SIO2frame ** _SIO2frame
 An array of SIO2frame pointers.


Member Data Documentation

char SIO2action::name[SIO2_MAX_CHAR]

The name of the SIO2action.

Referenced by sio2ActionInit(), and sio2ResourceGet().

unsigned int SIO2action::s_frame

The total size of the frame in bytes.

The size of the frame in bytes. In order for the SIO2action to be assigned to an object the size in bytes of the vertices need to match the one of the frame. In the case that the normals are exported the size of the frame will include also the size in bytes of the normals.

Referenced by sio2ActionLoad(), sio2ObjectNextAction(), sio2ObjectRenderAction(), and sio2ObjectSetAction().

unsigned int SIO2action::n_frame

The number of frame in the current SIO2action.

Please take note that the number of frame is not the number of keyframe. The SIO2 animation system only record inserted frame and will linearly interpolate the value of the vertices and normals between two frames.

Referenced by sio2ActionFree(), sio2ActionLoad(), sio2ObjectRenderAction(), and sio2ObjectSetFrame().

An array of SIO2frame pointers.

For every SIO2action n_frame a new SIO2frame will be created. Please take note that only the frame inserted in the SIO2action will be exported. So if there's a frame inserted at 1 and another one at 200, only 2 frame will be added to the SIO2action. SIO2 is using an hybrid method that is baking frame from bones and then interpolated them in realtime. This is the best low cost solution for both CPU and memory on the devices. Actions can be loaded / unloaded on demand from the disk or network.

Referenced by sio2ActionFree(), sio2ActionLoad(), sio2ObjectNextAction(), sio2ObjectRenderAction(), sio2ObjectSetAction(), sio2ObjectSetFrame(), and sio2ObjectStop().


The documentation for this struct was generated from the following file:

Generated on Thu Mar 4 15:41:52 2010 for SIO2 Engine by  doxygen 1.5.6