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
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using SM.Base.Animation;
|
||||
using SM.Base.Controls;
|
||||
using SM.Base.Drawing.Text;
|
||||
|
|
@ -32,17 +33,10 @@ namespace SM_TEST
|
|||
|
||||
window = new GLWindow(1280, 720, "0ms", WindowFlags.Window, VSyncMode.Off);
|
||||
window.ApplySetup(new Window2DSetup());
|
||||
window.SetRenderPipeline(new TestRenderPipeline());
|
||||
|
||||
|
||||
window.SetScene(scene = new Scene());
|
||||
|
||||
DrawParticles particles = new DrawParticles(TimeSpan.FromSeconds(5))
|
||||
{
|
||||
Direction = new Vector2(0, 1),
|
||||
DirectionRadius = 10
|
||||
};
|
||||
particles.Trigger();
|
||||
scene.Objects.Add(particles);
|
||||
scene.Background.Color = Color4.Blue;
|
||||
|
||||
window.UpdateFrame += WindowOnUpdateFrame;
|
||||
window.RenderFrame += Window_RenderFrame;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue