ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
Characters.cpp
Go to the documentation of this file.
1#include "Characters.h"
2
3const uint8_t* Characters::GetCharacter(char character){
4 switch (character){
5 case ':': return COLON; break;
6 case '/': return FWDSLSH; break;
7 case '0': case '[': return N0; break;
8 case '1': case '\\': return N1; break;
9 case '2': case ']': return N2; break;
10 case '3': case '^': return N3; break;
11 case '4': case '_': return N4; break;
12 case '5': case '`': return N5; break;
13 case '6': case '{': return N6; break;
14 case '7': case '|': return N7; break;
15 case '8': case '}': return N8; break;
16 case '9': case '~': return N9; break;
17 case 'a': case 'A': return LA; break;
18 case 'b': case 'B': return LB; break;
19 case 'c': case 'C': return LC; break;
20 case 'd': case 'D': return LD; break;
21 case 'e': case 'E': return LE; break;
22 case 'f': case 'F': return LF; break;
23 case 'g': case 'G': return LG; break;
24 case 'h': case 'H': return LH; break;
25 case 'i': case 'I': return LI; break;
26 case 'j': case 'J': return LJ; break;
27 case 'k': case 'K': return LK; break;
28 case 'l': case 'L': return LL; break;
29 case 'm': case 'M': return LM; break;
30 case 'n': case 'N': return LN; break;
31 case 'o': case 'O': return LO; break;
32 case 'p': case 'P': return LP; break;
33 case 'q': case 'Q': return LQ; break;
34 case 'r': case 'R': return LR; break;
35 case 's': case 'S': return LS; break;
36 case 't': case 'T': return LT; break;
37 case 'u': case 'U': return LU; break;
38 case 'v': case 'V': return LV; break;
39 case 'w': case 'W': return LW; break;
40 case 'x': case 'X': return LX; break;
41 case 'y': case 'Y': return LY; break;
42 case 'z': case 'Z': return LZ; break;
43 default: return SPACE; break;
44 }
45}
46
47const uint8_t Characters::COLON[8] = {
48 0b00000000,
49 0b00000000,
50 0b00111000,
51 0b00111000,
52 0b00000000,
53 0b00000000,
54 0b00111000,
55 0b00111000
56};
57
58const uint8_t Characters::FWDSLSH[8] = {
59 0b00000001,
60 0b00000011,
61 0b00000110,
62 0b00001100,
63 0b00011000,
64 0b00110000,
65 0b01100000,
66 0b11000000
67};
68
69const uint8_t Characters::SPACE[8] = {
70 0b00000000,
71 0b00000000,
72 0b00000000,
73 0b00000000,
74 0b00000000,
75 0b00000000,
76 0b00000000,
77 0b00000000
78};
79
80const uint8_t Characters::N0[8] = {
81 0b01111110,
82 0b11111111,
83 0b11000011,
84 0b11000011,
85 0b11000011,
86 0b11000011,
87 0b11111111,
88 0b01111110
89};
90
91const uint8_t Characters::N1[8] = {
92 0b00011000,
93 0b01111000,
94 0b11011000,
95 0b00011000,
96 0b00011000,
97 0b00011000,
98 0b00011000,
99 0b11111111
100};
101
102const uint8_t Characters::N2[8] = {
103 0b00111100,
104 0b01111110,
105 0b11000011,
106 0b00000011,
107 0b00000110,
108 0b00011000,
109 0b01100000,
110 0b11111111
111};
112
113const uint8_t Characters::N3[8] = {
114 0b01111110,
115 0b11000011,
116 0b00001100,
117 0b00111000,
118 0b00001100,
119 0b11000011,
120 0b01100110,
121 0b00111100
122};
123
124const uint8_t Characters::N4[8] = {
125 0b00000110,
126 0b00001110,
127 0b00011110,
128 0b00110110,
129 0b01100110,
130 0b11111111,
131 0b00001100,
132 0b00001100
133};
134
135const uint8_t Characters::N5[8] = {
136 0b11111111,
137 0b11000000,
138 0b11000000,
139 0b11111100,
140 0b00000110,
141 0b11000011,
142 0b01100110,
143 0b00111100
144};
145
146const uint8_t Characters::N6[8] = {
147 0b00111111,
148 0b01100000,
149 0b11000000,
150 0b11000000,
151 0b11111110,
152 0b11000011,
153 0b11000011,
154 0b01111110
155};
156
157const uint8_t Characters::N7[8] = {
158 0b11111111,
159 0b00000011,
160 0b00000110,
161 0b00001100,
162 0b00011000,
163 0b00110000,
164 0b01100000,
165 0b11000000
166};
167
168const uint8_t Characters::N8[8] = {
169 0b01111110,
170 0b11000011,
171 0b11000011,
172 0b01111110,
173 0b01111110,
174 0b11000011,
175 0b11000011,
176 0b01111110
177};
178
179const uint8_t Characters::N9[8] = {
180 0b01111110,
181 0b11000011,
182 0b11000011,
183 0b01111111,
184 0b00000110,
185 0b00001100,
186 0b00011000,
187 0b00110000
188};
189
190
191const uint8_t Characters::LA[8] = {
192 0b00111100,
193 0b01100110,
194 0b11000011,
195 0b11000011,
196 0b11111111,
197 0b11000011,
198 0b11000011,
199 0b11000011
200};
201
202const uint8_t Characters::LB[8] = {
203 0b11111110,
204 0b11000011,
205 0b11000011,
206 0b11111100,
207 0b11000011,
208 0b11000011,
209 0b11000011,
210 0b11111110
211};
212
213const uint8_t Characters::LC[8] = {
214 0b01111110,
215 0b11000011,
216 0b11000000,
217 0b11000000,
218 0b11000000,
219 0b11000000,
220 0b11000011,
221 0b01111110
222};
223
224const uint8_t Characters::LD[8] = {
225 0b11111100,
226 0b11000110,
227 0b11000011,
228 0b11000011,
229 0b11000011,
230 0b11000011,
231 0b11000110,
232 0b11111100
233};
234
235const uint8_t Characters::LE[8] = {
236 0b11111111,
237 0b11000000,
238 0b11000000,
239 0b11111111,
240 0b11000000,
241 0b11000000,
242 0b11000000,
243 0b11111111
244};
245
246const uint8_t Characters::LF[8] = {
247 0b11111111,
248 0b11000000,
249 0b11000000,
250 0b11111111,
251 0b11000000,
252 0b11000000,
253 0b11000000,
254 0b11000000
255};
256
257const uint8_t Characters::LG[8] = {
258 0b01111110,
259 0b11000011,
260 0b11000000,
261 0b11000000,
262 0b11000110,
263 0b11000011,
264 0b11000011,
265 0b01111110
266};
267
268const uint8_t Characters::LH[8] = {
269 0b11000011,
270 0b11000011,
271 0b11000011,
272 0b11111111,
273 0b11000011,
274 0b11000011,
275 0b11000011,
276 0b11000011
277};
278
279const uint8_t Characters::LI[8] = {
280 0b11111111,
281 0b00011000,
282 0b00011000,
283 0b00011000,
284 0b00011000,
285 0b00011000,
286 0b00011000,
287 0b11111111
288};
289
290const uint8_t Characters::LJ[8] = {
291 0b11111111,
292 0b00011000,
293 0b00011000,
294 0b00011000,
295 0b00011000,
296 0b00011000,
297 0b11011000,
298 0b01110000
299};
300
301const uint8_t Characters::LK[8] = {
302 0b11000110,
303 0b11001100,
304 0b11011000,
305 0b11110000,
306 0b11011000,
307 0b11001100,
308 0b11000110,
309 0b11000011
310};
311
312const uint8_t Characters::LL[8] = {
313 0b11000000,
314 0b11000000,
315 0b11000000,
316 0b11000000,
317 0b11000000,
318 0b11000000,
319 0b11000000,
320 0b11111111
321};
322
323const uint8_t Characters::LM[8] = {
324 0b11100111,
325 0b11111111,
326 0b11011011,
327 0b11011011,
328 0b11000011,
329 0b11000011,
330 0b11000011,
331 0b11000011
332};
333
334const uint8_t Characters::LN[8] = {
335 0b11000011,
336 0b11000011,
337 0b11100011,
338 0b11110011,
339 0b11011011,
340 0b11001111,
341 0b11000111,
342 0b11000011
343};
344
345const uint8_t Characters::LO[8] = {
346 0b01111110,
347 0b11111111,
348 0b11000011,
349 0b11000011,
350 0b11000011,
351 0b11000011,
352 0b11111111,
353 0b01111110
354};
355
356const uint8_t Characters::LP[8] = {
357 0b11111110,
358 0b11000011,
359 0b11000011,
360 0b11111110,
361 0b11000000,
362 0b11000000,
363 0b11000000,
364 0b11000000
365};
366
367const uint8_t Characters::LQ[8] = {
368 0b01111110,
369 0b11111111,
370 0b11000011,
371 0b11000011,
372 0b11000011,
373 0b11001110,
374 0b11111010,
375 0b01111001
376};
377
378const uint8_t Characters::LR[8] = {
379 0b11111110,
380 0b11000011,
381 0b11000011,
382 0b11111110,
383 0b11011000,
384 0b11001100,
385 0b11000110,
386 0b11000011
387};
388
389const uint8_t Characters::LS[8] = {
390 0b01111111,
391 0b11000000,
392 0b11000000,
393 0b01111110,
394 0b00000011,
395 0b00000011,
396 0b00000011,
397 0b11111110
398};
399
400const uint8_t Characters::LT[8] = {
401 0b11111111,
402 0b00011000,
403 0b00011000,
404 0b00011000,
405 0b00011000,
406 0b00011000,
407 0b00011000,
408 0b00011000
409};
410
411const uint8_t Characters::LU[8] = {
412 0b11000011,
413 0b11000011,
414 0b11000011,
415 0b11000011,
416 0b11000011,
417 0b11000011,
418 0b11111111,
419 0b01111110
420};
421
422const uint8_t Characters::LV[8] = {
423 0b11000011,
424 0b11000011,
425 0b11000011,
426 0b01100110,
427 0b01100110,
428 0b01100110,
429 0b00111100,
430 0b00111100
431};
432
433const uint8_t Characters::LW[8] = {
434 0b11000011,
435 0b11000011,
436 0b11000011,
437 0b11000011,
438 0b11011011,
439 0b11111111,
440 0b11100111,
441 0b11000011,
442};
443
444const uint8_t Characters::LX[8] = {
445 0b11000011,
446 0b01100110,
447 0b00111100,
448 0b00011000,
449 0b00011000,
450 0b00111100,
451 0b01100110,
452 0b11000011
453};
454
455const uint8_t Characters::LY[8] = {
456 0b11000011,
457 0b01100110,
458 0b00111100,
459 0b00011000,
460 0b00011000,
461 0b00011000,
462 0b00011000,
463 0b00011000
464};
465
466const uint8_t Characters::LZ[8] = {
467 0b11111111,
468 0b00000110,
469 0b00001100,
470 0b00011000,
471 0b00110000,
472 0b01100000,
473 0b11000000,
474 0b11111111,
475};
static const uint8_t LY[8]
Definition Characters.h:455
static const uint8_t LE[8]
Definition Characters.h:235
static const uint8_t N2[8]
Definition Characters.h:102
static const uint8_t LC[8]
Definition Characters.h:213
static const uint8_t * GetCharacter(char character)
Definition Characters.cpp:3
static const uint8_t N1[8]
Definition Characters.h:91
static const uint8_t LX[8]
Definition Characters.h:444
static const uint8_t LU[8]
Definition Characters.h:411
static const uint8_t N0[8]
Definition Characters.h:80
static const uint8_t LF[8]
Definition Characters.h:246
static const uint8_t LS[8]
Definition Characters.h:389
static const uint8_t N3[8]
Definition Characters.h:113
static const uint8_t N7[8]
Definition Characters.h:157
static const uint8_t LW[8]
Definition Characters.h:433
static const uint8_t LP[8]
Definition Characters.h:356
static const uint8_t LT[8]
Definition Characters.h:400
static const uint8_t N6[8]
Definition Characters.h:146
static const uint8_t LI[8]
Definition Characters.h:279
static const uint8_t LJ[8]
Definition Characters.h:290
static const uint8_t LR[8]
Definition Characters.h:378
static const uint8_t LN[8]
Definition Characters.h:334
static const uint8_t LO[8]
Definition Characters.h:345
static const uint8_t LV[8]
Definition Characters.h:422
static const uint8_t SPACE[8]
Definition Characters.h:69
static const uint8_t N9[8]
Definition Characters.h:179
static const uint8_t LA[8]
Definition Characters.h:191
static const uint8_t LH[8]
Definition Characters.h:268
static const uint8_t LL[8]
Definition Characters.h:312
static const uint8_t LD[8]
Definition Characters.h:224
static const uint8_t LG[8]
Definition Characters.h:257
static const uint8_t N5[8]
Definition Characters.h:135
static const uint8_t N4[8]
Definition Characters.h:124
static const uint8_t COLON[8]
Definition Characters.h:47
static const uint8_t FWDSLSH[8]
Definition Characters.h:58
static const uint8_t LM[8]
Definition Characters.h:323
static const uint8_t LK[8]
Definition Characters.h:301
static const uint8_t N8[8]
Definition Characters.h:168
static const uint8_t LQ[8]
Definition Characters.h:367
static const uint8_t LZ[8]
Definition Characters.h:466
static const uint8_t LB[8]
Definition Characters.h:202