RGBA16rainbow.h
13 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
/*
* Do edit this file. It was generated
* by "acorn" from the file "RGBA16dana.h".
*
* Size: 1 x 1
* Number of channels: 3
* Number of bits per texel: 16 (G_IM_SIZ_16b)
* Format of texel: G_IM_FMT_RGBA
*
* Example usage:
*
* gsSPTexture (128, 128, G_TX_RENDERTILE, 1),
* gsDPPipeSync (),
* gsDPSetCombineMode (G_CC_MODULATERGBA, G_CC_MODULATERGBA),
* gsDPSetTexturePersp (G_TP_PERSP),
* gsDPSetTextureDetail (G_TD_CLAMP),
* gsDPSetTextureLOD (G_TL_TILE),
* gsDPSetTextureLUT (G_TT_NONE),
* gsDPLoadTextureBlock (RGBA16dana, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32,
* G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR,
* G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD),
*/
#if 0 /* Image preview */
+-+
|*| one texel
+-+
#endif
unsigned short rainbow16[] = {
0x8981, /* brown */
0xf801, /* red */
0xfc81, /* orange */
0xffc1, /* yellow */
0x07c1, /* green */
0x003f, /* blue */
0xf83f, /* magenta */
0x8421, /* grey */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
0x0400, /* green */
};
/* 0xdcdd = skin color */
/* 0xf801 = red */
/* 0x07c1 = green */
/* 0x003f = blue */
/* 4 bit color lookup table */
static char rain_tlutRGBA[] = {
0x89, 0x81, 0x89, 0x81, 0x89, 0x81, 0x89, 0x81, /* indx 0 */
0xf8, 0x01, 0xf8, 0x01, 0xf8, 0x01, 0xf8, 0x01, /* indx 1 */
0xfc, 0x81, 0xfc, 0x81, 0xfc, 0x81, 0xfc, 0x81, /* indx 2 */
0xff, 0xc1, 0xff, 0xc1, 0xff, 0xc1, 0xff, 0xc1, /* indx 3 */
0x07, 0xc1, 0x07, 0xc1, 0x07, 0xc1, 0x07, 0xc1, /* indx 4 */
0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f, /* indx 5 */
0xf8, 0x3f, 0xf8, 0x3f, 0xf8, 0x3f, 0xf8, 0x3f, /* indx 6 */
0x84, 0x21, 0x84, 0x21, 0x84, 0x21, 0x84, 0x21, /* indx 7 */
0x8c, 0x63, 0x8c, 0x63, 0x8c, 0x63, 0x83, 0x63, /* indx 8 */
0x9c, 0xe7, 0x9c, 0xe7, 0x9c, 0xe7, 0x9c, 0xe7, /* indx 9 */
0xad, 0x6b, 0xad, 0x6b, 0xad, 0x6b, 0xad, 0x6b, /* indx a */
0xbd, 0xef, 0xbd, 0xef, 0xbd, 0xef, 0xbd, 0xef, /* indx b */
0xce, 0x73, 0xce, 0x73, 0xce, 0x73, 0xce, 0x73, /* indx c */
0xde, 0xf7, 0xde, 0xf7, 0xde, 0xf7, 0xde, 0xf7, /* indx d */
0xef, 0x7b, 0xef, 0x7b, 0xef, 0x7b, 0xef, 0x7b, /* indx e */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* indx f */
};
unsigned char rainbow4[] = {
0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
unsigned char rainbow8[] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
unsigned int rainbow32[] = {
0x833100ff, /* brown */
0xff0000ff, /* red */
0xf39200ff, /* orange */
0xffff00ff, /* yellow */
0x00ff00ff, /* green */
0x0000ffff, /* blue */
0xff00ffff, /* magenta */
0x828282ff, /* grey */
0x00000000, /* black */
0x00000000, /* black */
0x00000000, /* black */
0x00000000, /* black */
0x00000000, /* black */
0x00000000, /* black */
0x00000000, /* black */
0x00000000, /* black */
};
unsigned short roundrain16[] = {
0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f,
0x003f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0x003f,
0xf83f, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xf83f,
0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f,
0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f, 0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x0001, 0x8421, 0xffff,
0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x003f, 0x07c1, 0x07c1, 0x07c1, 0x07c1, 0x003f, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0xffff,
0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0x07c1, 0xffc1, 0xffc1, 0xffc1, 0xffc1, 0x07c1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421,
0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xfc81, 0xffc1, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001,
0x8421,
0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xf801, 0xf801, 0xfc81, 0xffc1, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001,
0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xfc81, 0xf801, 0x003f, 0x003f, 0xf801, 0xfc81, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001,
0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xfc81, 0xf801, 0x003f, 0x003f, 0xf801, 0xfc81, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001,
0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xf801, 0xf801, 0xfc81, 0xffc1, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001,
0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xfc81, 0xffc1, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421,
0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0x07c1, 0xffc1, 0xffc1, 0xffc1, 0xffc1, 0x07c1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421,
0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x003f, 0x07c1, 0x07c1, 0x07c1, 0x07c1, 0x003f, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0xffff,
0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f, 0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x0001, 0x8421, 0xffff,
0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f,
0xf83f, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xf83f,
0x003f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0x003f,
0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f,
};
unsigned short round13rain16[] = {
0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x0001, 0x0001, 0x8421,
0x003f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0x8421, 0x8421, 0x0001,
0xf83f, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xffff, 0xffff, 0x8421,
0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0xf83f, 0xf83f, 0xffff,
0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f, 0x003f, 0x003f, 0xf83f,
0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x003f, 0x07c1, 0x07c1, 0x07c1, 0x07c1, 0x003f,
0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0x07c1, 0xffc1, 0xffc1, 0xffc1, 0xffc1, 0x07c1,
0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xfc81, 0xffc1, 0xffc1,
0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xf801, 0xf801, 0xfc81, 0xffc1,
0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xfc81, 0xf801, 0x003f, 0x003f, 0xf801, 0xfc81,
0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xfc81, 0xf801, 0x003f, 0x003f, 0xf801, 0xfc81,
0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xf801, 0xf801, 0xfc81, 0xffc1,
0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xfc81, 0xffc1, 0xffc1,
0,0,0, /* pad for alignment */
};
unsigned short black16[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
};
unsigned char round13rain8[] = {
0x06, 0x06, 0x07, 0x07, 0x09, 0x09, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08,
0x06, 0x07, 0x09, 0x09, 0x08, 0x08, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x00,
0x07, 0x09, 0x08, 0x08, 0x00, 0x00, 0x08, 0x08, 0x09, 0x09, 0x09, 0x09, 0x08,
0x07, 0x09, 0x08, 0x00, 0x08, 0x08, 0x09, 0x09, 0x07, 0x07, 0x07, 0x07, 0x09,
0x09, 0x08, 0x00, 0x08, 0x09, 0x09, 0x07, 0x07, 0x06, 0x06, 0x06, 0x06, 0x07,
0x09, 0x08, 0x00, 0x08, 0x09, 0x07, 0x06, 0x06, 0x05, 0x05, 0x05, 0x05, 0x06,
0x08, 0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x05,
0x08, 0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x04, 0x03, 0x03, 0x04, 0x04,
0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x04, 0x03, 0x02, 0x02, 0x03, 0x04,
0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x06, 0x06, 0x02, 0x03,
0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x06, 0x06, 0x02, 0x03,
0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x04, 0x03, 0x02, 0x02, 0x03, 0x04,
0x08, 0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x04, 0x03, 0x03, 0x04, 0x04,
0,0,0,0,0,0,0,
};
unsigned char round13rain4[] = {
0x66, 0x77, 0x99, 0x88, 0x00, 0x00, 0x80,
0x67, 0x99, 0x88, 0x00, 0x88, 0x88, 0x00,
0x79, 0x88, 0x00, 0x88, 0x99, 0x99, 0x80,
0x79, 0x80, 0x88, 0x99, 0x77, 0x77, 0x90,
0x98, 0x08, 0x99, 0x77, 0x66, 0x66, 0x70,
0x98, 0x08, 0x97, 0x66, 0x55, 0x55, 0x60,
0x80, 0x89, 0x76, 0x55, 0x44, 0x44, 0x50,
0x80, 0x89, 0x76, 0x54, 0x43, 0x34, 0x40,
0x08, 0x97, 0x65, 0x44, 0x32, 0x23, 0x40,
0x08, 0x97, 0x65, 0x43, 0x26, 0x62, 0x30,
0x08, 0x97, 0x65, 0x43, 0x26, 0x62, 0x30,
0x08, 0x97, 0x65, 0x44, 0x32, 0x23, 0x40,
0x80, 0x89, 0x76, 0x54, 0x43, 0x34, 0x40,
0,0,0,0,0,
};