1.0.10
+ Added property "CalculatedWorldScale", what always updates the world scale if required. ~ Changed how items can be inserted to a item collection. ~ AddObject(), AddScript(), RemoveObject(), RemoveScript() are now obsolte. ~ Fixed a issue, where the background was using the default mesh, what caused some visual errors if changed.
This commit is contained in:
parent
6cb1fea19a
commit
35c433fa85
7 changed files with 70 additions and 16 deletions
|
|
@ -4,6 +4,7 @@ using System.Drawing;
|
|||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using SM.Base.Drawing;
|
||||
using SM.Base.Objects.Static;
|
||||
using SM.Base.Scene;
|
||||
using SM.Base.Textures;
|
||||
using SM.Base.Window;
|
||||
|
|
@ -53,6 +54,7 @@ namespace SM2D.Drawing
|
|||
public DrawBackground(Color4 color)
|
||||
{
|
||||
Color = color;
|
||||
Mesh = Plate.Object;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -62,6 +64,7 @@ namespace SM2D.Drawing
|
|||
public DrawBackground(Bitmap texture)
|
||||
{
|
||||
Texture = (Texture) texture;
|
||||
Mesh = Plate.Object;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -73,6 +76,7 @@ namespace SM2D.Drawing
|
|||
{
|
||||
Color = tint;
|
||||
Texture = (Texture) texture;
|
||||
Mesh = Plate.Object;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue