+ Instance Drawing + Text and Font ~ Made "DrawBackground" forced Background for 2D - DrawEmpty
30 lines
No EOL
780 B
C#
30 lines
No EOL
780 B
C#
using SM.Base.Contexts;
|
|
using SM.Base.StaticObjects;
|
|
using SM.OGL.Mesh;
|
|
|
|
namespace SM.Base.Scene
|
|
{
|
|
public abstract class DrawingBasis : IShowItem
|
|
{
|
|
protected Material _material = new Material();
|
|
protected Mesh _mesh = Plate.Object;
|
|
public virtual void Update(UpdateContext context)
|
|
{
|
|
|
|
}
|
|
|
|
public virtual void Draw(DrawContext context)
|
|
{ }
|
|
|
|
protected void ApplyContext(ref DrawContext context)
|
|
{
|
|
context.Material = _material;
|
|
context.Mesh = _mesh;
|
|
}
|
|
}
|
|
public abstract class DrawingBasis<TTransformation> : DrawingBasis
|
|
where TTransformation : GenericTransformation, new()
|
|
{
|
|
public TTransformation Transform = new TTransformation();
|
|
}
|
|
} |