-
Notifications
You must be signed in to change notification settings - Fork 0
/
TreeType.hpp
134 lines (121 loc) · 3.27 KB
/
TreeType.hpp
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
#ifndef __TREETYPE_H_INCLUDED__
#define __TREETYPE_H_INCLUDED__
namespace t
{
//bit 0 - foreground blue
//bit 1 - foreground green
//bit 2 - foreground red
//bit 3 - foreground intensity
//
//bit 4 - background blue
//bit 5 - background green
//bit 6 - background red
//bit 7 - background intensity
enum Barva
{
zelena = D3DCOLOR_RGBA(0, 255, 0, 255),
cervena = D3DCOLOR_RGBA(255, 0, 0, 255),
modra = D3DCOLOR_RGBA(0, 0, 255, 255),
bila = D3DCOLOR_RGBA(255, 255, 255, 255),
cerna = D3DCOLOR_RGBA(0, 0, 0, 255),
zluta = D3DCOLOR_RGBA(255, 255, 0, 255),
purpurova = D3DCOLOR_RGBA(255, 0, 255, 255),
azurova = D3DCOLOR_RGBA(0, 255, 255, 255),
zlutozelena = D3DCOLOR_RGBA(171, 233, 7, 226),
oranzova = D3DCOLOR_RGBA(255, 128, 0, 240),
hneda = D3DCOLOR_RGBA(130, 65, 0, 62),
fbila=0xF, fseda=8, fcerna=0x0,
fmodra=0x9, ftyrkysova=0xB, ftmavemodra=1, ffialova=13,
fzelena=0xA, ftmavezelena=2, fzelenozluta,
fzluta=6, fjasnezluta=0x00e, foranzova=FOREGROUND_RED | BACKGROUND_BLUE | FOREGROUND_INTENSITY, fcervena=0xC,
bbila, bcerna, bmodra=BACKGROUND_BLUE,
bbilafcerna=0xF0, bcernafbila=0x0F
};
// b+2*g+4*r
enum Barveni
{
a, b, c, d, e, f, g, y, nebarvit
};
enum Element
{
bod=0, kruhBodu=1, usecka, kuzel, testUsecka, testValec
};
struct DruhStromu
{
Element element;
Barva barva;
Barveni barveni;
int rozliseniE; /*Pocet vrcholu na element/2.*/
int rozliseniV; /*Pocet elementu na vetev.*/
int urovenRozvetveni;
int pravdepodobnostRozvetveni;
int _iSType; //0-11
int _iRType; //0-5
int _iDType; //6.1.2.3.4.deflt
};
}
//
//namespace t3
//{
//
//
////bit 0 - foreground blue
////bit 1 - foreground green
////bit 2 - foreground red
////bit 3 - foreground intensity
////
////bit 4 - background blue
////bit 5 - background green
////bit 6 - background red
////bit 7 - background intensity
//enum Barva
//{
// zelena = D3DCOLOR_RGBA(0, 255, 0, 255),
// cervena = D3DCOLOR_RGBA(255, 0, 0, 255),
// modra = D3DCOLOR_RGBA(0, 0, 255, 255),
// bila = D3DCOLOR_RGBA(255, 255, 255, 255),
// cerna = D3DCOLOR_RGBA(0, 0, 0, 255),
// zluta = D3DCOLOR_RGBA(255, 255, 0, 255),
// purpurova = D3DCOLOR_RGBA(255, 0, 255, 255),
// azurova = D3DCOLOR_RGBA(0, 255, 255, 255),
// zlutozelena = D3DCOLOR_RGBA(171, 233, 7, 226),
// oranzova = D3DCOLOR_RGBA(255, 128, 0, 240),
//
// fbila=0xF, fseda=8, fcerna=0x0,
// fmodra=0x9, ftyrkysova=0xB, ftmavemodra=1, ffialova=13,
// fzelena=0xA, ftmavezelena=2, fzelenozluta,
// fzluta=6, fjasnezluta=0x00e, foranzova=FOREGROUND_RED | BACKGROUND_BLUE | FOREGROUND_INTENSITY, fcervena=0xC,
//
// bbila, bcerna, bmodra=BACKGROUND_BLUE,
//
// bbilafcerna=0xF0, bcernafbila=0x0F
//};
//
//// b+2*g+4*r
//enum Barveni
//{
// a, b, c, d, e, f, g, y, nebarvit
//};
//
//enum Element
//{
// bod=0, kruhBodu=1, usecka, kuzel, testUsecka, testValec
//};
//
//struct DruhStromu
//{
// Element element;
// Barva barva;
// Barveni barveni;
// int rozliseniE; /*Pocet vrcholu na element/2.*/
// int rozliseniV; /*Pocet elementu na vetev.*/
// int urovenRozvetveni;
// int pravdepodobnostRozvetveni;
// int _iSType; //0-11
// int _iRType; //0-5
// int _iDType; //6.1.2.3.4.deflt
//};
//
//
//}
#endif // __TREETYPE_H_INCLUDED__