Provided by: liballegro-doc_4.2.2-3_all bug

NAME

       ex3d - 3d 'bouncy cubes' demo. Allegro game programming library.

SYNOPSIS

       #include <allegro.h>

       Example ex3d

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.

SEE ALSO

       BITMAP(3alleg),  COLOR_MAP(3alleg),  END_OF_MAIN(3alleg), MATRIX(3alleg), PALETTE(3alleg),
       POLYTYPE_ATEX(3alleg),       POLYTYPE_ATEX_LIT(3alleg),        POLYTYPE_ATEX_MASK(3alleg),
       POLYTYPE_ATEX_MASK_LIT(3alleg),                          POLYTYPE_ATEX_MASK_TRANS(3alleg),
       POLYTYPE_ATEX_TRANS(3alleg),         POLYTYPE_FLAT(3alleg),         POLYTYPE_GCOL(3alleg),
       POLYTYPE_GRGB(3alleg),          POLYTYPE_PTEX(3alleg),          POLYTYPE_PTEX_LIT(3alleg),
       POLYTYPE_PTEX_MASK(3alleg),                                POLYTYPE_PTEX_MASK_LIT(3alleg),
       POLYTYPE_PTEX_MASK_TRANS(3alleg),         POLYTYPE_PTEX_TRANS(3alleg),        RGB(3alleg),
       RGB_MAP(3alleg), SCREEN_H(3alleg), SCREEN_W(3alleg),  V3D(3alleg),  allegro_error(3alleg),
       allegro_exit(3alleg), allegro_init(3alleg), allegro_message(3alleg), apply_matrix(3alleg),
       bitmap_color_depth(3alleg), bitmap_mask_color(3alleg), blit(3alleg), clear_bitmap(3alleg),
       clear_to_color(3alleg),              color_map(3alleg),             create_bitmap(3alleg),
       create_light_table(3alleg),     create_rgb_table(3alleg),      create_trans_table(3alleg),
       desktop_palette(3alleg),     destroy_bitmap(3alleg),     fixed(3alleg),    fixtoi(3alleg),
       font(3alleg),        get_transformation_matrix(3alleg),        gfx_mode_select_ex(3alleg),
       install_keyboard(3alleg),  install_mouse(3alleg),  install_timer(3alleg),  itofix(3alleg),
       key(3alleg),        keypressed(3alleg),        line(3alleg),        palette_color(3alleg),
       persp_project(3alleg),    polygon_z_normal(3alleg),    quad3d(3alleg),    readkey(3alleg),
       rect(3alleg),        retrace_count(3alleg),        rgb_map(3alleg),        screen(3alleg),
       set_color_depth(3alleg),             set_gfx_mode(3alleg),            set_palette(3alleg),
       set_projection_viewport(3alleg),      set_trans_blender(3alleg),       textout_ex(3alleg),
       textprintf_ex(3alleg), vsync(3alleg)