forked from RGAA-Software/GammaRay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (25 loc) · 843 Bytes
/
main.cpp
File metadata and controls
32 lines (25 loc) · 843 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
#include <QApplication>
#include <QFontDatabase>
#include <QElapsedTimer>
#include <QFile>
#include "tc_common_new/log.h"
#include "gr_application.h"
#include "gr_workspace.h"
#include "util/dxgi_mon_detector.h"
using namespace tc;
int main(int argc, char *argv[]) {
//AllocConsole();
//freopen("CONOUT$", "w", stdout);
QApplication app(argc, argv);
Logger::InitLog("GammaRay.log", true);
int id = QFontDatabase::addApplicationFont(":/resources/font/matrix.ttf");
auto families = QFontDatabase::applicationFontFamilies(id);
for (auto& f : families) {
LOGI("font family : {}", f.toStdString());
}
DxgiMonitorDetector::Instance()->DetectAdapters();
GrWorkspace workspace;
workspace.setFixedSize(1820, 960);
workspace.show();
return app.exec();
}