RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwGetCameraBackdropOffset(RwCamera *camera, RwInt32 *x, RwInt32 *y);

Description

Retrieves the offset (from the origin of the camera’s backdrop viewport rectangle) of the camera’s backdrop.

Arguments

camera Pointer to the camera.

x Pointer to integer to receive the horizontal offset (in pixels).

y Pointer to integer to receive the vertical offset (in pixels).

Return Value

The argument camera if successful, and NULL otherwise.

Comments

The X and Y offset (modulo the width and height of the backdrop) specify the pixel in the backdrop which will be mapped to the origin of the backdrop viewport rectangle. Therefore, the effect of increasing the X offset will be to scroll the backdrop to the left and increasing the Y offset will scroll the backdrop up.

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

See Also

RwGetCameraBackdrop()

RwGetCameraBackdropViewportRect()

RwSetCameraBackdrop()

RwSetCameraBackdropOffset()

RwSetCameraBackdropViewportRect()