internal void AddVertex(Vector3 position, Vector2 textureCoord, Vector4 colour)
 {
     AllocSpace(_vertexCount + 1);
     _vertexArray[_vertexCount++] = new QVertex
     {
         Position     = position,
         TextureCoord = textureCoord,
         VertexColor  = colour
     };
 }
        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++;
        }
Beispiel #3
0
        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++;
        }