Ignore:
Timestamp:
07/08/14 18:29:24 (11 years ago)
Author:
epyon
Message:
  • unified mesh_raw_channel and mesh_raw_index_channel
  • string_table cleaned up and implementation of creator split into a cc file
File:
1 edited

Legend:

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

    r279 r280  
    143143        }
    144144
    145         mesh_raw_index_channel* ichannel = mesh_raw_index_channel::create( USHORT, mesh->mNumFaces * 3 );
    146         result->set_index_channel( ichannel );
     145        mesh_raw_channel* ichannel = mesh_raw_channel::create_index( USHORT, mesh->mNumFaces * 3 );
     146        result->add_channel( ichannel );
    147147        uint16* indices = (uint16*)ichannel->data;
    148148        for (unsigned int i=0; i<mesh->mNumFaces; i++)
     
    294294                {
    295295                        mesh_data* mesh = model->meshes[m];
    296                         mesh_raw_channel* channel = mesh->get_channel_data()[0];
     296                        mesh_raw_channel* channel = mesh->get_raw_channels()[0];
     297                        NV_ASSERT( !channel->is_index(), "index channel in release_merged!" );
    297298                        assimp_skinned_vtx* va = (assimp_skinned_vtx*)channel->data;
    298299                        for ( unsigned v = 0; v < channel->count; ++v )
Note: See TracChangeset for help on using the changeset viewer.