RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwSetCameraViewport(RwCamera *camera, RwInt32 x, RwInt32 y,
RwInt32 width, RwInt32 height);

Description

Defines a rectangular area of the display (screen or window) onto which the camera’s view window is mapped.

Arguments

camera Pointer to the camera.

x X coordinate of the viewport origin (in device space coordinates).

y Y coordinate of the viewport origin (in device space coordinates).

width Width of the viewport (in device space units).

height Height of the viewport (in device space units).

Return Value

The argument camera if successful, and NULL otherwise.

Comments

The viewport origin is the top left of the viewport.

See Also

RwCreateCamera()

RwGetCameraViewport()

RwSetCameraBackdropViewportRect()

RwSetCameraViewwindow()