mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 04:56:44 +00:00
Refactored brushes to perform a multi-pass rendering.
This allows effects to change the calculated values.
This commit is contained in:
1 parent
ba80ef9848
commit
8d32c73b6d
15 files changed
+159
-97
No files matched your search
@@ -169,8 +169,7 @@ namespace CUE.NET.Devices.Generic
|
||||
public void Update(bool flushLeds = false)
|
||||
{
|
||||
OnUpdating();
|
||||
|
||||
DeviceUpdateEffects();
|
||||
|
||||
DeviceUpdate();
|
||||
|
||||
ICollection<LedUpateRequest> ledsToUpdate = (flushLeds ? Leds : Leds.Where(x => x.Value.IsDirty)).Select(x => new LedUpateRequest(x.Key, x.Value.RequestedColor)).ToList();
|
||||
@@ -187,11 +186,6 @@ namespace CUE.NET.Devices.Generic
|
||||
/// Performs device specific updates.
|
||||
/// </summary>
|
||||
protected abstract void DeviceUpdate();
|
||||
|
||||
/// <summary>
|
||||
/// Performs device specific updates effect-updates.
|
||||
/// </summary>
|
||||
protected abstract void DeviceUpdateEffects();
|
||||
|
||||
private void UpdateLeds(ICollection<LedUpateRequest> updateRequests)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user