RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwGetClumpViewportRect(RwClump *clump, RwCamera *camera,
RwInt32 *x, RwInt32 *y, RwInt32 *width, RwInt32 *height);

Description

Retrieves the 2D rectangle that encloses the projection of the clump onto the specified camera’s viewport.

Arguments

clump Pointer to the clump.

camera Pointer to the camera.

x Pointer to the integer that will receive the X coordinate of the top left corner of the rectangle (in viewport space coordinates).

y Pointer to the integer that will receive the Y coordinate of the top left corner of the rectangle (in viewport space coordinates).

width Pointer to the integer that will receive the width of the rectangle (in viewport space units).

height Pointer to the integer that will receive the height of the rectangle (in viewport space units).

Return Value

A pointer to the argument clump, and NULL otherwise.

For 16-bit applications accessing the RenderWare DLL the variables pointed to by x, y, width and height must be declared as RwInt32s and not ints.

See Also

RwDamageCameraViewport()

RwGetClumpBBox()

RwGetClumpLocalBBox()

RwGetClumpVertexViewportPosition()

RwUndamageCameraViewport()