G2DSetCamera

Syntax

#include <revolution/G2D.h>

void G2DSetCamera( G2DPosOri *po );

Arguments

po Pointer to the G2DPosOri structure to which the position and orientation of the camera have been passed.

Return Values

None.

Description

The G2DSetCamera function sets the current position and orientation of the camera. The position and orientation are passed using the G2DposOri structure. The rOriX and rOriY elements of this structure specify the orientation as an upward facing vector. This vector represents the direction of the camera in the world-space to be rendered by taking this vector as facing upward in the screen space. This vector must be normalized.

See Also

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL