-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
104 lines (91 loc) · 1.66 KB
/
main.h
File metadata and controls
104 lines (91 loc) · 1.66 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
#ifndef main_H
#define main_H
#include "gui.h"
#include "plot.h"
#include <zmouse.h>
typedef unsigned char uchar;
typedef unsigned int uint;
#define IDC_GRX_OPENGL 600
#define IDC_GRX_TIMER 608
//#define PLOT_I 30
//#define PLOT_J 30
//#define WWM_NONE 0
//#define WWM_WIRE 1
//#define WWM_TAIL 2
//#define WWM_HEAD 3
//#define DEFAULT_SPEED 4
//#define MAKE_MSG(X, Y, Z) (X + (Y<<8) + (Z<<16))
HMIDIOUT hdev;
HWND GraphicsOpengl;
HDC hdc;
HGLRC hrc;
int PixelFormat;
bool GraphicsReady=false;
bool run=false;;
char dmsg[512];
bool tabkey=false;
GLuint base;
uint loop;
const char* tones[]={
"C3",
"C3#",
"D3",
"D3#",
"E3",
"F3",
"F3#",
"G3",
"G3#",
"A3",
"A3#",
"B3",
"C4",
"C4#",
"D4",
"D4#",
"E4",
"F4",
"F4#",
"G4",
"G4#",
"A4",
"A4#",
"B4",
"C5",
"C5#",
"D5",
"D5#",
"E5",
"F5"
};
char gltext[256];
char glinfo[256];
bool mleft = false;
bool mright = false;
uchar pencil = 0;
Plot wwmplot;
//Interface controls
Static statics[1];
Button buttons[7];
Wheel wheels[1];
Tabs editortabs;
//Tab1 controls
Static tab1statics[5];
CheckBox tab1cheks[4];
ColorSquare tab1colors[4];
Button tab1buttons[2];
//Tab2 controls
Static tab2statics[3];
Button tab2buttons[1];
Wheel tab2wheels[1];
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nShowCmd);
LRESULT CALLBACK WinProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
void CreateGraphicsPanel(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam);
void OpenglDraw(void);
GLvoid glPrint(float x, float y, float z, const char *fmt, ...);
void SelectPencil(uchar p);
void CalculateMatrix(void);
void Init(void);
void OpenWorld(HWND hwnd);
void SaveWorld(HWND hwnd);
#endif