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
ResetPlacement
Disables all the active placement transformations
SetColorChannels
Sets the coefficients of the color channels
GetColorChannels
Returns the coefficients of the color channels
PushPlacement
Pushes the placement state of Transforms in a stack
PopPlacement
Pops the most recent placement state of Transforms from the stack


Questions about SetRotation? Click here.