Exemple #1
0
 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();
   }
 }
Exemple #2
0
 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();
   }
 }
Exemple #3
0
 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();
     }
   }
 }
Exemple #4
0
 void readVecFloat(Vector3f in) {
   in.z = file.readFloat();
   in.x = file.readFloat();
   in.y = file.readFloat();
 }