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