Platform SDK: DirectX

DirectX7.CreateD3DLVertex

The DirectX7.CreateD3DLVertex method fills a D3DLVERTEX type using individual values that represent discrete vertex components.

object.CreateD3DLVertex(x As Single, _ 
    y As Single, _ 
    z As Single, _ 
    color As Long, _ 
    specular As Long, _ 
    tu As Single, _ 
    tv As Single, _ 
    v As D3DLVERTEX)

Parameters

object
Object expression that resolves to a DirectX7 object.
x, y, and z
Values describing the x-, y-, and z-coordinates of the vertex.
color and specular
Value specifying the RGBA representation of the diffuse and specular colors for the vertex. You can use the DirectX7.CreateColorRGBA method to generate desired color value from individual red, green, blue, and alpha components.
tu and tv
Values describing the u and v texture coordinates of the vertex.
v
Variable of type D3DLVERTEX that will be filled with the provided vertex component data.

Error Codes

If the method fails, an error is raised and Err.Number is set to an error code.

See Also

DirectX7.CreateD3DVertex, DirectX7.CreateD3DTLVertex