Sets an image to overlay the display. OverlayRect is the position of the overlay within the display. refScreenWidth and refScreenHeight are the virtual size of the display used to position the overlayRect onto the actual screen. So, if you want, you can give it a 640x480 rect, with the ref width/height of 640x480, and it will fill the screen regardless of the screen's actual size. Note that currently the image that is provided is assumed to be persistent until another image is sent (or null is passed for overlay). The overlay does not create a copy, but will use it asynchronously during the next draw. If you are using for dynamic content, keep the old image around until *after* you set a new overlay image.
Definition at line 44 of file CATOverlay.cpp. References fKeepAspect, fLock, fOverlay, fOverlayDirty, fOverlayRect, fRefScreenHeight, fRefScreenWidth, CATCritSec::Release(), and CATCritSec::Wait().
|