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.

Newcomers AppGameKit Corner / Stretch Game Window To Fill With No Black Borders?

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 28th Apr 2017 20:15
Hi,

Been playing around with AppGameKit and have a question:
Is there a command to tell AppGameKit to stretch the game's window to fill completely with no black borders?
(disable aspect ratio I guess? need it to work on desktop & mobile)
Thanks! Nice engine!

Jesse
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
JohnnyMeek
10
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 29th Apr 2017 17:23
or use the percentage system and use SetDisplayAspect (-1) to automatically set the correct aspect ratio for the device.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 30th Apr 2017 00:28 Edited at: 30th Apr 2017 00:29
The command SetScissor(0,0,0,0) will remove the black bars and allow you to draw on the entire screen.

>Edit<
On mobile at least, I've never written a full-screen windows game.

Login to post a reply

Server time is: 2024-04-23 09:46:02
Your offset time is: 2024-04-23 09:46:02