UFO: Alien Invasion
Toggle main menu visibility
Loading...
Searching...
No Matches
r_font.h
Go to the documentation of this file.
1
4
5
/*
6
Copyright (C) 1997-2001 Id Software, Inc.
7
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
as published by the Free Software Foundation; either version 2
11
of the License, or (at your option) any later version.
12
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
17
See the GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23
*/
24
25
#pragma once
26
27
#include <SDL_ttf.h>
28
29
typedef
struct
font_s {
30
const
char
*
name
;
31
TTF_Font*
font
;
32
SDL_RWops*
rw
;
33
byte
*
buffer
;
34
int
style
;
35
int
lineSkip
;
36
int
height
;
37
}
font_t
;
38
39
/* public */
40
void
R_FontListCache_f
(
void
);
41
font_t
*
R_GetFont
(
const
char
*
name
);
42
void
R_FontCleanCache
(
void
);
R_GetFont
font_t * R_GetFont(const char *name)
Searches the array of available fonts (see fonts.ufo).
Definition
r_font.cpp:208
R_FontListCache_f
void R_FontListCache_f(void)
Console command binding to show the font cache.
Definition
r_font.cpp:226
R_FontCleanCache
void R_FontCleanCache(void)
Clears font cache and frees memory associated with the cache.
Definition
r_font.cpp:121
name
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition
r_gl.h:110
font_t
Definition
r_font.h:29
font_t::name
const char * name
Definition
r_font.h:30
font_t::font
TTF_Font * font
Definition
r_font.h:31
font_t::rw
SDL_RWops * rw
Definition
r_font.h:32
font_t::style
int style
Definition
r_font.h:34
font_t::height
int height
Definition
r_font.h:36
font_t::lineSkip
int lineSkip
Definition
r_font.h:35
font_t::buffer
byte * buffer
Definition
r_font.h:33
src
client
renderer
r_font.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.17.0