Dimension of an Irrlicht Device

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
Silbermünze
Posts: 34
Joined: Thu Sep 15, 2005 12:27 pm
Location: Stuttgart, Germany

Dimension of an Irrlicht Device

Post by Silbermünze »

Hi everyone!

I am currently working with a small example on Irrlicht.NET CP. However the problem is to my understanding Irrlicht-based. I want to know, if anyone knows, when I specify something like this:

Code: Select all

IrrlichtDevice device = new IrrlichtDevice(DriverType.OpenGL,new Dimension2D(640, 480),16, false, false, false, false);
wehther the actual render port window is of the given size, or the whole WindowsXP window is of size (640, 480). I would expect the render port to be of size (640,480) which would require the WindowsXP window to be slightly larger due to the window bar.

Thanks in advance.
Thoran
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

yes.

when you specifying 640,480 you will get render area exactly 640 width and 480 height. if it is window mode ( not fullscreen ), real window size will be larger due to window caption and window border width ( real values depends on settings of user's desktop ).
Post Reply