+ render pipeline system for more control about the renderering. + Log system + Framebuffer system ~ Default shader was moved to pipelines.
24 lines
No EOL
519 B
C#
24 lines
No EOL
519 B
C#
using SM.Base.Contexts;
|
|
using SM.Base.Scene;
|
|
using SM.Base.Types;
|
|
using SM2D.Types;
|
|
|
|
namespace SM2D.Scene
|
|
{
|
|
public class ItemCollection : GenericItemCollection<I2DShowItem, Transformation>, I2DShowItem
|
|
{
|
|
public ItemCollection()
|
|
{
|
|
Transform.Size = new CVector2(1);
|
|
}
|
|
|
|
public override void Draw(DrawContext context)
|
|
{
|
|
Sort((x, y) => x.ZIndex - y.ZIndex);
|
|
|
|
base.Draw(context);
|
|
}
|
|
|
|
public int ZIndex { get; set; }
|
|
}
|
|
} |