Table of Contents

Class: SurfaceGL rdpyg/sprites/spritegl.py

This is useful for tracking changes in a surface. It takes a surface as a keyword initializer: eg s = SurfaceGL(initialize_with_this = a_surf) Or you can initialize it like a normal surface.

Once the pixel data is changed, either is_dirty will be true, or changed_rects will not be empty. If is_dirty is true: then the whole image needs to be updated. Else: if changed_rects is not empty: update the rects which have been changed.

class SurfaceGL(pygame.old_Surface):

Methods   
__getattr__
__init__
__setattr__
blit
fill
  __getattr__ 
__getattr__ ( self,  name )

Exceptions   
AttributeError( name )
  __init__ 
__init__ (
        self,
        *args,
        *kwargs,
        )

  __setattr__ 
__setattr__ (
        self,
        name,
        value,
        )

  blit 
blit ( self,  *args )

TODO: needs to keep track of which parts have been changed. For now marking the whole image as dirty.

  fill 
fill ( self,  *args )

like a normal surface fill, but marks the thing as dirty.


Table of Contents

This document was automatically generated on Sat Jul 30 12:45:41 2005 by HappyDoc version 2.1