.\" Generated by the Allegro makedoc utility .TH exzbuf 3 "version 4.2.2" "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 (3), .BR END_OF_FUNCTION (3), .BR END_OF_MAIN (3), .BR LOCK_FUNCTION (3), .BR LOCK_VARIABLE (3), .BR MATRIX_f (3), .BR PALETTE (3), .BR POLYTYPE_GCOL (3), .BR SCREEN_H (3), .BR SCREEN_W (3), .BR V3D_f (3), .BR ZBUFFER (3), .BR allegro_error (3), .BR allegro_exit (3), .BR allegro_init (3), .BR allegro_message (3), .BR apply_matrix_f (3), .BR bitmap_color_depth (3), .BR blit (3), .BR clear_bitmap (3), .BR clear_zbuffer (3), .BR create_bitmap (3), .BR create_zbuffer (3), .BR desktop_palette (3), .BR destroy_bitmap (3), .BR destroy_zbuffer (3), .BR font (3), .BR get_transformation_matrix_f (3), .BR gfx_mode_select_ex (3), .BR install_int (3), .BR install_keyboard (3), .BR install_mouse (3), .BR install_timer (3), .BR keypressed (3), .BR palette_color (3), .BR persp_project_f (3), .BR polygon_z_normal_f (3), .BR quad3d_f (3), .BR readkey (3), .BR screen (3), .BR set_color_depth (3), .BR set_gfx_mode (3), .BR set_palette (3), .BR set_palette_range (3), .BR set_projection_viewport (3), .BR set_zbuffer (3), .BR textprintf_ex (3), .BR vsync (3)