SRC/EXAMPLE/l_tr4.cpp
/// \brief reads an animation definition.
\brief reads an animation definition.
\ brief reads an animation definition .
void TR_Level::read_tr4_animation(SDL_RWops * const src, tr_animation_t & animation)
{
    animation.frame_offset = read_bitu32(src);
    animation.frame_rate = read_bitu8(src);
    animation.frame_size = read_bitu8(src);
    animation.state_id = read_bitu16(src);
    animation.speed = read_mixfloat(src);
    animation.accel = read_mixfloat(src);
    animation.speed_lateral = read_mixfloat(src);
    animation.accel_lateral = read_mixfloat(src);
    animation.frame_start = read_bitu16(src);
    animation.frame_end = read_bitu16(src);
    animation.next_animation = read_bitu16(src);
    animation.next_frame = read_bitu16(src);
    animation.num_state_changes = read_bitu16(src);
    animation.state_change_offset = read_bitu16(src);
    animation.num_anim_commands = read_bitu16(src);
    animation.anim_command = read_bitu16(src);
}
void TR_Level :: read_tr4_animation ( SDL_RWops * const src , tr_animation_t & animation ) { animation . frame_offset = read_bitu32 ( src ) ; animation . frame_rate = read_bitu8 ( src ) ; animation . frame_size = read_bitu8 ( src ) ; animation . state_id = read_bitu16 ( src ) ; animation . speed = read_mixfloat ( src ) ; animation . accel = read_mixfloat ( src ) ; animation . speed_lateral = read_mixfloat ( src ) ; animation . accel_lateral = read_mixfloat ( src ) ; animation . frame_start = read_bitu16 ( src ) ; animation . frame_end = read_bitu16 ( src ) ; animation . next_animation = read_bitu16 ( src ) ; animation . next_frame = read_bitu16 ( src ) ; animation . num_state_changes = read_bitu16 ( src ) ; animation . state_change_offset = read_bitu16 ( src ) ; animation . num_anim_commands = read_bitu16 ( src ) ; animation . anim_command = read_bitu16 ( src ) ; }
\brief reads an animation definition.
\ brief reads an animation definition .