2
Copyright (c) 1999 Nate Miller
4
Notice: Usage of any code in this file is subject to the rules
5
described in the LICENSE.TXT file included in this directory.
6
Reading, compiling, or otherwise using this code constitutes
7
automatic acceptance of the rules in said text file.
9
File -- glTexFontColor.c
11
Author -- Nate 'm|d' Miller
12
Contact -- vandals1@home.com
13
Web -- http://members.home.com/vandals1
15
#include "glTexFont.h"
17
/* color functions must be defined in texFont.h */
19
extern texFont_t font;
23
fontColor, fontColorA, fontColorp, fontColorAp
25
Sets the currect color for the text.
28
void fontColor (float r, float g, float b)
33
font.fgColor[3] = 1.0;
35
void fontColorA (float r, float g, float b, float a)
42
void fontColorp (float *clr)
44
font.fgColor[0] = clr[0];
45
font.fgColor[1] = clr[1];
46
font.fgColor[2] = clr[2];
47
font.fgColor[3] = 1.0;
49
void fontColorAp (float *clr)
51
font.fgColor[0] = clr[0];
52
font.fgColor[1] = clr[1];
53
font.fgColor[2] = clr[2];
54
font.fgColor[3] = clr[3];
58
fontShadow, fontShadowA, fontShadowp, fontShadowAp
60
Sets the currect shadow color for the text.
63
void fontShadowColor (float r, float g, float b)
68
font.bgColor[3] = 1.0;
70
void fontShadowColorA (float r, float g, float b, float a)
77
void fontShadowColorp (float *clr)
79
font.bgColor[0] = clr[0];
80
font.bgColor[1] = clr[1];
81
font.bgColor[2] = clr[2];
82
font.bgColor[3] = 1.0;
84
void fontShadowColorAp (float *clr)
86
font.bgColor[0] = clr[0];
87
font.bgColor[1] = clr[1];
88
font.bgColor[2] = clr[2];
89
font.bgColor[3] = clr[3];
93
fontGradientColor, fontGradientColorA, fontGradientColorp, fontGradientColorAp
95
Sets the currect gradient color for the text.
98
void fontGradientColor (float r, float g, float b)
103
font.gdColor[3] = 1.0;
105
void fontGradientColorA (float r, float g, float b, float a)
112
void fontGradientColorp (float *clr)
114
font.gdColor[0] = clr[0];
115
font.gdColor[1] = clr[1];
116
font.gdColor[2] = clr[2];
117
font.gdColor[3] = 1.0;
119
void fontGradientColorAp (float *clr)
121
font.gdColor[0] = clr[0];
122
font.gdColor[1] = clr[1];
123
font.gdColor[2] = clr[2];
124
font.gdColor[3] = clr[3];