Package pygext :: Package gl :: Package shapes :: Module bitmap :: Class Bitmap
[frames | no frames]

Type Bitmap

object --+    
         |    
   GLShape --+
             |
            Bitmap

Known Subclasses:
PatternImage

A shape representing a raster image

This class is used to wrap Pygame surfaces to OpenGL textures.
Method Summary
  copy(self)
shape.copy() -> new shape object
  get_stencil_poly(self)
  get_stencil_rect(self)
  init(self, img, hotspot, border)
Bitmap(surface, hotspot=(0.5,0.5)) Initialize a new Bitmap object.
  set_hotspot(self, rx, ry)
    Inherited from GLShape
  __init__(self, *arg, **kw)
  __del__(self)
  __getattr__(self, name)
  alpha(self, a)
shape.alpha(alpha) -> shape
  compile(self)
shape.compile() -> None
  execute(self)
shape.execute() -> None
  unallocate(self)
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.
Overrides:
pygext.gl.shapes.base.GLShape.copy (inherited documentation)

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)
Overrides:
pygext.gl.shapes.base.GLShape.init

Class Variable Details

border

Type:
bool
Value:
False                                                                  

default_hotspot

Type:
tuple
Value:
(0.5, 0.5)                                                             

use_filtering

Type:
bool
Value:
True                                                                   

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