|resolution||a pair of numbers representing the width and height of the window|
|flags||additional options that change the type of window - see "Remarks" for avaliable flags|
|depth||amount of bits used for color|
|pygame.FULLSCREEN||window is fullscreen|
|pygame.RESIZABLE||window is resizeable|
|pygame.NOFRAME||window has no border or controls|
|pygame.DOUBLEBUF||use double buffer - recommended for |
|pygame.HWSURFACE||window is hardware accelerated, only possible in combination with |
|pygame.OPENGL||window is renderable by OpenGL|
Pygame can currently only handle one single window at a time. Creating a second window by calling
pygame.display.set_mode((x,y)) a second time will close the first window.
depths argument is almost never required - pygame will select the best one by itself. In case a depth that is not supported by the system is set, pygame will emulate this depth, which can be very slow.
Things that are drawn onto the surface returned by
pygame.display.set_mode() are not immediately visible on screen - the display first has to be flipped using