KOS function to upscale in PVR?

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
Corbin
DC Developer
DC Developer
Posts: 121
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Fri Dec 14, 2007 1:56 am
Location: California
Has thanked: 0
Been thanked: 0

KOS function to upscale in PVR?

Post by Corbin »

Hi everyone,

I need to know what function should be called from KOS to enable VGA mode if detected. Right now my engine runs at 640x480, so I'll need a flag in my set resolution code to go up to 800x600...not sure if anything KOS-specific needs to be defined.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: KOS function to upscale in PVR?

Post by BlueCrab »

First off 800x608 (there is no 800x600 mode) does not work in KOS as it stands, so there really isn't a way to do what you're asking at the moment.

To get to the meat of your question though, you'd have to use a combination of vid_check_cable() and vid_set_mode() or vid_set_mode_ex() to do what you've asked about (links are to the KOS documentation, which is available online).
User avatar
Corbin
DC Developer
DC Developer
Posts: 121
Joined: Fri Dec 14, 2007 1:56 am
Location: California
Has thanked: 0
Been thanked: 0

Re: KOS function to upscale in PVR?

Post by Corbin »

Okay, no worries!

Thanks for the links BlueCrab!
User avatar
PH3NOM
DC Developer
DC Developer
Posts: 576
Joined: Fri Jun 18, 2010 9:29 pm
Has thanked: 0
Been thanked: 5 times

Re: KOS function to upscale in PVR?

Post by PH3NOM »

Your first post seems to imply that you assume VGA mode is 800x600(or 800x608 :wink: ), but that is not the case.

VGA is 640x480p, i.e. progressive-scan; the standard video mode is 640x480i, interlaced.
VGA mode essentially gives us 2x the vertical resolution per-frame
https://en.wikipedia.org/wiki/Progressive_scan
Post Reply