Jump to content

Embedding Unigine into WinApi window


photo

Recommended Posts

Hello again,

I have application with one window written in pure WinApi. I want to embedd Unigine window into this WinApi window. I see in documentation that in my SDK should be some embedding samples but I haven't got any of them there.

I tried using SetParent in my WinApi application on Unigine HWND but looks like it have no effect on Unigine window.

How can I embedd Unigine window into WinApi window?

Link to comment

Hi Adrian,

There is indeed no sample on embedding Unigine into raw WinApi window. However, you can take a look at the sample integrations into SDL2 / Qt / WPF and probably use one of them instead (or write your own WinApi integration based on these samples).

These apps (C++) are located inside <SDK>/source/apps:

  • main_qt
  • main_sdl

For C# integrations you can check in <SDK>/source/csharp/apps:

  • main_winform
  • main_wpf

Path to <SDK> you can find in SDK Browser -> Options -> Storage Path (the SDK itself will be located inside sdks dir in Storage Path)

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

To be clear - in my <SDK>source/apps I don't have main_qt nor main_sdl app folder. There is only main folder, inside there is project but code is just a boilerplate (empty system, editor and world logic) - nothing more.apps.thumb.png.d0372dd7b459a5357e2a747a4b520091.png

Link to comment

Oh, OK.
To clarify - will we have ability to embedd Unigine into our application if we buy Entertainment version?

I've downloaded Engineering SDK and I can confirm - I have this samples now. Looking at SDL sample I've embedded Unigine into my WinApi application without major issues - great!

Link to comment
  • 2 weeks later...

Now I see what happend...

When I was starting trial version on this page https://unigine.com/en/get-unigine in Entertainment features list was "Embedding into Proprietary Apps" but probably after seeing this topic you changed it and now it's Engineering and Sim feature only.

Does it mean that now on Entertainment version I will not be able to embedd Unigine engine into my WinApi application?

Link to comment
×
×
  • Create New...