1al_clear_depth_buffer(3)                              al_clear_depth_buffer(3)
2
3
4

NAME

6       al_clear_depth_buffer - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              void al_clear_depth_buffer(float z)
12

DESCRIPTION

14       Clear the depth buffer (confined by the clipping rectangle) to the giv‐
15       en value.  A depth buffer is only available if it  was  requested  with
16       al_set_new_display_option(3)  and  the  requirement could be met by the
17       al_create_display(3) call creating the current display.  Operations in‐
18       volving the depth buffer are also affected by al_set_render_state(3).
19
20       For  example,  if  ALLEGRO_DEPTH_FUNCTION is set to ALLEGRO_RENDER_LESS
21       then depth buffer value of 1 represents infinite distance, and thus  is
22       a good value to use when clearing the depth buffer.
23

SINCE

25       5.1.2
26

SEE ALSO

28       al_clear_to_color(3),     al_set_clipping_rectangle(3),     al_set_ren‐
29       der_state(3), al_set_new_display_option(3)
30
31
32
33Allegro reference manual                              al_clear_depth_buffer(3)
Impressum