QuickFont.QVertexBuffer.AddVertex C# (CSharp) Метод

AddVertex() публичный Метод

public AddVertex ( Vector3 point, Vector3 normal, System.Vector2 textureCoord, int color ) : void
point Vector3
normal Vector3
textureCoord System.Vector2
color int
Результат void
        public void AddVertex(Vector3 point, Vector3 normal, Vector2 textureCoord, int color)
        {
            if (VertexCount + 1 >= Vertices.Length)
            {
                var newArray = new QVertex[Vertices.Length * 2];
                Array.Copy(Vertices, newArray, VertexCount);
                Vertices = newArray;
            }

            Vertices[VertexCount].Set(point, normal, textureCoord, color);

            VertexCount++;
        }