mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
* Add zone flags to indicate if fields are manually configurable and if they have been manually configured * Add flags field to segment type * Add segment flags for group start and group member * Add color mode support flags to zone (RGB, RBG, GRB, GBR, BRG, BGR) * Add color mode enum to zone * Update zone and segment description functions to support new fields * Rename the effects-only configurable size flag * Remove zone type and matrix map configuration from E1.31 manual configuration, use zone editor instead * Rework DeviceResizeZone to DeviceConfigureZone * Rework most ARGB controllers to allow zone customizations * Rework DRGBController to define devices in DRGBDevices list (similar to RazerDevices) * Rework NollieController to define devices in NollieDevices list (similar to RazerDevices)
54 lines
2.0 KiB
C++
54 lines
2.0 KiB
C++
/*---------------------------------------------------------*\
|
|
| RGBController_Network.h |
|
|
| |
|
|
| RGBController implementation that represents a remote |
|
|
| RGBController instance from a connected OpenRGB server |
|
|
| |
|
|
| Adam Honse (CalcProgrammer1) 11 Apr 2020 |
|
|
| |
|
|
| This file is part of the OpenRGB project |
|
|
| SPDX-License-Identifier: GPL-2.0-or-later |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include "RGBController.h"
|
|
#include "NetworkClient.h"
|
|
|
|
class RGBController_Network : public RGBController
|
|
{
|
|
public:
|
|
RGBController_Network(NetworkClient * client_ptr, unsigned int dev_idx_val);
|
|
~RGBController_Network();
|
|
|
|
unsigned int GetID();
|
|
|
|
void ClearSegments(int zone);
|
|
void AddSegment(int zone, segment new_segment);
|
|
|
|
void ConfigureZone(int zone_idx, zone new_zone);
|
|
void ResizeZone(int zone, int new_size);
|
|
|
|
void DeviceUpdateLEDs();
|
|
void DeviceUpdateZoneLEDs(int zone);
|
|
void DeviceUpdateSingleLED(int led);
|
|
|
|
void SetCustomMode();
|
|
void DeviceUpdateMode();
|
|
void DeviceUpdateZoneMode(int zone);
|
|
void DeviceSaveMode();
|
|
|
|
void UpdateLEDs();
|
|
void UpdateMode();
|
|
|
|
private:
|
|
NetworkClient * client;
|
|
unsigned int dev_id;
|
|
|
|
unsigned char * CreateUpdateLEDsPacket(unsigned int protocol_version);
|
|
unsigned char * CreateUpdateModePacket(int mode_idx, unsigned int* size, unsigned int protocol_version);
|
|
unsigned char * CreateUpdateSingleLEDPacket(int led);
|
|
unsigned char * CreateUpdateZoneLEDsPacket(int zone);
|
|
unsigned char * CreateUpdateZoneModePacket(int zone_idx, int mode_idx, unsigned int* size, unsigned int protocol_version);
|
|
};
|