-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (37 loc) · 914 Bytes
/
main.cpp
File metadata and controls
43 lines (37 loc) · 914 Bytes
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
#include <iostream>
#include <graphics.h>
#include <cstring>
#include <winbgim.h>
#include <vector>
#include "bloc.h"
#include "window.h"
#include "generate.h"
#include "run.h"
#include "menu.h"
#define DELAY 3
using namespace std;
int main()
{
srand(time(nullptr));
int x,y;
initwindow(1365,800, "INTERSCHEM");
createMenuScreen(app.diagonalLinks);
while (true)
{
if(ismouseclick(WM_LBUTTONUP))
{
getmouseclick(WM_LBUTTONUP,x,y);
if(inFeaturesButton(x,y))
featuresWindow();
else if (inNewButton(x,y))
mainWindow();
else if (inOpenButton(x,y)) {
saveWindow();
} else if (inDiagonalLinksButton(x,y)) {
app.diagonalLinks = !app.diagonalLinks;
drawDiagonLinksButton(app.diagonalLinks);
}
}
}
return 0;
}