Files
OpenRGB/Controllers/MSIGPUController/RGBController_MSIGPU.h
Codename-Antares 57cb3ef9cd Initial Implementation for a MSI GPU FPS Limiter (tested and working)
Commit amended for code style by Adam Honse <calcprogrammer1@gmail.com
2022-09-27 11:36:07 -05:00

38 lines
1015 B
C++

/*-----------------------------------------*\
| RGBController_MSIGPU.h |
| |
| Generic RGB Interface for MSI GPU |
| |
\*-----------------------------------------*/
#pragma once
#include "RGBController.h"
#include "MSIGPUController.h"
class RGBController_MSIGPU : public RGBController
{
public:
RGBController_MSIGPU(MSIGPUController* msi_gpu_ptr);
~RGBController_MSIGPU();
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void DeviceUpdateMode();
void DeviceSaveMode();
private:
MSIGPUController* msi_gpu;
std::chrono::time_point<std::chrono::steady_clock> last_commit_time;
bool TimeToSend();
int GetDeviceMode();
int GetModeBrightness();
int GetModeSpeed();
};