Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9827 in orxonox.OLD


Ignore:
Timestamp:
Sep 26, 2006, 1:15:22 AM (18 years ago)
Author:
bensch
Message:

copy constructor

Location:
branches/new_class_id/src/lib/graphics/importer/md2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/md2/md2Model.cc

    r9824 r9827  
    9595}
    9696
     97MD2Model::MD2Model(const MD2Model& model)
     98  : data(model.data)
     99{
     100  this->init();
     101  this->rebuildInfo();
     102}
     103
    97104MD2Model& MD2Model::operator=(const MD2Model& md2model)
    98105{
    99106  this->data = md2model.data;
    100   rebuildInfo();
     107  this->rebuildInfo();
    101108  return *this;
    102109}
     
    133140{
    134141  this->data = MD2Data::Pointer(new MD2Data(modelFileName, skinFileName, scale));
     142  this->rebuildInfo();
    135143}
    136144
  • branches/new_class_id/src/lib/graphics/importer/md2/md2Model.h

    r9826 r9827  
    159159  MD2Model();
    160160  MD2Model(const std::string& modelFileName, const std::string& skinFileName = "", float scale = 1.0f);
     161  MD2Model(const MD2Model& model);
    161162  virtual ~MD2Model();
    162163
Note: See TracChangeset for help on using the changeset viewer.