00001 00006 /* 00007 Copyright (C) 2002-2009 Quake2World. 00008 Copyright (C) 2002-2010 UFO: Alien Invasion. 00009 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License 00012 as published by the Free Software Foundation; either version 2 00013 of the License, or (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00018 00019 See the GNU General Public License for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with this program; if not, write to the Free Software 00023 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00024 00025 */ 00026 00027 #ifndef IMAGES_H_ 00028 #define IMAGES_H_ 00029 00030 #include "ufotypes.h" 00031 #include "byte.h" 00032 #include "../common/filesys.h" 00033 #include <SDL_image.h> 00034 00035 const char** Img_GetImageTypes(void); 00036 qboolean Img_LoadImage(const char *name, SDL_Surface **surf); 00037 void R_WriteCompressedTGA(qFILE *f, const byte *buffer, int width, int height); 00038 void R_WritePNG(qFILE *f, byte *buffer, int width, int height); 00039 void R_WriteJPG(qFILE *f, byte *buffer, int width, int height, int quality); 00040 00041 #endif /* IMAGES_H_ */