ex3d (3) - Linux Manuals

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

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.