GBlitRegions Class Reference

Blitting region helper class, can calculate the right source and dest rectangles for a blt operation including propagating clipping back to the source rect. More...

#include <Gdc2.h>

List of all members.

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.


Detailed Description

Blitting region helper class, can calculate the right source and dest rectangles for a blt operation including propagating clipping back to the source rect.

Constructor & Destructor Documentation

GBlitRegions::GBlitRegions ( GSurface Dst,
int  x1,
int  y1,
GSurface Src,
GRect SrcRc = 0 
) [inline]

Calculate the rectangles.

Parameters:
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().


The documentation for this class was generated from the following file:

Generated on Wed Dec 1 15:41:02 2010 for Lgi by  doxygen 1.5.7.1