smrendererv3/SMCode/SM.Base/Drawing/DrawingBasis.cs
Michel Fedde acccf5f0e7 19.09.2020
+ Vector-classes
+ Added Background
~ Changed OpenTK.Vector2 to SM.Base.Types.Vector2
2020-09-19 19:04:19 +02:00

31 lines
No EOL
763 B
C#

using SM.Base.Contexts;
using SM.Base.StaticObjects;
using SM.OGL.Mesh;
namespace SM.Base.Scene
{
public 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 class DrawingBasis<TTransformation> : DrawingBasis
where TTransformation : GenericTransformation, new()
{
public TTransformation Transform = new TTransformation();
}
}