+ WPF Support
This commit is contained in:
parent
6f23a80f7f
commit
41421b1df9
12 changed files with 94 additions and 14 deletions
|
|
@ -15,6 +15,7 @@ using System.Windows.Shapes;
|
|||
using OpenTK.Graphics;
|
||||
using SM2D;
|
||||
using SM2D.Drawing;
|
||||
using SM2D.Pipelines;
|
||||
using SM2D.Scene;
|
||||
|
||||
namespace SM_WPF_TEST
|
||||
|
|
@ -37,10 +38,13 @@ namespace SM_WPF_TEST
|
|||
gl.Start();
|
||||
|
||||
gl.SetScene(scene = new Scene());
|
||||
gl.SetRenderPipeline(Default2DPipeline.Pipeline);
|
||||
|
||||
DrawObject2D cube = new DrawObject2D();
|
||||
cube.Color = Color4.Blue;
|
||||
scene.Objects.Add(cube);
|
||||
|
||||
new Window1().Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue