.\" Generated by the Allegro makedoc utility .TH clear_zbuffer 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME clear_zbuffer \- Writes a depth value into the given Z-buffer. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void clear_zbuffer(ZBUFFER *zbuf, float z); .SH DESCRIPTION Writes z into the given Z-buffer (0 means far away). This function should be used to initialize the Z-buffer before each frame. Actually, low-level routines compare depth of the current pixel with 1/z: for example, if you want to clip polygons farther than 10, you must call clear_zbuffer(zbuf, 0.1). .SH SEE ALSO .BR create_zbuffer (3alleg4), .BR set_zbuffer (3alleg4), .BR destroy_zbuffer (3alleg4), .BR exzbuf (3alleg4)