A surface-like object which smartly handle out-of-area blitting.
ProxySurface(parent, rect, real_surface=None, offset=(0, 0))
only one of parent and real_surface should be supplied (non None)
- parent
a ProxySurface object
- real_surface
a pygame Surface object
Variables
- mysubsurface
a real and valid pygame.Surface object to be used
for blitting.
- x, y
if the proxy surface is lefter or higher than the parent,
x, y hold the diffs.
- offset
an optional feature which let you scroll the whole blitted
content.