exstars3alleg
3d starfield and lightsourced spaceship. allegro game programming library.
Usage
#include <allegro.h>
Example exstars
Overview
This program draws a 3D star field (depth-cued) and a polygon starship (controllable with the keyboard cursor keys), using the Allegro math functions.
Releases
4 releases since Debian 3.1 (Sarge); the text changed 2 times.
See also
BITMAP(3alleg)
Stores the contents of a bitmap. Allegro game programming library.
END_OF_MAIN(3alleg)
Macro to put after your main() function. Allegro game programming library.
MATRIX(3alleg)
Fixed point matrix structure. Allegro game programming library.
PALETTE(3alleg)
Stores palette information. Allegro game programming library.
SCREEN_H(3alleg)
Global define to obtain the size of the screen. Allegro game programming library.
SCREEN_W(3alleg)
Global define to obtain the size of the screen. Allegro game programming library.
allegro_error(3alleg)
Stores the last Allegro error message.
allegro_init(3alleg)
Macro to initialise the Allegro library.
allegro_message(3alleg)
Used mainly to show error messages to users. Allegro game programming library.
apply_matrix(3alleg)
Multiplies a point by a transformation matrix. Allegro game programming library.
blit(3alleg)
Copies a rectangular area from one bitmap to another. Allegro game programming library.
clear_bitmap(3alleg)
Clears the bitmap to color 0. Allegro game programming library.
create_bitmap(3alleg)
Creates a memory bitmap. Allegro game programming library.
cross_product(3alleg)
Calculates the cross product. Allegro game programming library.
destroy_bitmap(3alleg)
Destroys any type of created bitmap. Allegro game programming library.
dot_product(3alleg)
Calculates the dot product. Allegro game programming library.
fixed(3alleg)
Fixed point integer to replace floats. Allegro game programming library.
fixmul(3alleg)
Multiplies two fixed point values together. Allegro game programming library.
fixtof(3alleg)
Converts a fixed point to floating point. Allegro game programming library.
fixtoi(3alleg)
Converts a fixed point to integer with rounding. Allegro game programming library.
font(3alleg)
A simple 8x8 fixed size font. Allegro game programming library.
get_rotation_matrix(3alleg)
Constructs X, Y, Z rotation matrices. Allegro game programming library.
get_transformation_matrix(3alleg)
Constructs X, Y, Z rotation matrices with an angle and scaling. Allegro game programming library.
get_translation_matrix(3alleg)
Constructs a translation matrix. Allegro game programming library.
install_keyboard(3alleg)
Installs the Allegro keyboard interrupt handler.
install_timer(3alleg)
Installs the Allegro timer interrupt handler.
itofix(3alleg)
Converts an integer to fixed point. Allegro game programming library.
key(3alleg)
Array of flags indicating key state. Allegro game programming library.
normalize_vector(3alleg)
Converts the vector to a unit vector. Allegro game programming library.
palette_color(3alleg)
Maps palette indexes into the current pixel format colors. Allegro game programming library.
persp_project(3alleg)
Projects a 3d point into 2d screen space. Allegro game programming library.
poll_keyboard(3alleg)
Polls the keyboard. Allegro game programming library.
putpixel(3alleg)
Writes a pixel into a bitmap. Allegro game programming library.
rectfill(3alleg)
Draws a solid filled rectangle. Allegro game programming library.
screen(3alleg)
Global pointer to the screen hardware video memory. Allegro game programming library.
set_gfx_mode(3alleg)
Sets a graphic video mode. Allegro game programming library.
set_palette(3alleg)
Sets the entire palette of 256 colors. Allegro game programming library.
set_projection_viewport(3alleg)
Sets the viewport used to scale the output of persp_project(). Allegro game programming library.
textout_centre_ex(3alleg)
Writes a centered string on a bitmap. Allegro game programming library.
textprintf_centre_ex(3alleg)
Formatted centered output of a string. Allegro game programming library.
triangle(3alleg)
Draws a filled triangle. Allegro game programming library.
vsync(3alleg)
Waits for a vertical retrace to begin. Allegro game programming library.
Referred to by
fixed(3alleg)
Fixed point integer to replace floats. Allegro game programming library.
MATRIX(3alleg)
Fixed point matrix structure. Allegro game programming library.
fixmul(3alleg)
Multiplies two fixed point values together. Allegro game programming library.
fixtof(3alleg)
Converts a fixed point to floating point. Allegro game programming library.
fixtoi(3alleg)
Converts a fixed point to integer with rounding. Allegro game programming library.
itofix(3alleg)
Converts an integer to fixed point. Allegro game programming library.
putpixel(3alleg)
Writes a pixel into a bitmap. Allegro game programming library.
rectfill(3alleg)
Draws a solid filled rectangle. Allegro game programming library.
triangle(3alleg)
Draws a filled triangle. Allegro game programming library.
dot_product(3alleg)
Calculates the dot product. Allegro game programming library.
apply_matrix(3alleg)
Multiplies a point by a transformation matrix. Allegro game programming library.
cross_product(3alleg)
Calculates the cross product. Allegro game programming library.
dot_product_f(3alleg)
Calculates the dot product. Allegro game programming library.
persp_project(3alleg)
Projects a 3d point into 2d screen space. Allegro game programming library.
poll_keyboard(3alleg)
Polls the keyboard. Allegro game programming library.
apply_matrix_f(3alleg)
Multiplies a point by a transformation matrix. Allegro game programming library.
cross_product_f(3alleg)
Calculates the cross product. Allegro game programming library.
persp_project_f(3alleg)
Projects a 3d point into 2d screen space. Allegro game programming library.
normalize_vector(3alleg)
Converts the vector to a unit vector. Allegro game programming library.
normalize_vector_f(3alleg)
Converts the vector to a unit vector. Allegro game programming library.
get_rotation_matrix(3alleg)
Constructs X, Y, Z rotation matrices. Allegro game programming library.
get_rotation_matrix_f(3alleg)
Constructs X, Y, Z rotation matrices. Allegro game programming library.
get_translation_matrix(3alleg)
Constructs a translation matrix. Allegro game programming library.
set_projection_viewport(3alleg)
Sets the viewport used to scale the output of persp_project(). Allegro game programming library.
get_translation_matrix_f(3alleg)
Constructs a translation matrix. Allegro game programming library.
get_transformation_matrix(3alleg)
Constructs X, Y, Z rotation matrices with an angle and scaling. Allegro game programming library.