Using the 3d scene functions. allegro game programming library.
#include <allegro.h>
Example exscn3d
This program demonstrates how to use scanline sorting algorithm in Allegro (create_scene, clear_scene, ... functions). It also provides an example of how to use the 3D clipping function. The example consists of a flyby through a lot of rotating 3d cubes.
BITMAP(3alleg4), END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), LOCK_VARIABLE(3alleg4), MATRIX_f(3alleg4), PALETTE(3alleg4), POLYTYPE_GCOL(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), V3D_f(3alleg4), allegro_error(3alleg4), allegro_exit(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), apply_matrix_f(3alleg4), bitmap_color_depth(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), clear_scene(3alleg4), clip3d_f(3alleg4), create_bitmap(3alleg4), create_scene(3alleg4), desktop_palette(3alleg4), destroy_bitmap(3alleg4), destroy_scene(3alleg4), font(3alleg4), get_rotation_matrix_f(3alleg4), get_translation_matrix_f(3alleg4), gfx_mode_select_ex(3alleg4), install_int(3alleg4), install_keyboard(3alleg4), install_mouse(3alleg4), install_timer(3alleg4), key(3alleg4), matrix_mul_f(3alleg4), palette_color(3alleg4), persp_project_f(3alleg4), polygon_z_normal_f(3alleg4), render_scene(3alleg4), scene_polygon3d_f(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), set_projection_viewport(3alleg4), textprintf_ex(3alleg4)