Package pygext :: Package gl :: Package shapes :: Module composite :: Class Composite
[frames | no frames]

Type Composite

object --+    
         |    
   GLShape --+
             |
            Composite


Composite shape

The Composite object is used when you want to compose a shape from several different shapes, but still be able to animate the sub-parts independently.
Method Summary
  __getitem__(self, name)
  add(self, name, shape, x, y, **kw)
  compile(self)
shape.compile() -> None
  copy(self)
shape.copy() -> new shape object
  get_stencil_poly(self)
  init(self)
  mirror(self, target)
  remove(self, name)
  varcolor(self, r, g, b, a)
    Inherited from GLShape
  __init__(self, *arg, **kw)
  __del__(self)
  __getattr__(self, name)
  alpha(self, a)
shape.alpha(alpha) -> shape
  execute(self)
shape.execute() -> None
  get_stencil_rect(self)
  unallocate(self)
shape.unallocate() -> None

Method Details

compile(self)

shape.compile() -> None

Compile the shape into a display list for quicker output. If you manipulate the shape in anyway (e.g. rotate/scale), you need to call compile again.
Overrides:
pygext.gl.shapes.base.GLShape.compile (inherited documentation)

copy(self)

shape.copy() -> new shape object

Create a fresh copy of the shape that can be manipulated wihtout altering the original.
Overrides:
pygext.gl.shapes.base.GLShape.copy (inherited documentation)

Generated by Epydoc 2.1 on Mon Jun 12 18:21:20 2006 http://epydoc.sf.net