Package pygame :: Module sprite :: Class RenderUpdates
[show private | hide private]
[frames | no frames]

Class RenderUpdates

   object --+        
            |        
AbstractGroup --+    
                |    
            Group --+
                    |
                   RenderUpdates

Known Subclasses:
Multi, SpriteGroup

A sprite group that's more efficient at updating. This group supports drawing to the screen, but its draw method also returns a list of the Rects updated by the draw (and any clears in between the last draw and the current one). You can use pygame.display.update(renderupdates_group.draw(screen)) to minimize the updated part of the screen. This can usually make things much faster.
Method Summary
  draw(self, surface)
draw(surface) draw all sprites onto the surface
    Inherited from Group
  __init__(self, *sprites)
    Inherited from AbstractGroup
  __contains__(self, sprite)
  __iter__(self)
  __len__(self)
len(group) number of sprites in group
  __nonzero__(self)
  __repr__(self)
  add(self, *sprites)
add(sprite, list, or group, ...) add sprite to group
  add_internal(self, sprite)
  clear(self, surface, bgd)
clear(surface, bgd) erase the previous position of all sprites
  copy(self)
copy() copy a group with all the same sprites
  empty(self)
empty() remove all sprites
  has(self, *sprites)
has(sprite or group, ...) ask if group has a sprite or sprites
  has_internal(self, sprite)
  remove(self, *sprites)
remove(sprite, list, or group, ...) remove sprite from group
  remove_internal(self, sprite)
  sprites(self)
sprites() get a list of sprites in the group
  update(self, *args)
update(*args) call update for all member sprites
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Class Variable Summary
    Inherited from AbstractGroup
bool _spritegroup = True

Method Details

draw(self, surface)

draw(surface) draw all sprites onto the surface

Draws all the sprites onto the given surface.
Overrides:
pygame.sprite.AbstractGroup.draw (inherited documentation)

Generated by Epydoc 2.0 on Sat Dec 9 14:11:19 2006 http://epydoc.sf.net