private void readFrames() { file.setOffset(head.frameOffset); frames = new MD3Frame[head.numFrames]; for (int i = 0; i < head.numFrames; i++) { frames[i] = new MD3Frame(); frames[i].readMe(); } }
private void readSurfaces() throws IOException { file.setOffset(head.surfaceOffset); surfaces = new MD3Surface[head.numSurface]; for (int i = 0; i < head.numSurface; i++) { surfaces[i] = new MD3Surface(); surfaces[i].readMe(); } }
private void readTags() { file.setOffset(head.tagOffset); tags = new MD3Tag[head.numFrames][]; for (int i = 0; i < head.numFrames; i++) { tags[i] = new MD3Tag[head.numTags]; for (int j = 0; j < head.numTags; j++) { tags[i][j] = new MD3Tag(); tags[i][j].readMe(); } } }
void readVecFloat(Vector3f in) { in.z = file.readFloat(); in.x = file.readFloat(); in.y = file.readFloat(); }