Query: fli_timer
OS: debian
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
fli_timer(3alleg4) Allegro manual fli_timer(3alleg4)NAMEfli_timer - Global variable for timing FLI playback. Allegro game programming library.SYNOPSIS#include <allegro.h> extern volatile int fli_timer;DESCRIPTIONGlobal variable for timing FLI playback. When you open an FLI file, a timer interrupt is installed which increments this variable every time a new frame should be displayed. Calling next_fli_frame() decrements it, so you can test it and know that it is time to display a new frame if it is greater than zero. Example: while (next_fli_frame(0) == FLI_OK) { /* Do stuff, like play audio stream or check keys to skip animation. */ /* Rest some time until next frame... */ while (fli_timer <= 0) rest(0); }SEE ALSOinstall_timer(3alleg4), next_fli_frame(3alleg4) Allegro version 4.4.2 fli_timer(3alleg4)
| Related Man Pages |
|---|
| extimer(3alleg4) - debian |
| exmidi(3alleg4) - centos |
| extimer(3alleg4) - suse |
| extimer(3alleg4) - mojave |
| extimer(3alleg4) - v7 |
| Similar Topics in the Unix Linux Community |
|---|
| Adding the individual columns of a matrix. |
| Introduction |
| A (ksh) Library For and From UNIX.com |
| How to copy a column of multiple files and paste into new excel file (next to column)? |