1clear_zbuffer(3)                Allegro manual                clear_zbuffer(3)
2
3
4

NAME

6       clear_zbuffer  -  Writes a depth value into the given Z-buffer. Allegro
7       game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void clear_zbuffer(ZBUFFER *zbuf, float z);
14

DESCRIPTION

16       Writes z into the given Z-buffer (0  means  far  away).  This  function
17       should  be used to initialize the Z-buffer before each frame. Actually,
18       low-level routines compare depth of the current  pixel  with  1/z:  for
19       example,  if  you  want to clip polygons farther than 10, you must call
20       clear_zbuffer(zbuf, 0.1).
21
22

SEE ALSO

24       create_zbuffer(3), set_zbuffer(3), destroy_zbuffer(3), exzbuf(3)
25
26
27
28Allegro                          version 4.2.2                clear_zbuffer(3)
Impressum