Overview Members Chapter Previous Next

CDXSurface::DrawClipped

virtual HRESULT DrawClipped( int X , int Y , CDXSurface* lpDDS , LPRECT ClipRect ) ;

Copies the bitmap from the source surface to the surface pointed to by lpDDest. Uses X and Y to position the bitmap and the current source colour key for transparent blit. This function clips the bitmap (if the bitmap spils over the edge of the screen it is cut off, otherwise DirectDraw will not complete the operation). If you must clip the object to a certain portion of the screen you must call Clip manaully.