Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CheapCopyTo(TachoGLModel<T>*model)
- {
- model->header.LENGTH = this->header.LENGTH;
- model->header.version = this->header.version;
- model->header.addon = this->header.addon;
- model->AOS = new TTGLVertex<T,float,float>[ this->header.LENGTH ];
- model->Matrixarr = new tmatrixtype[ this->FaceLength ];
- model->VBO_BE = new tvbofacenfo[ this->FaceLength ];
- memcpy(model->AOS, this->AOS, sizeof(this->AOS[0]) * this->FaceLength);
- memcpy(model->Matrixarr, this->Matrixarr, sizeof(this->Matrixarr[0]) * this->FaceLength);
- memcpy(model->VBO_BE, this->VBO_BE, sizeof(this->VBO_BE[0]) * this->FaceLength);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement