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 / SetVirtualResolution problem?

Author
Message
Carharttguy
7
Years of Service
User Offline
Joined: 8th Jul 2016
Location: Belgium
Posted: 6th Mar 2017 09:38 Edited at: 6th Mar 2017 10:00
Hello

My setup: I'm making a 3D world designer in AppGameKit, a AppGameKit window is embedded in another application via a HTML5 canvas.
As my application resizes, the canvas has to resize too. This works.
The problem is that I want to use the print statement for debugging some values. But the print text is way to big, I cannot read the whole text.
See this image for the size of the print command:



My resize command looks like this:



I also tried setting the virtualResolution to Width*2 and Height*2, but that doens't change a thing.
If that doesn't resize the virtual resolution, what does it do exactly?

What do I do wrong? How do I "create" more pixels on my window, and thus the print() text smaller?

Thanks for your time!

Edit: I tested in another project, not HTML this time. Test this code:


And then uncomment the line and run again. There is absolutely no difference, is the print() statement unaffected by pixels?



Carharttguy
7
Years of Service
User Offline
Joined: 8th Jul 2016
Location: Belgium
Posted: 6th Mar 2017 10:05
Demmit, I'm so stupid. The SetPrintSize() function is what I need.
I'm sorry to bother you guys!

Login to post a reply

Server time is: 2024-04-26 04:44:09
Your offset time is: 2024-04-26 04:44:09