RenderWare V2.1

Previous Page Index Next Page

RwBool

RwGetClumpVertexViewportPosition(RwClump *clump, RwInt32 index,
RwCamera *camera, RwInt32 *x, RwInt32 *y, RwBool *visible);

Description

Retrieves the viewport space coordinates of the vertex belonging to clump with the vertex index index in the viewport of camera. visible indicates whether the vertex has been clipped from the view volume.

Arguments

clump Pointer to the clump.

index The vertex index.

camera Pointer to the camera.

x Pointer to integer to receive the X coordinate of the vertex (in viewport space coordinates).

y Pointer to integer to receive the Y coordinate of the vertex (in viewport space coordinates).

visible Pointer to integer to receive TRUE if the vertex is visible, and FALSE if it has been clipped from the view volume.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

If visible is FALSE the integer values pointed to by x and y are undefined.

For 16-bit applications accessing the RenderWare DLL the variables pointed to by x and y must be declared as RwInt32s and not ints. Furthermore, the variable pointed to by visible must be declared as an RwBool.

See Also

RwGetClumpVertex()

RwGetClumpViewportRect()

RwSetClumpVertex()