-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.h
55 lines (41 loc) · 1.35 KB
/
utils.h
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
#ifndef utils_h
#define utils_h
namespace GraphUtils
{
// Ïîïåðåäí³é îïèñ ìàñèâ³â, ÿê³ âèçíà÷àþòü êîëüîðè:
extern float diffWhite[];
extern float ambiWhite[];
extern float specWhite[];
extern float diffBlue[];
extern float ambiBlue[];
extern float specBlue[];
extern float diffGray[];
extern float ambiGray[];
extern float specGray[];
extern float diffRed[];
extern float ambiRed[];
extern float specRed[];
extern float diffYellow[];
extern float ambiYellow[];
extern float specYellow[];
extern float diffGreen[];
extern float ambiGreen[];
extern float specGreen[];
extern float diffOrange[];
extern float ambiOrange[];
extern float specOrange[];
extern float diffLightBlue[];
extern float ambiLightBlue[];
extern float specLightBlue[];
extern float diffViolet[];
extern float ambiViolet[];
extern float specViolet[];
const float shininess = 64; // áëèñê
// Âèïàäêîâå "òàñóâàííÿ" îäíîâèì³ðíîãî ìàñèâó ö³ëèõ ÷èñåë
void shuffle(int* a, int size);
// Ìàëþâàííÿ ïàðàëåëåï³ïåäà
void parallelepiped(float length, float width, float height);
// ³äîáðàæåííÿ ðÿäêà òåêñòó âêàçàíèì øðèôòîì ó âêàçàí³é ïîçèö³¿
void drawString(void* font, const char* text, float x, float y);
}
#endif