fg_setclip()

Win32 DirectX Fastgraph/Light

Prototype

void fg_setclip (int minx, int maxx, int miny, int maxy);

Sub fg_setclip (ByVal minx As Long, ByVal maxx As Long, ByVal miny As Long, ByVal maxy As Long)

procedure fg_setclip (minx, maxx, miny, maxy : integer);

Description

The fg_setclip() function defines the active virtual buffer's clipping region in screen space. The clipping region is a rectangular area outside of which certain graphics are suppressed.

Parameters

minx is the screen space x coordinate of the clipping region's left edge.

maxx is the screen space x coordinate of the clipping region's right edge. It must be greater than or equal to the value of minx.

miny is the screen space y coordinate of the clipping region's top edge.

maxy is the screen space y coordinate of the clipping region's bottom edge. It must be greater than or equal to the value of miny.

Return value

none

Restrictions

none

See also

fg_getclip(), fg_setclipw()

Examples

Rainbow

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.