What is the difference between a texture and a window and a screen?
A screen corresponds to a physically connected display device. Screen 0 is the display with the Dock and menu bar. Screen 1 (on a dual-display system) is the 2nd display, and so on… The Screen(‘Screens’) command returns a vector of all available screens – the available, connected and powered on display devices. If you have a dual-display setup whose displays are switched into mirror-mode (both displays show same content), then this will appear to PTB as a single screen. The screen-number just defines on which physical output device you want to open/show your stimulus window. An onscreen-window is used to display your stimulus. Each screen can have exactly one full-screen onscreen window – or no PTB window at all. All drawing commands expect a handle to an onscreen window so they know where to draw to. Onscreen windows are double-buffered: They consist of a backbuffer and a frontbuffer. The backbuffer is where all drawing operations are performed — where you build/prepare your stimul