OpenLayer Offline Manual

SetClipping
static void SetClipping( | int x, int y, int w, int h );
Sets the clipping region of the screen. The parts of the objects which fall out of the clipping region will not be rendered. This function could be used to implement split screen views or minimaps, for example. Examples // Set the clipping region to a 100 x 100 portion at the top-right side of the screen // Transforms::SetClipping( SCREEN_W - 100, 0, 100, 100 ); // Set the clipping region to the left half of the screen // Transforms::SetClipping( 0, 0, SCREEN_W/2, SCREEN_H ); 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
SetClipping | Sets the clipping region of the screen
DisableClipping | Disables the clipping region
Back to the main page of the manual Questions about SetClipping? Click here.