ResetPlacement

static void ResetPlacement();

Resets all the active placement transformations to default.

The reseted transformations include the position, rotation and stretching. Note that this function doesn't reset the rotation pivot to the center of the screen.

Note: Empties the Transforms stack!

Examples

// Set the position, rotation and stretching to normal (no active placement transformations) //
Screen::ResetPlacement();


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 ResetPlacement? Click here.