19.09.2020
+ Vector-classes + Added Background ~ Changed OpenTK.Vector2 to SM.Base.Types.Vector2
This commit is contained in:
parent
a603ecc417
commit
acccf5f0e7
22 changed files with 295 additions and 27 deletions
|
|
@ -4,13 +4,10 @@ using SM.OGL.Mesh;
|
|||
|
||||
namespace SM.Base.Scene
|
||||
{
|
||||
public class DrawingBasis<TTransformation> : IShowItem
|
||||
where TTransformation : GenericTransformation, new()
|
||||
public class DrawingBasis : IShowItem
|
||||
{
|
||||
protected Material _material = new Material();
|
||||
protected Mesh _mesh = Plate.Object;
|
||||
|
||||
public TTransformation Transform = new TTransformation();
|
||||
public virtual void Update(UpdateContext context)
|
||||
{
|
||||
|
||||
|
|
@ -25,4 +22,10 @@ namespace SM.Base.Scene
|
|||
context.Mesh = _mesh;
|
||||
}
|
||||
}
|
||||
public class DrawingBasis<TTransformation> : DrawingBasis
|
||||
where TTransformation : GenericTransformation, new()
|
||||
{
|
||||
|
||||
public TTransformation Transform = new TTransformation();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue