return irrlicht window handle

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
codydbgt
Posts: 7
Joined: Fri Nov 05, 2010 4:25 am
Location: US
Contact:

return irrlicht window handle

Post by codydbgt »

I was wondering how I would get the irrlicht device window handle.

This is all I could find and it gives me an error but mabe I'm missing something

http://irrlicht.sourceforge.net/phpBB2/ ... d008f210ae

so i tried this

Code: Select all

 reinterpret_cast<HWND>(video::IVideoDriver::getExposedVideoData()->OpenGLWin32.HWnd)
well of course I got a compile error since i was trying to call a class and not a object I think :oops:
HELLO LIKE TF2 THEN COME JOIN OUR SERVER GO TO http://steamcommunity.com/groups/TF2BMS ENJOY- multi sentry and 50+ mods- and i like to program!
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

Replace video::IVideoDriver:: with a pointer to the video driver and it will work a lot better. :D
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: return irrlicht window handle

Post by greenya »

codydbgt wrote: so i tried this

Code: Select all

 reinterpret_cast<HWND>(video::IVideoDriver::getExposedVideoData()->OpenGLWin32.HWnd)
well of course I got a compile error since i was trying to call a class and not a object I think :oops:
To call getExposedVideoData() you need an instance of video::IVideoDriver; this instance can be received from device->getVideoDriver() call. And the device is a result of createDevice().
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: return irrlicht window handle

Post by netpipe »

what is the linux version ?
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply