Photon questions

Hi there!

Some questions about photon…

  1. Can the Photon support two different resolutions at the same time?
    ( For example, in the Linux, I set up two 640x480 and 800x600 resolution
    for the desktop, then I use keyboard to switch the resolution from
    640x480 to 800x600)

  2. Where can I find sample code of “accessing video memory”? I want to
    write a code to get video base memory. I have the DDK from Momentics.

  3. Is it possible build a Photon app that can change desktop resolution
    automatically? (For example, I create two buttons, one is 640x480,
    another one is 800x600, therefore, I just click the button to change the
    desktop resolution, instead of changing the “graphics configuration”


    Claudio Cardozo
    cazo@infax.com.br

Claudio Cardozo wrote:

Hi there!

Some questions about photon…

  1. Can the Photon support two different resolutions at the same time?
    ( For example, in the Linux, I set up two 640x480 and 800x600 resolution
    for the desktop, then I use keyboard to switch the resolution from
    640x480 to 800x600)

Yes, Photon can support two resolutions at the same time; however,
this does not appear to be what you want. What you want is for Photon
to be able to support switching between two resolutions (thereby
displaying one resolution at one time, and another at a different time).

I don’t think there is an inherent utility for doing this, but I am sure
writing one would be quite simple (this follows into question 3).

  1. Is it possible build a Photon app that can change desktop resolution
    automatically? (For example, I create two buttons, one is 640x480,
    another one is 800x600, therefore, I just click the button to change the
    desktop resolution, instead of changing the “graphics configuration”

See PgGetVideoMode/PgSetVideoMode.

Rennie