smrendererv3/SMCode/SM.Base/Drawing/DrawingBasis.cs
Michel Fedde a603ecc417 18.09.2020
+ Textures
~ Changed 2D coordnate system to lower right as XY+
2020-09-19 15:04:04 +02:00

28 lines
No EOL
706 B
C#

using SM.Base.Contexts;
using SM.Base.StaticObjects;
using SM.OGL.Mesh;
namespace SM.Base.Scene
{
public class DrawingBasis<TTransformation> : IShowItem
where TTransformation : GenericTransformation, new()
{
protected Material _material = new Material();
protected Mesh _mesh = Plate.Object;
public TTransformation Transform = new TTransformation();
public virtual void Update(UpdateContext context)
{
}
public virtual void Draw(DrawContext context)
{ }
protected void ApplyContext(ref DrawContext context)
{
context.Material = _material;
context.Mesh = _mesh;
}
}
}