UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
images.h
Go to the documentation of this file.
1 
6 /*
7 Copyright (C) 2002-2009 Quake2World.
8 Copyright (C) 2002-2020 UFO: Alien Invasion.
9 
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License
12 as published by the Free Software Foundation; either version 2
13 of the License, or (at your option) any later version.
14 
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 See the GNU General Public License for more details.
20 
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 */
25 
26 #pragma once
27 
28 #include "ufotypes.h"
29 #include "../common/filesys.h"
30 #include <SDL_video.h>
31 
32 char const* const* Img_GetImageTypes(void);
33 SDL_Surface* Img_LoadImage(char const* name);
34 void R_WriteCompressedTGA(qFILE* f, const byte* buffer, int width, int height);
35 void R_WritePNG(qFILE* f, byte* buffer, int width, int height);
36 void R_WriteJPG(qFILE* f, byte* buffer, int width, int height, int quality);
char const *const * Img_GetImageTypes(void)
Definition: images.cpp:46
void R_WriteJPG(qFILE *f, byte *buffer, int width, int height, int quality)
Definition: images.cpp:224
SDL_Surface * Img_LoadImage(char const *name)
Loads the specified image from the game filesystem and populates the provided SDL_Surface.
Definition: images.cpp:435
QGL_EXTERN GLfloat f
Definition: r_gl.h:114
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
void R_WriteCompressedTGA(qFILE *f, const byte *buffer, int width, int height)
Definition: images.cpp:101
Cross-platform type definitions.
uint8_t byte
Definition: ufotypes.h:34
void R_WritePNG(qFILE *f, byte *buffer, int width, int height)
Definition: images.cpp:56