mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-26 00:37:46 -05:00
42 lines
1.8 KiB
C++
42 lines
1.8 KiB
C++
/******************************************************************************************\
|
|
* *
|
|
* main.cpp *
|
|
* *
|
|
* Main function for OpenAuraSDK GUI project *
|
|
* *
|
|
\******************************************************************************************/
|
|
|
|
#include "OpenRGB.h"
|
|
#include "RGBController.h"
|
|
#include "i2c_smbus.h"
|
|
#include <vector>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "OpenRGBDialog2.h"
|
|
|
|
|
|
extern std::vector<i2c_smbus_interface*> busses;
|
|
extern std::vector<RGBController*> rgb_controllers;
|
|
|
|
/******************************************************************************************\
|
|
* *
|
|
* main *
|
|
* *
|
|
* Main function. Detects busses and Aura controllers, then opens the main window *
|
|
* *
|
|
\******************************************************************************************/
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
DetectRGBControllers();
|
|
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
QApplication a(argc, argv);
|
|
|
|
Ui::OpenRGBDialog2 dlg(busses, rgb_controllers);
|
|
dlg.show();
|
|
|
|
return a.exec();
|
|
}
|