Skip to content

juyanith/Win32Host

Repository files navigation

Win32Host

Root implementation of HwndHost for hosting WIN32 elements. See usage and examples.

Usage

Extend Win32HwndHost and implement the following methods:

  • InitializeHostedContent - Called to create the hosted elements.
  • UninitializeHostedContent - Called to destroy hosted elements.
  • ResizeHostedContent - Called when the size of the window changes.

Samples

Stride Game Engine (WIP)

I have created a fork of Stride (https://github.com/juyanith/stride) that allows embedding a game inside WPF using Win32Host. To make this work it was necessary to modify the Stride Window class to use SDL.CreateWindowFrom() when passed a parent handle. Take a look at ParticlesSample.Wpf for an example of an embedded game.

About

Root implementation for hosting WIN32 elements.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages