#include <Gdc2.h>
Public Member Functions | |
| GBlitRegions (GSurface *Dst, int x1, int y1, GSurface *Src, GRect *SrcRc=0) | |
| Calculate the rectangles. | |
| bool | Valid () |
| Returns non-zero if both clipped rectangles are valid. | |
Public Attributes | |
| GRect | SrcClip |
| Clipped blit region in destination co-ords. | |
| GRect | DstClip |
| Clipped blit region in source co-ords. | |
| GBlitRegions::GBlitRegions | ( | GSurface * | Dst, | |
| int | x1, | |||
| int | y1, | |||
| GSurface * | Src, | |||
| GRect * | SrcRc = 0 | |||
| ) | [inline] |
Calculate the rectangles.
| Dst | Destination surface |
| x1 | Destination blt x offset |
| y1 | Destination blt y offset |
| Src | Source surface |
| SrcRc | [Optional] Crop the source surface first, else whole surface is blt |
References GRect::Bound(), DstClip, GRect::Offset(), GRect::Set(), SrcClip, GSurface::X(), GRect::x1, GRect::x2, GSurface::Y(), GRect::y1, GRect::y2, and GRect::ZOff().
1.5.7.1