AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkScene.SetScissor Method (Single, Single, Single, Single)

Sets the area of the screen that will be drawn to in the frame.

Syntax
Pascal
class procedure SetScissor(const X1: Single; const Y1: Single; const X2: Single; const Y2: Single); overload; static;
Parameters 
Description 
const X1: Single 
The X component of the first coordinate. 
const Y1: Single 
The Y component of the first coordinate. 
const X2: Single 
The X component of the second coordinate. 
const Y2: Single 
The Y component of the second coordinate. 

The area is defined by two points representing the opposite corners of a rectangle which will be the new drawing area. The area outside this rectangle will still be cleared with the background color if EnableClearColor is set to True.

Copyright (c) 2012. All rights reserved.