UFO: Alien Invasion
Loading...
Searching...
No Matches
images.h
Go to the documentation of this file.
1
5
6/*
7Copyright (C) 2002-2009 Quake2World.
8Copyright (C) 2002-2025 UFO: Alien Invasion.
9
10This program is free software; you can redistribute it and/or
11modify it under the terms of the GNU General Public License
12as published by the Free Software Foundation; either version 2
13of the License, or (at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
19See the GNU General Public License for more details.
20
21You should have received a copy of the GNU General Public License
22along with this program; if not, write to the Free Software
23Foundation, 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
32char const* const* Img_GetImageTypes(void);
33SDL_Surface* Img_LoadImage(char const* name);
34void R_WriteCompressedTGA(qFILE* f, const byte* buffer, int width, int height);
35void R_WritePNG(qFILE* f, byte* buffer, int width, int height);
36void R_WriteJPG(qFILE* f, byte* buffer, int width, int height, int quality);
Filesystem header file.
char const *const * Img_GetImageTypes(void)
Definition images.cpp:56
void R_WriteJPG(qFILE *f, byte *buffer, int width, int height, int quality)
Definition images.cpp:234
void R_WriteCompressedTGA(qFILE *f, const byte *buffer, int width, int height)
Definition images.cpp:111
SDL_Surface * Img_LoadImage(char const *name)
Loads the specified image from the game filesystem into an SDL_Surface.
Definition images.cpp:488
void R_WritePNG(qFILE *f, byte *buffer, int width, int height)
Definition images.cpp:66
QGL_EXTERN GLfloat f
Definition r_gl.h:114
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition r_gl.h:110
Cross-platform type definitions.