home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch13 / quake / TextureVertex.java < prev    next >
Text File  |  1996-11-17  |  619b  |  24 lines

  1. // Skin vertex for an MDL file from Quake
  2.  
  3. // Written by Bernie Roehl, November 1996
  4.  
  5. package quake;
  6.  
  7. import java.io.*;
  8.  
  9. public class TextureVertex {
  10.         protected boolean onseam;
  11.         protected int s, t;
  12.  
  13.         public boolean isOnseam() { return onseam; }
  14.         public int getS() { return s; }
  15.         public int getT() { return t; }
  16.  
  17.         public TextureVertex(ByteFlipInputStream input) throws IOException {
  18.                 onseam = (input.readFlippedInt() == 0) ? false : true;
  19.                 s = input.readFlippedInt();
  20.                 t = input.readFlippedInt();
  21.         }
  22. }
  23.  
  24.