---
name: "gl_setclippingwindow"
section: "3vga"
platform: "linux"
package: "svgalibg1-dev"
version: "1:1.4.3-7"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/gl_setclippingwindow/3vga"
---

# gl\_setclippingwindow(3vga)

set the clipping window

## NAME

gl\_setclippingwindow - set the clipping window

## SYNOPSIS

**#include \<vgagl.h\>**

**void gl\_setclippingwindow(int** *x1***, int** *y1***, int** *x2***, int** *y2***);**

## DESCRIPTION

Set the clipping window to the rectangle with top-left corner (*x1*, *y1*) and bottom-right corner (*x2*, *y2*) (inclusively).

## SEE ALSO

[**svgalib**(7)](/svgalib/7.md), [**vgagl**(7)](/vgagl/7.md), **svgalib.conf**(5), **threedkit**(7), **testgl**(1), [**gl\_disableclipping**(3)](/gl_disableclipping/3.md), [**gl\_enableclipping**(3)](/gl_enableclipping/3.md).

## AUTHOR

This manual page was edited by Michael Weller \<eowmob@exp-math.uni-essen.de\>. The exact source of the referenced demo as well as of the original documentation is unknown.

It is very likely that both are at least to some extent are due to Harm Hanemaayer \<H.Hanemaayer@inter.nl.net\>.

Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections to this first version of the svgalib manual.
