17.01.2021
+ WPF-Support + Game Controller System + GameKeybind System + SM_WPF_TEST
This commit is contained in:
parent
af90d617d3
commit
6f23a80f7f
60 changed files with 1536 additions and 143 deletions
46
SM_WPF_TEST/MainWindow.xaml.cs
Normal file
46
SM_WPF_TEST/MainWindow.xaml.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using OpenTK.Graphics;
|
||||
using SM2D;
|
||||
using SM2D.Drawing;
|
||||
using SM2D.Scene;
|
||||
|
||||
namespace SM_WPF_TEST
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
GLWPFWindow2D gl;
|
||||
Scene scene;
|
||||
gl = new GLWPFWindow2D();
|
||||
Grid.SetColumn(gl, 1);
|
||||
grid.Children.Add(gl);
|
||||
|
||||
gl.Start();
|
||||
|
||||
gl.SetScene(scene = new Scene());
|
||||
|
||||
DrawObject2D cube = new DrawObject2D();
|
||||
cube.Color = Color4.Blue;
|
||||
scene.Objects.Add(cube);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue