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.

AppGameKit Classic Chat / changing resolutions

Author
Message
haliop_New
User Banned
Posted: 26th Nov 2014 14:20
since AppGameKit v2 you can change your app/game resolution on windows
and i was wondering how come there is no command like in DarkGDK that gives you all supported resolutions..

i want to be able to change res in game but i also want to know what res the current pc support..

is this possible ?
Funnell7
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 26th Nov 2014 15:20
I think you are after (AGK v2);

SetWindowSize()
GetDeviceWidth()
GetDeviceHeight()
Multicoder
AGK Developer
10
Years of Service
User Offline
Joined: 25th Oct 2014
Location: Germany
Posted: 26th Nov 2014 15:37
@Funnell7
I think haliop_New wants to get a list / array of all supported resolutions of the current device like 800*600, 1024*768, 1200*900,...etc

@haliop_New
I might be wrong, but I think it's not so much of a problem to not know because the resolution set with AppGameKit is just a virtual resolution.
When using fullscreen the native resolution of the device is used and AppGameKit calculates the positions of sprites, text, etc based on the virtual resolution.

Yes, I am aware that I sound like a caveman to native english speakers
haliop_New
User Banned
Posted: 26th Nov 2014 15:50
im building for pc not mobile this is why it is important
for now i use
GetMaxDevichWidth() and GetMaxDeviceHeight()
just to get the highest possible.
i wish there was a command like in DarkGDK about a list of supported resolutions.
Multicoder
AGK Developer
10
Years of Service
User Offline
Joined: 25th Oct 2014
Location: Germany
Posted: 26th Nov 2014 16:07 Edited at: 26th Nov 2014 16:09
I just tested it on my Windows PC. It doesn't matter for what platform you are building.
I tried a 4k resolution (4096*2304) which is clearly not supported by my display.
It worked.
So I tried a total crazy resolution of 9999*9999 and this worked, too.
The "real" resolution can not be changed and is in fullscreen always the native device / desktop resolution (I think).
AGK calculates everything based on the set virtual resolution.

Yes, I am aware that I sound like a caveman to native english speakers
Alien Menace
AGK Developer
19
Years of Service
User Offline
Joined: 11th Jan 2005
Location: Earth (just visiting)
Posted: 27th Nov 2014 03:36
Not everybody's PC setup is going to work well at the highest resolution, that's why PC games have different resolution options the user can choose from, it's not just a matter of scaling but is also a question of performance. It would be nice if TGC took PC game and app creation with AGK2 a little more to heart and provided a few more options like parsing different resolution options as you have suggested.

Apps published: 4
haliop_New
User Banned
Posted: 27th Nov 2014 08:25
my point exactly !
Nelvin
10
Years of Service
User Offline
Joined: 23rd Nov 2014
Location:
Posted: 27th Nov 2014 14:38
I'd vote for this too.

Login to post a reply

Server time is: 2024-11-25 11:31:41
Your offset time is: 2024-11-25 11:31:41