forked from MoustafaMagdy10/Online-wallet-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.cpp
47 lines (38 loc) · 823 Bytes
/
Main.cpp
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
#include "raylib.h"
#include "raymath.h"
#include "imgui.h"
#include "rlImGui.h"
#include "Menu.h"
#include <string>
#include <vector>
#include <iostream>
#include "Person.h"
#include "User.h"
#include "Admin.h"
#include "FileHandler.h"
int main()
{
FileHandler::readDataFromFile();
stack<Transaction> st = FileHandler::readStackFromFile();
while (!st.empty())
{
Transaction::addTransactionToStore(st.top());
st.pop();
}
int width = 1024;
int hight = 1024;
InitWindow(width, hight, "Online Wallet System");
SetTargetFPS(60);
rlImGuiSetup(true);
while (!WindowShouldClose())
{
Menu::RenderFrame();
Menu();
Menu::EndFrame();
}
Menu::RenderFrame();
if (WindowShouldClose())
{
Menu::safeEnd();
}
}