1fli_pal_dirty_from(3)           Allegro manual           fli_pal_dirty_from(3)
2
3
4

NAME

6       fli_pal_dirty_from, fli_pal_dirty_to - Indicate which parts of the pal‐
7       ette have changed. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       extern int fli_pal_dirty_from;
14
15       extern int fli_pal_dirty_to;
16

DESCRIPTION

18       These variables are set by next_fli_frame() to indicate which  part  of
19       the  fli_palette  has  changed  since  the last call to reset_fli_vari‐
20       ables(). If fli_pal_dirty_from is greater  than  fli_pal_dirty_to,  the
21       palette   has  not  changed,  otherwise  colors  fli_pal_dirty_from  to
22       fli_pal_dirty_to (inclusive) have  altered.  You  can  use  these  when
23       updating  the  hardware palette, to avoid unnecessary calls to set_pal‐
24       ette(). Example:
25
26          if (fli_pal_dirty_from <= fli_pal_dirty_to)
27             set_palette_range(fli_palette, fli_pal_dirty_from,
28                               fli_pal_dirty_to, 1);
29
30

SEE ALSO

32       fli_palette(3), reset_fli_variables(3)
33
34
35
36Allegro                          version 4.4.3           fli_pal_dirty_from(3)
Impressum