+ render pipeline system for more control about the renderering. + Log system + Framebuffer system ~ Default shader was moved to pipelines.
30 lines
No EOL
712 B
C#
30 lines
No EOL
712 B
C#
using SM.Base;
|
|
using SM.Base.Contexts;
|
|
using SM.Base.Text;
|
|
using SM.Base.Types;
|
|
using SM2D.Scene;
|
|
using SM2D.Types;
|
|
|
|
namespace SM2D.Drawing
|
|
{
|
|
public class DrawText : TextDrawingBasis<Transformation>, I2DShowItem
|
|
{
|
|
public DrawText(Font font, string text) : base(font)
|
|
{
|
|
_text = text;
|
|
Transform.Size = new CVector2(1);
|
|
}
|
|
|
|
protected override void DrawContext(ref DrawContext context)
|
|
{
|
|
base.DrawContext(ref context);
|
|
context.Instances = _instances;
|
|
|
|
context.View = Transform.GetMatrix() * context.View;
|
|
|
|
context.Shader.Draw(context);
|
|
}
|
|
|
|
public int ZIndex { get; set; }
|
|
}
|
|
} |