.\" Generated by the Allegro makedoc utility .TH ex3d 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME ex3d \- 3d 'bouncy cubes' demo. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B Example ex3d .SH DESCRIPTION This program demonstrates how to use the 3d matrix functions. It isn't a very elegant or efficient piece of code, but it does show the stuff in action. It is left to the reader as an exercise to design a proper model structure and rendering pipeline: after all, the best way to do that sort of stuff varies hugely from one game to another. The example first shows a screen resolution selection dialog. Then, a number of bouncing 3d cubes are animated. Pressing a key modifies the rendering of the cubes, which can be wireframe, the more complex transparent perspective correct texture mapped version, and many other. .SH SEE ALSO .BR BITMAP (3alleg4), .BR COLOR_MAP (3alleg4), .BR END_OF_MAIN (3alleg4), .BR MATRIX (3alleg4), .BR PALETTE (3alleg4), .BR POLYTYPE_ATEX (3alleg4), .BR POLYTYPE_ATEX_LIT (3alleg4), .BR POLYTYPE_ATEX_MASK (3alleg4), .BR POLYTYPE_ATEX_MASK_LIT (3alleg4), .BR POLYTYPE_ATEX_MASK_TRANS (3alleg4), .BR POLYTYPE_ATEX_TRANS (3alleg4), .BR POLYTYPE_FLAT (3alleg4), .BR POLYTYPE_GCOL (3alleg4), .BR POLYTYPE_GRGB (3alleg4), .BR POLYTYPE_PTEX (3alleg4), .BR POLYTYPE_PTEX_LIT (3alleg4), .BR POLYTYPE_PTEX_MASK (3alleg4), .BR POLYTYPE_PTEX_MASK_LIT (3alleg4), .BR POLYTYPE_PTEX_MASK_TRANS (3alleg4), .BR POLYTYPE_PTEX_TRANS (3alleg4), .BR RGB (3alleg4), .BR RGB_MAP (3alleg4), .BR SCREEN_H (3alleg4), .BR SCREEN_W (3alleg4), .BR V3D (3alleg4), .BR allegro_error (3alleg4), .BR allegro_exit (3alleg4), .BR allegro_init (3alleg4), .BR allegro_message (3alleg4), .BR apply_matrix (3alleg4), .BR bitmap_color_depth (3alleg4), .BR bitmap_mask_color (3alleg4), .BR blit (3alleg4), .BR clear_bitmap (3alleg4), .BR clear_to_color (3alleg4), .BR color_map (3alleg4), .BR create_bitmap (3alleg4), .BR create_light_table (3alleg4), .BR create_rgb_table (3alleg4), .BR create_trans_table (3alleg4), .BR desktop_palette (3alleg4), .BR destroy_bitmap (3alleg4), .BR fixed (3alleg4), .BR fixtoi (3alleg4), .BR font (3alleg4), .BR get_transformation_matrix (3alleg4), .BR gfx_mode_select_ex (3alleg4), .BR install_keyboard (3alleg4), .BR install_mouse (3alleg4), .BR install_timer (3alleg4), .BR itofix (3alleg4), .BR key (3alleg4), .BR keypressed (3alleg4), .BR line (3alleg4), .BR palette_color (3alleg4), .BR persp_project (3alleg4), .BR polygon_z_normal (3alleg4), .BR quad3d (3alleg4), .BR readkey (3alleg4), .BR rect (3alleg4), .BR retrace_count (3alleg4), .BR rgb_map (3alleg4), .BR screen (3alleg4), .BR set_color_depth (3alleg4), .BR set_gfx_mode (3alleg4), .BR set_palette (3alleg4), .BR set_projection_viewport (3alleg4), .BR set_trans_blender (3alleg4), .BR textout_ex (3alleg4), .BR textprintf_ex (3alleg4), .BR vsync (3alleg4)