logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

create_zbuffer - Creates a Z-buffer for a bitmap. Allegro game programming library.

Description

       Creates  a  Z-buffer  using  the size of the BITMAP you are planning to draw on. Several Z-buffers can be
       defined but only one can be used at the same time, so you must call set_zbuffer() to make  this  Z-buffer
       active.

Name

       create_zbuffer - Creates a Z-buffer for a bitmap. Allegro game programming library.

Return Value

       Returns  the  pointer  to the ZBUFFER or NULL if there was an error. Remember to destroy the ZBUFFER once
       you are done with it, to avoid having memory leaks.

See Also

create_sub_zbuffer(3alleg4),  set_zbuffer(3alleg4),   clear_zbuffer(3alleg4),   destroy_zbuffer(3alleg4),
       exzbuf(3alleg4)

Allegro                                           version 4.4.3                          create_zbuffer(3alleg4)

Synopsis

#include<allegro.h>ZBUFFER*create_zbuffer(BITMAP*bmp);

See Also