diff options
author | P. J. McDermott <pjm@nac.net> | 2013-03-04 04:30:31 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-03-04 04:30:31 (EST) |
commit | 44f637979c79a69fe71e708b5f654d276c066893 (patch) | |
tree | d5cd7625d8be28e62bb14e1b0166d6bd0c6d4012 /src/palettes.h | |
parent | f9e339b9345b90621e6c2a585033ce20b3837570 (diff) | |
download | overworld-rpg-44f637979c79a69fe71e708b5f654d276c066893.zip overworld-rpg-44f637979c79a69fe71e708b5f654d276c066893.tar.gz overworld-rpg-44f637979c79a69fe71e708b5f654d276c066893.tar.bz2 |
Make palette cycling a real part of the engine.
Diffstat (limited to 'src/palettes.h')
-rw-r--r-- | src/palettes.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/palettes.h b/src/palettes.h new file mode 100644 index 0000000..c5f007a --- /dev/null +++ b/src/palettes.h @@ -0,0 +1,13 @@ +#ifndef PALETTES_H +#define PALETTES_H + +#include <SDL.h> + +SDL_Palette *cycle_palettes_cosine(Uint32 t, Uint32 t_max, + SDL_Palette *pal_start, SDL_Palette *pal_end, + SDL_Palette *pal_step); +SDL_Palette *cycle_palettes_linear(Uint32 t, Uint32 t_max, + SDL_Palette *pal_start, SDL_Palette *pal_end, + SDL_Palette *pal_step); + +#endif |