1 /** 2 * Graphics utilities: palettes... 3 4 * Copyright (C) 2007 Sylvain Beucler 5 6 * This file is part of GNU FreeDink 7 8 * GNU FreeDink is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; either version 3 of the 11 * License, or (at your option) any later version. 12 13 * GNU FreeDink is distributed in the hope that it will be useful, but 14 * WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * General Public License for more details. 17 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see 20 * <http://www.gnu.org/licenses/>. 21 */ 22 23 #ifndef _GFX_UTILS_H 24 #define _GFX_UTILS_H 25 26 #include "SDL.h" 27 28 extern void gfx_palette_reset(); 29 extern int gfx_palette_set_from_surface (SDL_Surface *bmp); 30 extern int gfx_palette_set_from_bmp (char *file); 31 32 extern void gfx_palette_get_phys(SDL_Color *palette); 33 extern void gfx_palette_set_phys(SDL_Color *new_palette); 34 extern void gfx_palette_apply_phys(); 35 extern void gfx_palette_restore_phys(); 36 #endif 37