-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadvancedConsole.cpp
More file actions
executable file
·46 lines (41 loc) · 995 Bytes
/
advancedConsole.cpp
File metadata and controls
executable file
·46 lines (41 loc) · 995 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
44
45
46
#include "advancedConsole.h"
adv::_constructor::_constructor() {
_advancedConsoleConstruct();
}
adv::_constructor::~_constructor() {
_advancedConsoleDestruct();
}
void adv::error(char* err) {
_advancedConsoleDestruct();
printf("Error: %s\r\n", err);
exit(1);
}
void adv::error(const char* err) {
adv::error((char*)err);
}
adv::_constructor adv::construct;
std::thread adv::uiloop;
std::mutex adv::buffers;
bool adv::ascii;
bool adv::run;
bool adv::ready;
bool adv::modify;
int adv::width;
int adv::height;
int adv::bufferWidth;
int adv::bufferHeight;
wchar_t* adv::fb;
wchar_t* adv::oldfb;
color_t* adv::cb;
color_t* adv::oldcb;
int adv::drawingMode;
bool adv::disableThreadSafety;
bool adv::doubleSize;
bool adv::thread;
std::condition_variable adv::cvStart;
std::mutex adv::startLock;
std::condition_variable adv::cvThreadState;
std::mutex adv::threadStateMux;
float adv::frametime;
std::chrono::time_point<std::chrono::high_resolution_clock> adv::lastFrame;
float adv::deltaTime;