RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwGetCameraRenderOffset(RwCamera *camera, RwInt32 *x, RwInt32 *y)

Description

Sets the render offset for a camera.

Arguments

camera The camera for which the render offset is to be set.

x Pointer to retrieve the x offset

y Pointer to retrieve the y offset

Returns

If successful returns camera, otherwise NULL.

Comments

In single buffered mode, by default RenderWare always renders into the cameras image buffer at 0,0 regardless of where the viewport is defined. This function RwSetCameraRenderOffset() allows the application to specify the point in the buffer at which rendering should start.

See Also

RwGetCameraRenderOffset()