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

ReadMOTV1() static private method

static private ReadMOTV1 ( BinaryReader br, WMOGroup group, uint size ) : void
br System.IO.BinaryReader
group WMOGroup
size uint
return void
        static void ReadMOTV1(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.TextureVertices1 = new Vector2[size/8];

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