Hello, I'm using Irrlicht in a Win32 window to use as a renderer in an existing project however I've come across this strange problem where Irrlicht does not render strictly in the window's client area but rather seems to render underneath the titlebar and window frame.
Anybody else ever encounter this and know how to get around it?
Thanks!
Irrlicht in Win32 Window
Re: Irrlicht in Win32 Window
screen shot? wich gui library are u using? never had this problem.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
-
- Posts: 14
- Joined: Thu Sep 20, 2007 3:57 am
Re: Irrlicht in Win32 Window
I'm creating an Irrlicht device object using a window handle given to me by SDL.
It seems somebody else encountered something vaguely similar.
The code I'm using for creating the Irrlicht device can be found here.
Screenshot of the window itself:
Screenshot taken by Irrlicht (via IVideoDriver::createScreenShot):
It seems somebody else encountered something vaguely similar.
The code I'm using for creating the Irrlicht device can be found here.
Screenshot of the window itself:
Screenshot taken by Irrlicht (via IVideoDriver::createScreenShot):
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
Re: Irrlicht in Win32 Window
Humm, interesting (the top of the image mostly), What i'm seeing there look like a "bug" on the way the Image is saved from the createScreenshot, it take the whole context (your WIN32 windows) while your IRRlicht content doest have the top and bottom bar (used by the window). I don't think using this would work.
Check the RTT examples from the SDK. I think a RTT camera could make a proper screenshot.
Check the RTT examples from the SDK. I think a RTT camera could make a proper screenshot.
-
- Posts: 14
- Joined: Thu Sep 20, 2007 3:57 am
Re: Irrlicht in Win32 Window
Well when the window doesn't have a frame it renders as expected. One of the ways I know Irrlicht is rendering underneath the title bar is that there is supposed to be a menu bar at the top.