.\" Generated by the Allegro makedoc utility .TH exzbuf 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME exzbuf \- Z-buffered polygons demo. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B Example exzbuf .SH DESCRIPTION This program demonstrates how to use Z-buffered polygons and floating point 3D math routines. It also provides a simple way to compute fps (frames per second) using a timer. After selecting a screen resolution through the standard GUI dialog, the example shows two 3D cubes rotating and intersecting each other. Rather than having full polygons incorrectly overlap other polygons due to per-polygon sorting, each pixel is drawn at the correct depth. .SH SEE ALSO .BR BITMAP (3alleg4), .BR END_OF_FUNCTION (3alleg4), .BR END_OF_MAIN (3alleg4), .BR LOCK_FUNCTION (3alleg4), .BR LOCK_VARIABLE (3alleg4), .BR MATRIX_f (3alleg4), .BR PALETTE (3alleg4), .BR POLYTYPE_GCOL (3alleg4), .BR SCREEN_H (3alleg4), .BR SCREEN_W (3alleg4), .BR V3D_f (3alleg4), .BR ZBUFFER (3alleg4), .BR allegro_error (3alleg4), .BR allegro_exit (3alleg4), .BR allegro_init (3alleg4), .BR allegro_message (3alleg4), .BR apply_matrix_f (3alleg4), .BR bitmap_color_depth (3alleg4), .BR blit (3alleg4), .BR clear_bitmap (3alleg4), .BR clear_zbuffer (3alleg4), .BR create_bitmap (3alleg4), .BR create_zbuffer (3alleg4), .BR desktop_palette (3alleg4), .BR destroy_bitmap (3alleg4), .BR destroy_zbuffer (3alleg4), .BR font (3alleg4), .BR get_transformation_matrix_f (3alleg4), .BR gfx_mode_select_ex (3alleg4), .BR install_int (3alleg4), .BR install_keyboard (3alleg4), .BR install_mouse (3alleg4), .BR install_timer (3alleg4), .BR keypressed (3alleg4), .BR palette_color (3alleg4), .BR persp_project_f (3alleg4), .BR polygon_z_normal_f (3alleg4), .BR quad3d_f (3alleg4), .BR readkey (3alleg4), .BR screen (3alleg4), .BR set_color_depth (3alleg4), .BR set_gfx_mode (3alleg4), .BR set_palette (3alleg4), .BR set_palette_range (3alleg4), .BR set_projection_viewport (3alleg4), .BR set_zbuffer (3alleg4), .BR textprintf_ex (3alleg4), .BR vsync (3alleg4)