Skip to content

Video

Video settings.

Example

// display the current Video mode
using SurgeEngine.Video;

object "Application"
{
    state "main"
    {
        Console.print(Video.mode);
        state = "done";
    }

    state "done"
    {
    }
}

Properties

fullscreen

fullscreen: boolean.

Whether or not the engine is running on fullscreen mode. Use this property to toggle between windowed and fullscreen modes.

Available since: Open Surge 0.6.1

mode

mode: string.

The current video mode. The following are the valid values:

  • "default": the size of the screen is set to its default.
  • "fill": the size of the screen is set to the size of the window.
  • "best-fit": similar to "fill", except that the aspect ratio of the default size of the screen is maintained.

Available since: Open Surge 0.6.1