Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

request_video_bitmap(3alleg4) [suse man page]

request_video_bitmap(3alleg4)                                     Allegro manual                                     request_video_bitmap(3alleg4)

NAME
request_video_bitmap - Triple buffering page flip request. Allegro game programming library. SYNOPSIS
#include <allegro.h> int request_video_bitmap(BITMAP *bitmap); DESCRIPTION
This function is used for triple buffering. It requests a page flip to display the specified video bitmap object, but returns immediately rather than waiting for a retrace. The flip will then take place during the next vertical retrace, but you can carry on running other code in the meantime and use the poll_scroll() routine to detect when the flip has actually taken place. Triple buffering is only possible on certain hardware: see the comments about request_scroll(). Example: int current_page; BITMAP *video_page[3]; ... /* Create pages for page flipping */ video_page[0] = create_video_bitmap(SCREEN_W, SCREEN_H); video_page[1] = create_video_bitmap(SCREEN_W, SCREEN_H); video_page[2] = create_video_bitmap(SCREEN_W, SCREEN_H); current_page = 0; ... /* draw the screen and flip pages */ draw_screen(video_page[current_page]); do { } while (poll_scroll()); request_video_bitmap(video_page[current_page]); current_page = (current_page+1)%3; ... RETURN VALUE
Returns zero on success and non-zero on failure. SEE ALSO
poll_scroll(3alleg4), request_scroll(3alleg4), gfx_capabilities(3alleg4), create_video_bitmap(3alleg4), scroll_screen(3alleg4), ex3buf(3alleg4), exupdate(3alleg4) Allegro version 4.4.2 request_video_bitmap(3alleg4)

Check Out this Related Man Page

exupdate(3alleg4)						  Allegro manual						 exupdate(3alleg4)

NAME
exupdate - Supporting different screen update methods in a single program. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exupdate DESCRIPTION
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. SEE ALSO
BITMAP(3alleg4), END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), LOCK_VARIABLE(3alleg4), PALETTE(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), acquire_bitmap(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), bitmap_color_depth(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), create_bitmap(3alleg4), create_system_bitmap(3alleg4), create_video_bit- map(3alleg4), desktop_palette(3alleg4), destroy_bitmap(3alleg4), enable_triple_buffer(3alleg4), fixcos(3alleg4), fixed(3alleg4), fix- mul(3alleg4), fixsin(3alleg4), fixtoi(3alleg4), font(3alleg4), ftofix(3alleg4), generate_332_palette(3alleg4), gfx_capabilities(3alleg4), gfx_mode_select_ex(3alleg4), install_int_ex(3alleg4), install_keyboard(3alleg4), install_mouse(3alleg4), install_timer(3alleg4), key- pressed(3alleg4), line(3alleg4), makecol(3alleg4), poll_scroll(3alleg4), release_bitmap(3alleg4), request_video_bitmap(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), show_video_bitmap(3alleg4), textout_ex(3alleg4), textprintf_ex(3alleg4), triangle(3alleg4), vsync(3alleg4), xor_mode(3alleg4) Allegro version 4.4.2 exupdate(3alleg4)
Man Page