Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

virtual void OSystem::copyRectToScreen ( const byte *  buf,
int  pitch,
int  x,
int  y,
int  w,
int  h 
) [pure virtual]

Blit a bitmap to the virtual screen. The real screen will not immediately be updated to reflect the changes. Client code has to to call updateScreen to ensure any changes are visible to the user. This can be used to optimize drawing and reduce flicker. The graphics data uses 8 bits per pixel, using the palette specified via setPalette.

Parameters:
buf the buffer containing the graphics data source
pitch the pitch of the buffer (number of bytes in a scanline)
x the x coordinate of the destination rectangle
y the y coordinate of the destination rectangle
w the width of the destination rectangle
h the height of the destination rectangle
Note:
The specified destination rectangle must be completly contained in the visible screen space, and must be non-empty. If not, a backend may or may not perform clipping, trigger an assert or silently corrupt memory.
See also:
updateScreen


Generated by  Doxygen 1.6.0   Back to index