fli_pal_dirty_from, fli_pal_dirty_to - Indicate which parts of the palette have changed. Allegro game
Contents
Description
These variables are set by next_fli_frame() to indicate which part of the fli_palette has changed since
the last call to reset_fli_variables(). If fli_pal_dirty_from is greater than fli_pal_dirty_to, the
palette has not changed, otherwise colors fli_pal_dirty_from to fli_pal_dirty_to (inclusive) have
altered. You can use these when updating the hardware palette, to avoid unnecessary calls to
set_palette(). Example:
if (fli_pal_dirty_from <= fli_pal_dirty_to)
set_palette_range(fli_palette, fli_pal_dirty_from,
fli_pal_dirty_to, 1);
Name
fli_pal_dirty_from, fli_pal_dirty_to - Indicate which parts of the palette have changed. Allegro game
programming library.
See Also
fli_palette(3alleg4), reset_fli_variables(3alleg4) Allegro version 4.4.3 fli_pal_dirty_from(3alleg4)
Synopsis
#include<allegro.h>externintfli_pal_dirty_from;externintfli_pal_dirty_to;
