+ AxisHelper
~ Transformation can now set to be ignored. (Sending a Identity, when requested) ~ Changed how Meshes store Attributes
This commit is contained in:
parent
0895c600cf
commit
2e7051d800
14 changed files with 146 additions and 30 deletions
|
|
@ -3,6 +3,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Dynamic;
|
||||
using SM.Base.Contexts;
|
||||
using SM.Base.Drawing;
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
@ -13,8 +14,6 @@ namespace SM.Base.Scene
|
|||
/// </summary>
|
||||
public abstract class GenericScene
|
||||
{
|
||||
|
||||
|
||||
private IBackgroundItem _background;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -34,6 +33,7 @@ namespace SM.Base.Scene
|
|||
/// </summary>
|
||||
public bool IsInitialized { get; private set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Updates this scene.
|
||||
/// </summary>
|
||||
|
|
@ -91,6 +91,8 @@ namespace SM.Base.Scene
|
|||
private TCollection _hud = new TCollection();
|
||||
private TCollection _objectCollection = new TCollection();
|
||||
|
||||
public bool ShowAxisHelper { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// A collection for cameras to switch easier to different cameras.
|
||||
/// </summary>
|
||||
|
|
@ -154,6 +156,7 @@ namespace SM.Base.Scene
|
|||
DrawMainObjects(context);
|
||||
|
||||
DrawHUD(context);
|
||||
DrawDebug(context);
|
||||
}
|
||||
|
||||
public void DrawBackground(DrawContext context)
|
||||
|
|
@ -174,5 +177,10 @@ namespace SM.Base.Scene
|
|||
context.View = HUDCamera.CalculateViewMatrix();
|
||||
_hud.Draw(context);
|
||||
}
|
||||
|
||||
public virtual void DrawDebug(DrawContext context)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue