Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
vsync(3)			Allegro	manual			      vsync(3)

NAME
       vsync - Waits for a vertical retrace to begin. Allegro game programming
       library.

SYNOPSIS
       #include	<allegro.h>

       void vsync();

DESCRIPTION
       Waits  for  a  vertical	retrace	to begin. The retrace happens when the
       electron	beam in	your monitor has reached the bottom of the screen  and
       is moving back to the top ready for another scan. During	this short pe-
       riod  the  graphics  card isn't sending any data	to the monitor,	so you
       can do things to	it that	aren't possible	at other times,	such as	alter-
       ing the palette without causing flickering (snow). Allegro  will	 auto-
       matically  wait	for a retrace before altering the palette or doing any
       hardware	scrolling, though, so you don't	normally need to  bother  with
       this function.

SEE ALSO
       set_palette(3), scroll_screen(3)

Allegro				 version 4.4.3			      vsync(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=vsync&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help