mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Working on render logic
This commit is contained in:
1 parent
c2c849201d
commit
9badc666e8
8 files changed
+50
-19
No files matched your search
@@ -64,12 +64,17 @@ namespace Artemis.Core.Services
|
||||
foreach (var module in modules)
|
||||
module.Update(args.DeltaTime);
|
||||
|
||||
// If there is no graphics decorator, skip the frame
|
||||
if (_rgbService.GraphicsDecorator == null)
|
||||
return;
|
||||
|
||||
// Render all active modules
|
||||
using (var g = _rgbService.GraphicsDecorator.GetGraphics())
|
||||
{
|
||||
// If there are no graphics, skip the frame
|
||||
if (g == null)
|
||||
return;
|
||||
|
||||
g.Clear(Color.Black);
|
||||
foreach (var module in modules)
|
||||
module.Render(args.DeltaTime, _rgbService.Surface, g);
|
||||
|
||||
Reference in new issue
Block a user