Ejemplo n.º 1
0
        public DemoWindow()
        {
            InitializeComponent();
            var veldridControl = new VeldridControl {
                IsAnimated = true
            };

            veldridControl.Dock = DockStyle.Fill;
            _texturedCube       = new TexturedCube(veldridControl);
            Controls.Add(veldridControl);
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            // Subscribe to render events to trigger WinForms Application.Idle event
            CompositionTarget.Rendering += OnRendering;

            _veldridControl = new VeldridControl {
                IsAnimated = true
            };
            _texturedCube = new TexturedCube(_veldridControl);
            _host.Child   = _veldridControl;
        }