TerrainDisplay.MPQ.WMO.WMOGroupParser.ReadMOTV2 C# (CSharp) Method

ReadMOTV2() static private method

static private ReadMOTV2 ( BinaryReader br, WMOGroup group, uint size ) : void
br System.IO.BinaryReader
group WMOGroup
size uint
return void
        static void ReadMOTV2(BinaryReader br, WMOGroup group, uint size)
        {
            // Texture coordinates, 2 floats per vertex in (X,Y) order. The values range from 0.0 to 1.0.
            // Vertices, normals and texture coordinates are in corresponding order, of course.
            group.TextureVertices2 = new Vector2[size / 8];

            for (int i = 0; i < group.TextureVertices2.Length; i++)
            {
                group.TextureVertices2[i] = br.ReadVector2();
            }
        }