Put Blitz 3d inside of anything

Miscellaneous Forums/Blitz Showcase/Put Blitz 3d inside of anything

Thank you so much for this! This is a huge help for my editor. Now I can use a nice easy-to-use windows GUI for my editor while still using Blitz3D for rendering.

I simply had to use api_SetWindowPos to position the window where I wanted after using your code to embed the window:
api_SetWindowPos hwnd, HWND_TOP, 1, 1, 640, 480, 0	;HWND_TOP, xpos, ypos, xsize, ysize, 0


I connect my GUI app to the embedded blitz3D app now by TCP/IP. Closing the Blitz3D window is handled by tests every 30 frames for TCP connection. If the connection is lost (in other words, if the GUI is closed), then the Blitz3D window closes too.