Source

pygame / lib / surfarray.py

Author Commit Message Labels Comments Date
Lenard Lindstrom
adapt mask module for Python 3.1
Lenard Lindstrom
numpy now takes priority over Numeric in sndarry and surfarray
Lenard Lindstrom
new _arraysurfarray module. blit_array bug 24 fix. blit_array now sets alpha to 255 for 3D array blit onto a SRCALPHA surface. _arraysurfarray is the foundation for adding new C surfarray C functions. It uses the array interface so works with the Numeric 24.2 as well. It has no NumPy specific code, doesn't include NumPy or Numeric headers.
marcus
Added get_arraytype() to sndarray and surfarray for querying the active array type. Renamed use_array() to use_arraytype().
marcus
Added numpy support for the sndarray module. BufferProxy now contains a length property, which indicates the length of the buffer in bytes.
marcus
Fixed surfarray.make_surface() and surfarray.blit_array() bugs as reported by Lenard Lindstrom.
marcus
Put numpyarray and the (old) surfarray under pygame.surfarray. Added methods to switch between numpy and Numeric usage.