-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglfont.h
More file actions
60 lines (46 loc) · 1.3 KB
/
glfont.h
File metadata and controls
60 lines (46 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//*********************************************************
//GLFONT.H -- Header for GLFONT.CPP
//Copyright (c) 1998 Brad Fish
//See glFont.txt for terms of use
//November 10, 1998
//*********************************************************
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
//*********************************************************
//Structures
//*********************************************************
//glFont character structure
typedef struct
{
float dx, dy;
float tx1, ty1;
float tx2, ty2;
} GLFONTCHAR;
//glFont structure
typedef struct
{
int Tex;
int TexWidth, TexHeight;
int IntStart, IntEnd;
GLFONTCHAR *Char;
} GLFONT;
//*********************************************************
//Function Declarations
//*********************************************************
//Creates a glFont
int glFontCreate (GLFONT *Font, char *FileName, int Tex);
//Deletes a glFont
void glFontDestroy (GLFONT *Font);
//Needs to be called before text output
void glFontBegin (GLFONT *Font);
//Needs to be called after text output
void glFontEnd (void);
//Draws text with a glFont
void glFontTextOut (char *String, float x, float y,
float z);
//*********************************************************
//End of file