UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
r_font.h
Go to the documentation of this file.
1 
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;
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);
TTF_Font * font
Definition: r_font.h:31
void R_FontListCache_f(void)
Console command binding to show the font cache.
Definition: r_font.cpp:228
struct font_s font_t
void R_FontCleanCache(void)
Clears font cache and frees memory associated with the cache.
Definition: r_font.cpp:121
const char * name
Definition: r_font.h:30
Definition: r_font.h:29
int style
Definition: r_font.h:34
int lineSkip
Definition: r_font.h:35
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
int height
Definition: r_font.h:36
byte * buffer
Definition: r_font.h:33
SDL_RWops * rw
Definition: r_font.h:32
uint8_t byte
Definition: ufotypes.h:34
font_t * R_GetFont(const char *name)
Searches the array of available fonts (see fonts.ufo)
Definition: r_font.cpp:210