I'm reading obj files from Blender and trying to load in an animation. (lots of vertices, 1 file for each frame)
For performance... Is it bad to create your own animation class, using this method to store frames?
vector <vector <float>> frames;
vector <float> verticesForThisFrame;
verticesForThisFrame.push_back(readX());
verticesForThisFrame.push_back(readY());
verticesForThisFrame.push_back(readZ());
frames.push_back(verticesForThisFrame);
If it's very inefficient, what do you suggest I do?
By the way, I use SDL to open a window, and OpenGL for graphics.