Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. void CheapCopyTo(TachoGLModel<T>*model)
  2.  {
  3.  model->header.LENGTH   = this->header.LENGTH;
  4.  model->header.version  = this->header.version;
  5.  model->header.addon    = this->header.addon;
  6.  
  7.  
  8.  model->AOS         = new TTGLVertex<T,float,float>[ this->header.LENGTH ];
  9.  model->Matrixarr   = new tmatrixtype[ this->FaceLength ];
  10.  model->VBO_BE      = new tvbofacenfo[ this->FaceLength ];
  11.  
  12.  
  13.  
  14.  memcpy(model->AOS,         this->AOS,          sizeof(this->AOS[0])            * this->FaceLength);
  15.  memcpy(model->Matrixarr,   this->Matrixarr,    sizeof(this->Matrixarr[0])      * this->FaceLength);
  16.  memcpy(model->VBO_BE,      this->VBO_BE,       sizeof(this->VBO_BE[0])         * this->FaceLength);
  17.  
  18.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement