feenkcom / gtoolkit

Glamorous Toolkit is the Moldable Development environment. It empowers you to make systems explainable through experiences tailored for each problem.
https://gtoolkit.com
MIT License
1.11k stars 49 forks source link

Spawn morphic world in a native window from GT menu #585

Closed syrel closed 5 years ago

syrel commented 5 years ago

It is possible to spawn a morphic world from a GT menu. However, it tries to embed a morphic world inside of the bloc element in a hacky way. Instead, we should dispatch through BlHost to open a world inside of the native window using the same technology as GtWorld.

In case of the morphic host, there is no need to open a morphic world at all (we are already in it). When the host is glutin we should open a glutin morphic world. The same applies for SDL2

Screenshot 2019-10-14 at 12 11 35
syrel commented 5 years ago

With Glutin:

Screenshot 2019-10-14 at 13 00 07

With SDL2:

Screenshot 2019-10-14 at 13 02 12