OpenLayer Offline Manual

OpenLayer | Transforms | SetRotationPivot SetRotationPivot
static void SetRotationPivot( | float pivotX, float pivotY );
Sets the pivot point of the screen rotation. The default point is the center of the screen. Hint: You can set the pivot point to be the player's position in the screen to rotate the screen around the player. Examples // Set the rotation point of the screen contents to x = 300.0, y = 400.0 // Transforms::SetRotationPivot( 300.0, 400.0 ); // Set the rotation point back to the center of the screen // Transforms::SetRotationPivot( SCREEN_W/2, SCREEN_H/2 ); 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
Back to the main page of the manual Questions about SetRotationPivot? Click here.