Using FLTK 1.3.3 with Panda3D 1.9.1, I am trying to create a FLTK window and then re-parenting the Panda3D window to the FLTK window.
Things I have seen mentioned (documentation and elsewhere):
The FLTK window works without a Panda3D window and vice versa.
I tried using the function described on the following page to get a Windows Window Handle (HWND):
https://support.microsoft.com/en-us/kb/124103
More info:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms683175(v=vs.85).aspx
I have also tried the following:
PandaFramework framework;
framework.open_framework( argc, argv );
WindowProperties newProperties;
framework.get_default_window_props( newProperties );
HWND *hwnd = fl_xid( window );
WindowHandle *whnd = new WindowHandle( hwnd );
newProperties.set_parent_window( whnd );
AFAIK, the HWND is a WindowHandle::OSHandle in Panda3D.
Thus by retrieving the HWND from the FLTK window, I should be able to then use this to create a WindowHandle and then apply it to the WindowProperties.
Note that I didn’t find GraphicsPipe::make_window_handle(), does it still even exist?.
I must be doing something horribly wrong, because the compiler errors I am receiving don’t have anything to do with what I’m trying to achieve.
Can anybody help me out here? Any tips or pointers are greatly appreciated!