void setUpWings() { Loader* bodyLoader = new Loader(); bodyLoader->loadObject("Body.obj"); vector<GLfloat> temp = bodyLoader->getVerticies(); verticesBody = new GLfloat[temp.size()]; memcpy(verticesBody, &temp.front(), sizeof(GLfloat) * temp.size()); vector<GLfloat> tempNormal = bodyLoader->getNormals(); normalsBody = new GLfloat[tempNormal.size()]; memcpy(normalsBody, &tempNormal.front(), sizeof(GLfloat) * tempNormal.size()); vector<GLint> tempIndices = bodyLoader->getFaces(); facesBody = new GLint[tempIndices.size()]; memcpy(facesBody, &tempIndices.front(), sizeof(GLint) * tempIndices.size()); amountOfFacesBody = tempIndices.size(); vertSizeBody = temp.size(); normalSizeBody = tempNormal.size(); indicieSizeBody = tempIndices.size(); }