Exemplo n.º 1
0
 public static PMD_FACE_VTX[] createArray(int i_length)
 {
     PMD_FACE_VTX[] ret = new PMD_FACE_VTX[i_length];
     for (int i = 0; i < i_length; i++)
     {
         ret[i] = new PMD_FACE_VTX();
     }
     return(ret);
 }
Exemplo n.º 2
0
 public PMD_FACE(int n)
 {
     this.szName      = "デフォ";
     this.numVertices = n;
     this.cbType      = 0;
     //必要な数だけ配列を確保しなおす。
     if (this.numVertices > this.pVertices.Length)
     {
         this.pVertices = PMD_FACE_VTX.createArray(this.numVertices);
     }
     return;
 }
Exemplo n.º 3
0
        public void read(DataReader i_reader)
        {
            this.szName      = i_reader.readAscii(20);
            this.numVertices = i_reader.readInt();
            this.cbType      = i_reader.read();

            //必要な数だけ配列を確保しなおす。
            if (this.numVertices > this.pVertices.Length)
            {
                this.pVertices = PMD_FACE_VTX.createArray(this.numVertices);
            }

            for (int i = 0; i < this.numVertices; i++)
            {
                this.pVertices[i].read(i_reader);
            }
            return;
        }
Exemplo n.º 4
0
 public void setValue(PMD_FACE_VTX i_value)
 {
     this.ulIndex = i_value.ulIndex;
     this.vec3Pos.setValue(i_value.vec3Pos);
     return;
 }