Changeset 261 for trunk/src/gfx


Ignore:
Timestamp:
06/18/14 20:05:35 (11 years ago)
Author:
epyon
Message:
  • md5_loader using dynamic_array
  • skeleton animation via pointer, not vector
  • minor fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/skeletal_mesh.cc

    r252 r261  
    4141                uint32 anim_duration = uint32( frame_duration * (float)m_animation->get_frame_count() );
    4242                while ( m_animation_time >= anim_duration ) m_animation_time -= anim_duration;
    43                 m_animation->update_skeleton( m_transform, (float)m_animation_time * 0.001f );
    44                 m_mesh_data->apply( m_transform );
     43                m_animation->update_skeleton( m_transform.data(), (float)m_animation_time * 0.001f );
     44                m_mesh_data->apply( m_transform.data() );
    4545                vertex_buffer* vb = m_va->find_buffer( nv::POSITION );
    4646                vb->bind();
Note: See TracChangeset for help on using the changeset viewer.