Ignore:
Timestamp:
07/26/14 02:05:33 (11 years ago)
Author:
epyon
Message:
  • assimp_loader now uses standard mesh_loader structures
  • assimp_loader now supports multiple animation tracks
  • mesh_loader now supports multiple mesh_nodes data sets
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/formats/nmd_loader.hh

    r287 r291  
    7272                virtual bool load( stream& source );
    7373                virtual mesh_data* release_mesh_data( size_t index = 0 );
    74                 virtual mesh_nodes_data* release_mesh_nodes_data();
     74                virtual size_t get_nodes_data_count() const { return 1; }
     75                virtual mesh_nodes_data* release_mesh_nodes_data( size_t = 0 );
    7576                virtual mesh_data_pack* release_mesh_data_pack();
    7677                virtual size_t get_mesh_count() const { return m_meshes.size(); }
     
    9091        };
    9192
    92         // TODO: Temporary, find a better way and remove!
    93         class nmd_temp_model_data
    94         {
    95                 friend class nmd_temp_animation_data;
    96         public:
    97                 nmd_temp_model_data( nmd_loader* loader );
    98                 const mesh_data* get_data( uint32 index ) const { return m_mesh_data[index]; }
    99                 uint32 get_count() const { return m_mesh_data.size(); }
    100                 const mesh_nodes_data* get_node_data() const { return m_node_data; }
    101                 ~nmd_temp_model_data();
    102         private:
    103                 std::vector< mesh_data*> m_mesh_data;
    104                 mesh_nodes_data*         m_node_data;
    105         };
    106 
    10793}
    10894
Note: See TracChangeset for help on using the changeset viewer.