I want obtain pointer of main application window from Urho, where is rendering done. I need it for attach to this window Sciter window. I am following GLFW example from Sciter where in example is used this technique with window.
Btw I did something, but I am not sure if it is right:
HWINDOW hwnd(SDL_Window *window)
{
SDL_SysWMinfo sysInfo;
SDL_VERSION(&sysInfo.version);
SDL_GetWindowWMInfo(window, &sysInfo);
return sysInfo.info.win.window;
}
gr = new Graphics(context_);
sdlW_ = gr->GetWindow();
if (sciter::attach(sdlW_)) // gr->GetWindow()
{
SciterLoadFile(hwnd(sdlW_), L"Data/sciter-glfw-basic-facade.htm");
// ...
}
if // if GetSubsystem()->GetWindow(); instead gr->GetWindow(); is used, then mouse is allways visible, even if mouse is hidden with code. And I am not sure if I get really main window wtih GetSubsystem.