| Home | Trees | Index | Help |
|
|---|
| Package pygext :: Package gl :: Package shapes :: Module bitmap :: Class Bitmap |
|
object--+ |GLShape--+ | Bitmap
PatternImageA shape representing a raster image
This class is used to wrap Pygame surfaces to OpenGL textures.| Method Summary | |
|---|---|
shape.copy() -> new shape object | |
get_stencil_poly(self)
| |
get_stencil_rect(self)
| |
Bitmap(surface, hotspot=(0.5,0.5)) Initialize a new Bitmap object. | |
set_hotspot(self,
rx,
ry)
| |
| Inherited from GLShape | |
| |
| |
| |
shape.alpha(alpha) -> shape | |
shape.compile() -> None | |
shape.execute() -> None | |
shape.unallocate() -> None | |
| Class Variable Summary | |
|---|---|
bool |
border = False
|
tuple |
default_hotspot = (0.5, 0.5)
|
bool |
use_filtering = True
|
| Instance Method Details |
|---|
copy(self)shape.copy() -> new shape object Create a fresh copy of the shape that can be manipulated wihtout altering the original.
|
init(self, img, hotspot=None, border=None)
Bitmap(surface, hotspot=(0.5,0.5))
Initialize a new Bitmap object.
surface - Pygame surface to wrap
hotspot - The hotspot is used as a fixed point for transformations.
Valid values range from (0,0) to (1,1) (top left to bottom right).
The center of the image is (0.5, 0.5)
|
| Class Variable Details |
|---|
border
|
default_hotspot
|
use_filtering
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jun 12 18:21:21 2006 | http://epydoc.sf.net |