|
|
| |
exupdate(3) |
Allegro manual |
exupdate(3) |
exupdate - Supporting different screen update methods in a single program.
Allegro game programming library.
#include <allegro.h>
Example exupdate
This program demonstrates how to support double buffering, page flipping, and
triple buffering as options within a single program, and how to make things
run at a constant rate no matter what the speed of your computer. You have to
use this example from the command line to specify as first parameter a number
which represents the type of video update you want: 1 for double buffering
with memory bitmaps, 2 for page flipping, 3 for triple buffering and 4 for
double buffering with system bitmaps. After this, a dialog allows you to
select a screen resolution and finally you will see a kaleidoscopic animation,
along with a frames per second counter on the top left of the screen.
BITMAP(3), END_OF_FUNCTION(3), END_OF_MAIN(3),
LOCK_FUNCTION(3), LOCK_VARIABLE(3), PALETTE(3),
SCREEN_H(3), SCREEN_W(3), acquire_bitmap(3),
allegro_error(3), allegro_init(3), allegro_message(3),
bitmap_color_depth(3), blit(3), clear_bitmap(3),
create_bitmap(3), create_system_bitmap(3),
create_video_bitmap(3), desktop_palette(3),
destroy_bitmap(3), enable_triple_buffer(3), fixcos(3),
fixed(3), fixmul(3), fixsin(3), fixtoi(3),
font(3), ftofix(3), generate_332_palette(3),
gfx_capabilities(3), gfx_mode_select_ex(3),
install_int_ex(3), install_keyboard(3), install_mouse(3),
install_timer(3), keypressed(3), line(3),
makecol(3), poll_scroll(3), release_bitmap(3),
request_video_bitmap(3), screen(3), set_color_depth(3),
set_gfx_mode(3), set_palette(3), show_video_bitmap(3),
textout_ex(3), textprintf_ex(3), triangle(3),
vsync(3), xor_mode(3)
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc. |