1exzbuf(3) Allegro manual exzbuf(3)
2
3
4
6 exzbuf - Z-buffered polygons demo. Allegro game programming library.
7
9 #include <allegro.h>
10
11
12 Example exzbuf
13
15 This program demonstrates how to use Z-buffered polygons and floating
16 point 3D math routines. It also provides a simple way to compute fps
17 (frames per second) using a timer. After selecting a screen resolution
18 through the standard GUI dialog, the example shows two 3D cubes rotat‐
19 ing and intersecting each other. Rather than having full polygons
20 incorrectly overlap other polygons due to per-polygon sorting, each
21 pixel is drawn at the correct depth.
22
23
25 BITMAP(3), END_OF_FUNCTION(3), END_OF_MAIN(3), LOCK_FUNCTION(3),
26 LOCK_VARIABLE(3), MATRIX_f(3), PALETTE(3), POLYTYPE_GCOL(3),
27 SCREEN_H(3), SCREEN_W(3), V3D_f(3), ZBUFFER(3), allegro_error(3), alle‐
28 gro_exit(3), allegro_init(3), allegro_message(3), apply_matrix_f(3),
29 bitmap_color_depth(3), blit(3), clear_bitmap(3), clear_zbuffer(3), cre‐
30 ate_bitmap(3), create_zbuffer(3), desktop_palette(3), destroy_bit‐
31 map(3), destroy_zbuffer(3), font(3), get_transformation_matrix_f(3),
32 gfx_mode_select_ex(3), install_int(3), install_keyboard(3),
33 install_mouse(3), install_timer(3), keypressed(3), palette_color(3),
34 persp_project_f(3), polygon_z_normal_f(3), quad3d_f(3), readkey(3),
35 screen(3), set_color_depth(3), set_gfx_mode(3), set_palette(3),
36 set_palette_range(3), set_projection_viewport(3), set_zbuffer(3),
37 textprintf_ex(3), vsync(3)
38
39
40
41Allegro version 4.4.3 exzbuf(3)