Home | Trees | Index | Help |
|
---|
Package pygext :: Package gl :: Package shapes :: Module base :: Class GLShape |
|
object
--+
|
GLShape
Bitmap
,
Composite
,
FuncObject
,
GradientRect
,
Primitive
Abstract pygext.gl graphics object
Base shape object that knows how to cache its drawing routines into an opengl display list and supports transformations such as scale and rotate.Method Summary | |
---|---|
__init__(self,
*arg,
**kw)
| |
__del__(self)
| |
__getattr__(self,
name)
| |
shape.alpha(alpha) -> shape | |
shape.compile() -> None | |
shape.copy() -> new shape object | |
shape.execute() -> None | |
get_stencil_poly(self)
| |
get_stencil_rect(self)
| |
Two-phase initialization Override this in subclasses | |
shape.unallocate() -> None |
Method Details |
---|
alpha(self, a)shape.alpha(alpha) -> shape Sets an overal alpha transparency for the whole shape. Note: only effective after a new compile. Valid alpha values are 0-255 |
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. |
execute(self)shape.execute() -> None Execute the opengl commands to draw this shape along with all transformations. |
init(self, *arg, **kw)Two-phase initialization Override this in subclasses |
unallocate(self)shape.unallocate() -> None Free the opengl display list used by this shape. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jun 12 18:21:21 2006 | http://epydoc.sf.net |