Ignore:
Timestamp:
06/02/15 20:56:15 (10 years ago)
Author:
epyon
Message:
  • more work on stl
  • fully working vectors!
  • copy & copy_n
  • removal of a lot of std code!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/formats/assimp_loader.cc

    r382 r383  
    188188}
    189189
    190 bool nv::assimp_loader::load_bones( size_t index, std::vector< mesh_node_data >& bones )
     190bool nv::assimp_loader::load_bones( size_t index, array_ref< mesh_node_data > bones )
    191191{
    192192        if ( m_scene == nullptr ) return false;
     
    285285{
    286286        const aiScene* scene = (const aiScene*)m_scene;
    287         std::vector< mesh_node_data > final_bones;
     287        vector< mesh_node_data > final_bones;
    288288        std::unordered_map< std::string, uint16 > names;
    289289        for ( unsigned int m = 0; m < m_mesh_count; ++m )
    290290        {
    291291                uint16 translate[MAX_BONES];
    292                 std::vector< mesh_node_data > bones;
     292                vector< mesh_node_data > bones;
    293293                const aiMesh*  mesh  = scene->mMeshes[ m ];
    294294                if ( mesh->mNumBones != 0 )
     
    334334        }
    335335        mesh_node_data* bones = new mesh_node_data[ final_bones.size() ];
    336         std::copy( final_bones.begin(), final_bones.end(), bones );
     336        nv::raw_copy( final_bones.begin(), final_bones.end(), bones );
    337337        return new mesh_nodes_data( "bones", final_bones.size(), bones );
    338338}
Note: See TracChangeset for help on using the changeset viewer.