private void ReadVerts() { vertLump = new BSPVertexLump(); BSPfile.BaseStream.Seek(header.directory[3].Offset, SeekOrigin.Begin); int numVerts = header.directory[3].Length / 12; vertLump.verts = new Vector3[numVerts]; for (int i = 0; i < numVerts; i++) { vertLump.verts[i] = new Vector3(BSPfile.ReadSingle(), BSPfile.ReadSingle(), BSPfile.ReadSingle()).QSwizzle(); } }
private void ReadVerts() { vertLump = new BSPVertexLump(); BSPfile.BaseStream.Position = header.directory [3].offset; int numVerts = header.directory [3].length / 12; bspInfo.mapNum_verts = numVerts; vertLump.verts = new Vector3[numVerts]; for (int i = 0; i < numVerts; i++) { vertLump.verts[i] = BSPfile.ReadVector3(); } }
private void ReadVerts () { vertLump = new BSPVertexLump (); BSPfile.BaseStream.Position = header.directory [3].offset; int numVerts = header.directory [3].length / 12; bspInfo.mapNum_verts = numVerts; vertLump.verts = new Vector3[numVerts]; for (int i = 0; i < numVerts; i++) { vertLump.verts[i] = BSPfile.ReadVector3(); } }