using SM.Base.Contexts; using SM.Base.Scene; using SM.OGL.Mesh; using SM2D.Scene; using SM2D.Types; namespace SM2D.Drawing { public class DrawComplex: DrawingBasis, I2DShowItem { public int ZIndex { get; set; } public Material Material { get => _material; set => _material = value; } public GenericMesh Mesh { get => _mesh; set => _mesh = value; } public override void Draw(DrawContext context) { base.Draw(context); ApplyContext(ref context); context.Instances[0].ModelMatrix = Transform.GetMatrix(); _material.Shader.Draw(context); } } }