Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Get window size

Author
Message
Barkron
15
Years of Service
User Offline
Joined: 14th Jul 2009
Location:
Posted: 3rd Oct 2009 22:06
For a new project, i needed the window size to resize the camera, if i change the window size, otherwise the picture will be scretched.

sfmbe
Paynterboi TicTacToe
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: That one place
Posted: 4th Oct 2009 06:20 Edited at: 4th Oct 2009 06:21
Are you useing the default window or are you altering it's size?

I don't know the default's size but you can maybe alter it yourself and than use the numbers you put in to resize the camera.



That is what I use in my game, It sets the window size to 800x600. I use this because It is a widely supported display mode and knowing the resolution makes it easy to size the objects, position camera's etc.

EYE R T3H +ick +ack +oe mester
Barkron
15
Years of Service
User Offline
Joined: 14th Jul 2009
Location:
Posted: 4th Oct 2009 13:27
the default size is 640x480.
but now i want to change the window size, the space it use on the screen. and if i change it like it is normal in window, the directx part of the window scretch, so the picture become unclear.
Barkron
15
Years of Service
User Offline
Joined: 14th Jul 2009
Location:
Posted: 4th Oct 2009 19:31
i got it, will post the solution in code base!

Login to post a reply

Server time is: 2024-11-20 13:27:49
Your offset time is: 2024-11-20 13:27:49