Win32 and Resolution (solved)

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.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

I think you don't get it... ;)

A simple example:

I have a desktop res 1024*768
I create a window 100*100
The window is resizable, let's say up to 200*200
Irrlicht standart creates a device with 1024*768
Irrlicht from your link uses 100*100
But I want 200*200, because it's the max size of the window !!!

Well with the version from your link I could first create the window with 200*200, create the device and then resize the window to 100*100...
!!! This is kindergarden coding !!!
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, I think you don't get it. There's a difference now in the dimension parameter when using own screen or external screen. For the latter it gives the window size with a fixed 1:1 resolution, while in the former case you specify only the resolution with a fixed window size. You're overloading the parameters without even noticing it. That's archaic programming :?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Well, I think we're talking cross over... ;)
And it's going to be an offtopic discussion...
I got what I want and some other users are also interessted in this patch...

Just another example:
If you have a desktop 1024*768
And you create a device with 100*100
All drawings to the device screen uses 1024*768
So if you draw a line from (0,50) to (50,50) the line does not end in the center of the screen, its just a little line in the upper left corner you can barely see !!!
Now I have to draw a line from (0,384) to (512,384) to get the wanted result
This means I have to recalculate all measures to the desktop resolution !!! :roll:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply