Loads and loads of small improvements I added while developing on my game

This commit is contained in:
Michel Fedde 2021-03-02 19:54:19 +01:00
parent 41421b1df9
commit a7c71e7ea1
107 changed files with 2278 additions and 1023 deletions

View file

@ -16,6 +16,8 @@ namespace SM.Base.Drawing
/// </summary>
public bool Ignore = false;
public Matrix4 LastMaster { get; internal set; }
/// <summary>
/// Contains the current model matrix.
/// </summary>
@ -43,6 +45,11 @@ namespace SM.Base.Drawing
return _modelMatrix;
}
public Matrix4 MergeMatrix(Matrix4 matrix)
{
return GetMatrix() * matrix;
}
/// <summary>
/// Calculates the current matrix.
/// </summary>