OpenScreen()

Syntax

Result = OpenScreen(Width, Height, Depth, Title$)
Description
Opens a new screen according to the specified 'Width', 'Height' and 'Depth'. The opened screen is created with 2 video buffers to allows you to do double buffering, especially useful for games. The buffers can be manipulated with the FlipBuffers() command. If the screen fails to open the result is '0'.

Width and Height should be standard combinations: 640*480, 800*600, 1024*768...

Depth can take the following values:
  4 :    16 colors, independant palette available
  8 :   256 colors, independant palette available
  16: 65000 colors, fixed palette
  24: 16 Mo colors, fixed palette
  32: 16 Mo colors, faster than 24 bit mode
Notes: On Windows, the 'Title$' parameter will be displayed in the taskbar, so it's recommended to use a title related to the application name. Also, the Requester commands cannot be used on screens created with OpenScreen.

If you want to open a screen area on a regular window, then take a look at the OpenWindowedScreen() command.

Supported OS

All

<- NextScreenMode() - Sprite Index - OpenWindowedScreen() ->