Added a layer of abstraction between RGB.NET and Artemis

This means Artemis can add extra functionality
It also avoid having to reference RGB.NET for basic rendering
Implemented rendering scaling
This commit is contained in:
SpoinkyNL committed 2019-10-30 23:20:06 +01:00
1 parent 498b6a6111
commit 8777e8975f
41 files changed
+725 -494

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ namespace Artemis.Core.Models.Profile
profileElement.Update(deltaTime);
}
public void Render(double deltaTime, RGBSurface surface, Graphics graphics)
public void Render(double deltaTime, Surface.Surface surface, Graphics graphics)
{
// Folders don't render but their children do
foreach (var profileElement in Children)
@@ -30,6 +30,6 @@ namespace Artemis.Core.Models.Profile.Interfaces
/// <summary>
/// Renders the element
/// </summary>
void Render(double deltaTime, RGBSurface surface, Graphics graphics);
void Render(double deltaTime, Surface.Surface surface, Graphics graphics);
}
}
+1 -2
View File
@@ -6,7 +6,6 @@ using Artemis.Core.Plugins.Abstract;
using Artemis.Core.Plugins.Interfaces;
using Artemis.Core.Services.Interfaces;
using Artemis.Storage.Entities;
using RGB.NET.Core;
namespace Artemis.Core.Models.Profile
{
@@ -36,7 +35,7 @@ namespace Artemis.Core.Models.Profile
}
}
public void Render(double deltaTime, RGBSurface surface, Graphics graphics)
public void Render(double deltaTime, Surface.Surface surface, Graphics graphics)
{
if (LayerType == null)
return;
+1 -1
View File
@@ -35,7 +35,7 @@ namespace Artemis.Core.Models.Profile
}
}
public void Render(double deltaTime, RGBSurface surface, Graphics graphics)
public void Render(double deltaTime, Surface.Surface surface, Graphics graphics)
{
lock (this)
{