04.10.2020

+ render pipeline system for more control about the renderering.
+ Log system
+ Framebuffer system

~ Default shader was moved to pipelines.
This commit is contained in:
Michel Fedde 2020-10-04 16:31:48 +02:00
parent 97e638d9d9
commit 820d6ce700
34 changed files with 660 additions and 106 deletions

View file

@ -5,7 +5,7 @@ using SM2D.Drawing;
namespace SM2D.Scene
{
public class Scene : GenericScene<Camera, I2DShowItem>
public class Scene : GenericScene<Camera, ItemCollection, I2DShowItem>
{
public DrawBackground Background => (DrawBackground)_background;
@ -13,11 +13,5 @@ namespace SM2D.Scene
{
_background = new DrawBackground(Color4.Black);
}
public override void Draw(DrawContext context)
{
Objects.Sort((x,y) => x.ZIndex - y.ZIndex);
base.Draw(context);
}
}
}