Home | Trees | Index | Help |
---|
Package pygame :: Module sprite :: Class RenderClear |
|
object
--+ |Group
--+ | RenderClear
RenderUpdates
Method Summary | |
---|---|
__init__(sprite=()) instance a Group | |
__len__() -> int number of sprites in group (inherited from Group )
| |
a new object with type S, a subtype of T |
|
__nonzero__() -> bool ask if group is empty (inherited from Group )
| |
__repr__(self)
(inherited from Group )
| |
add(sprite) add sprite to group (inherited from Group )
| |
add_internal(self,
sprite)
(inherited from Group )
| |
clear(surface, bgd) erase the previous position of all sprites | |
copy() -> Group copy a group with all the same sprites (inherited from Group )
| |
draw(surface) draw all sprites onto a surface | |
empty() remove all sprites (inherited from Group )
| |
has(sprite) -> bool ask if group has sprite (inherited from Group )
| |
remove(sprite) remove sprite from group (inherited from Group )
| |
remove_internal(self,
sprite)
| |
sprites() -> iterator return an object to loop over each sprite (inherited from Group )
| |
update(...) call update for all member sprites (inherited from Group )
|
Method Details |
---|
__init__(self,
sprite=())
|
__new__(S, ...)
|
clear(self, surface, bgd)clear(surface, bgd) erase the previous position of all sprites Clears the area of all drawn sprites. the bgd argument should be Surface which is the same dimensions as the surface. The bgd can also be a function which gets called with the passed surface and the area to be cleared. |
draw(self, surface)draw(surface) draw all sprites onto a surface Draws all the sprites onto the given surface. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sun Nov 30 19:33:10 2003 | http://epydoc.sf.net |