Home | Trees | Index | Help |
|
---|
Package pygext :: Package gl :: Package shapes :: Module composite :: Class 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)
| |
shape.compile() -> None | |
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 | |
| |
| |
| |
shape.alpha(alpha) -> shape | |
shape.execute() -> None | |
| |
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.
|
copy(self)shape.copy() -> new shape object Create a fresh copy of the shape that can be manipulated wihtout altering the original.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jun 12 18:21:20 2006 | http://epydoc.sf.net |