Microsoft DirectX 8.1 (Visual Basic)

D3DXVec3Project

Projects a vector from object space into screen space.

D3DXVec3Project( _ 
    VOut As D3DVECTOR, _ 
    V As D3DVECTOR, _ 
    Viewport As D3DVIEWPORT8, _ 
    Projection As D3DMATRIX, _ 
    View As D3DMATRIX, _ 
    World As D3DMATRIX)

Parameters

VOut
D3DVECTOR type that is the result of the operation, the vector projected from object space to screen space.
V
The source D3DVECTOR type.
Viewport
D3DVIEWPORT8 type, representing the viewport.
Projection
D3DMATRIX type, representing the projection matrix.
View
D3DMATRIX type, representing the view matrix.
World
D3DMATRIX type, representing the world matrix.

Error Codes

If the function fails, an error is raised and Err.Number can be set to one of the following values.

D3DERR_INVALIDCALL
D3DERR_OUTOFVIDEOMEMORY

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

D3DXVec3Unproject