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

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

Syntax
Pascal
class procedure SetScissor(const P1: TAgkPoint; const P2: TAgkPoint); overload; static;
Parameters 
Description 
const P1: TAgkPoint 
The first coordinate. 
const P2: TAgkPoint 
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.