RenderWare V2.1

Previous Page Index Next Page

RwCamera *

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

Description

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

Arguments

camera Pointer to the camera.

x The horizontal offset (in pixels).

y 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.

See Also

RwGetCameraBackdrop()

RwGetCameraBackdropOffset()

RwGetCameraBackdropViewportRect()

RwSetCameraBackdrop()

RwSetCameraBackdropViewportRect()