Need window handle
Need window handle
I am using Irrlicht.NET and I need the window handle of the window that Irrlicht uses as an IntPtr, and I don't know how to get it. Thanks in advance for any help, Nazgul42.
this is a snippets from my framework, look at it and see if is usefull
MyData is a type that i defined, the member that you see there is
and the hwnd, is a hwnd xDDD
Au Revoir ^^
Code: Select all
MyData->InternalData = Root->Driver->getExposedVideoData(); // colecta de info xP
switch(Driver){
case EDT_OPENGL:
MyData->hwnd = reinterpret_cast<HWND>(MyData->InternalData.OpenGLWin32.HWnd);
break;
case EDT_DIRECT3D8:
MyData->hwnd = reinterpret_cast<HWND>(MyData->InternalData.D3D8.HWnd);
break;
case EDT_DIRECT3D9:
MyData->hwnd = reinterpret_cast<HWND>(MyData->InternalData.D3D9.HWnd);
break;
default: // umhh, algun renderere por software?
MyData->hwnd = 0;
break;
}
Code: Select all
SExposedVideoData InternalData;
Au Revoir ^^
My Gramathicalz horrorz are precalkulated, zo Zhut Up !
_______
Bah, actually my english is poor, but...
forget it xDDDD
_______
Bah, actually my english is poor, but...
forget it xDDDD