TORCS
1.3.9
The Open Racing Car Simulator
guifont.h
Go to the documentation of this file.
1
/***************************************************************************
2
guifont.h -- Interface file for guifont
3
-------------------
4
created : Fri Aug 13 22:20:04 CEST 1999
5
copyright : (C) 1999 by Eric Espie
6
email : torcs@free.fr
7
version : $Id$
8
***************************************************************************/
9
10
/***************************************************************************
11
* *
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
16
* *
17
***************************************************************************/
18
19
#ifndef _GUIFONT_H_
20
#define _GUIFONT_H_
21
22
//glFont character structure (DO NOT MODIFY)
23
typedef
struct
24
{
25
float
dx,
dy
;
26
float
tx1,
ty1
;
27
float
tx2,
ty2
;
28
}
GLFONTCHAR
;
29
30
//glFont structure (DO NOT MODIFY)
31
typedef
struct
32
{
33
uint
Tex
;
34
int
TexWidth
, TexHeight;
35
int
IntStart
, IntEnd;
36
GLFONTCHAR
*
Char
;
37
}
GLFONT
;
38
39
class
GfuiFontClass
40
{
41
protected
:
42
GLFONT
*
font
;
43
float
size
;
44
45
public
:
46
GfuiFontClass
(
char
*
font
);
47
48
~GfuiFontClass
();
49
50
void
create
(
int
point_size);
51
52
void
output
(
int
x,
int
y
,
const
char
* text);
53
54
int
getWidth
(
const
char
* text);
55
int
getHeight
()
const
;
56
int
getDescender
()
const
;
57
};
58
59
extern
GfuiFontClass
*
gfuiFont
[];
60
61
#endif
/* _GUIFONT_H_ */
62
63
64
GLFONT::Char
GLFONTCHAR * Char
Definition:
guifont.h:36
GfuiFontClass::output
void output(int x, int y, const char *text)
Definition:
guifont.cpp:280
GfuiFontClass::~GfuiFontClass
~GfuiFontClass()
Definition:
guifont.cpp:201
GLFONT::TexWidth
int TexWidth
Definition:
guifont.h:34
GLFONTCHAR
Definition:
guifont.h:23
GfuiFontClass::create
void create(int point_size)
Definition:
guifont.cpp:211
GfuiFontClass
Definition:
guifont.h:39
GfuiFontClass::size
float size
Definition:
guifont.h:43
GLFONT::Tex
uint Tex
Definition:
guifont.h:33
gfuiFont
GfuiFontClass * gfuiFont[]
Definition:
guifont.cpp:43
y
static Vector y[4]
Definition:
Convex.cpp:56
GfuiFontClass::getHeight
int getHeight() const
Definition:
guifont.cpp:261
GLFONTCHAR::ty2
float ty2
Definition:
guifont.h:27
GLFONT
Definition:
guifont.h:31
GLFONTCHAR::dy
float dy
Definition:
guifont.h:25
GfuiFontClass::GfuiFontClass
GfuiFontClass(char *font)
Definition:
guifont.cpp:104
GLFONTCHAR::ty1
float ty1
Definition:
guifont.h:26
GLFONT::IntStart
int IntStart
Definition:
guifont.h:35
GfuiFontClass::getWidth
int getWidth(const char *text)
Definition:
guifont.cpp:222
GfuiFontClass::font
GLFONT * font
Definition:
guifont.h:42
GfuiFontClass::getDescender
int getDescender() const
Definition:
guifont.cpp:272
src
libs
tgfclient
guifont.h
Generated by
1.8.14