Copy images, quickly, between two windows (on- or off- screen). srcRect and
dstRect are set to the size of windows srcWindowPtr and dstWindowPtr by default.
[copyMode] is accepted as input but currently ignored.
CopyWindow is mostly here
for compatibility to PTB-2. If you want to copy images really quickly, use the
'
MakeTexture' and '
DrawTexture' commands. They also allow for rotated drawing
and advanced blending operations. The current
CopyWindow implementation has a
couple of restrictions: One can't copy from an offscreen window into the -same-
offscreen window. One can't copy from an onscreen window into a -different-
onscreen window. Sizes of sourceRect and targetRect need to match for
Onscreen->Offscreen copy.