Added Summeries
This commit is contained in:
parent
71a22df8bd
commit
8296d9b8a9
47 changed files with 812 additions and 177 deletions
|
|
@ -11,17 +11,25 @@ using SM2D.Drawing;
|
|||
|
||||
namespace SM2D.Scene
|
||||
{
|
||||
/// <summary>
|
||||
/// The scene allows connecting different objects to render together.
|
||||
/// </summary>
|
||||
public class Scene : GenericScene<Camera, ItemCollection>
|
||||
{
|
||||
private static DrawObject2D _axisHelper;
|
||||
private static readonly DrawObject2D _axisHelper;
|
||||
|
||||
/// <summary>
|
||||
/// This determent how large the axishelper should be.
|
||||
/// </summary>
|
||||
public float AxisHelperSize = 100;
|
||||
static Scene()
|
||||
{
|
||||
_axisHelper = new DrawObject2D();
|
||||
_axisHelper.Mesh = AxisHelper.Object;
|
||||
_axisHelper = new DrawObject2D {Mesh = AxisHelper.Object};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This creates a new scene.
|
||||
/// </summary>
|
||||
public Scene()
|
||||
{
|
||||
_Background = new DrawBackground(Color4.Black);
|
||||
|
|
@ -32,12 +40,16 @@ namespace SM2D.Scene
|
|||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets/Sets the background.
|
||||
/// </summary>
|
||||
public DrawBackground Background
|
||||
{
|
||||
get => (DrawBackground) _Background;
|
||||
set => _Background = value;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void DrawHUD(DrawContext context)
|
||||
{
|
||||
context.ModelMatrix *= Matrix4.CreateTranslation(0,0,1);
|
||||
|
|
@ -45,6 +57,7 @@ namespace SM2D.Scene
|
|||
base.DrawHUD(context);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void DrawDebug(DrawContext context)
|
||||
{
|
||||
if (ShowAxisHelper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue