retrieve the hwnd of our render window
| 406 | #if defined(TORQUE_OS_WIN) && !defined(TORQUE_SDL) |
| 407 | // retrieve the hwnd of our render window |
| 408 | void* torque_gethwnd() |
| 409 | { |
| 410 | if (PlatformWindowManager::get() && PlatformWindowManager::get()->getFirstWindow()) |
| 411 | { |
| 412 | Win32Window* w = (Win32Window*) PlatformWindowManager::get()->getFirstWindow(); |
| 413 | return (void *) w->getHWND(); |
| 414 | } |
| 415 | |
| 416 | return NULL; |
| 417 | } |
| 418 | |
| 419 | // directly add a message to the Torque 3D event queue, bypassing the Windows event queue |
| 420 | // this is useful in the case of the IE plugin, where we are hooking into an application |
nothing calls this directly
no test coverage detected