Refactored brushes to perform a multi-pass rendering.

This allows effects to change the calculated values.
This commit is contained in:
DarthAffe committed 2016-08-21 18:14:31 +02:00
1 parent ba80ef9848
commit 8d32c73b6d
15 files changed
+159 -97

No files matched your search

+1 -7
View File
@@ -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)
{