SetRotation

static void SetRotation(
float angle );

Set the rotational angle of the screen contents.

The angle is in clockwise order.

Examples

// Set the rotation of the screen contents to pi/2 //
// (the screen will be rotated 90 decrees clockwise) //
Transforms::SetRotation( AL_PI/2 );

// Get rid of the rotation //
Transforms::SetRotation0.0 );


Other functions of the class Transforms
SetPosition
Set the position of screen contents
SetRotation
Set the rotational angle of the screen contents
SetRotationPivot
Selects the pivot point of the screen rotation
SetStretch
Sets the stretch factor of the screen
SetTintColor
Tints the whole screen to a color
ResetTransforms
Disables all the active placement transformations
SetColorChannels
Sets the coefficients of the color channels
GetColorChannels
Returns the coefficients of the color channels


Questions about SetRotation? Click here.