1. pygame
  2. pygame
  3. pygame


pygame / doc / index.txt


Pygame-ctypes is a reimplementation of Pygame_ using ctypes_.  Internally,
it uses SDL-ctypes, a wrapper around SDL_ using ctypes.  Both Pygame-ctypes
and SDL-ctypes are maintained by `Alex Holkner`_ and supported by
`Google Summer of Code 2006`_.

What's it for?

Pygame is a Python package which provides a simplified interface to
the graphics, audio and input functionalities of SDL.  Until now
Pygame was written as a C Python extension.  This reimplementation
is written purely in Python, giving benefits such as:

* Direct access to all SDL functions and structures, including those
  not provided by Pygame.
* Development and extension of Pygame is greatly simplified.
* Other implementations of Python, such as PyPy, Jython and IronPython
  may in future be able to make use of Pygame-ctypes (support for ctypes
  in each of these implementation is currently under development
  or experimental).

As far as possible Pygame-ctypes has been made API compatible with
Pygame.  However, several new features have already been introduced
that are not available in standard Pygame:

* Support for NumPy and numarray in addition to Pygame's Numeric routines.
* Closer integration with the `Python Imaging Library`_ (PIL) allowing
  more image formats to be loaded and saved.


The latest source release is:

* `pygame-ctypes-0.07 <pygame-ctypes-0.07.tar.gz>`_, includes the
  latest snapshot of SDL-ctypes.

In the future SDL-ctypes may also be released separately from Pygame.
In the meantime you can extract it from the same source download; there
are no dependencies of SDL-ctypes on Pygame-ctypes.

You can also access the SVN repository directly::

    svn co svn://pygame.org/svn/pygame/branches/ctypes-soc


Documentation is included in the source distribution under the ``doc``
directory.  It is also browseable online:

* `Pygame-ctypes API reference <pygame-api/index.html>`_
* `SDL-ctypes Manual <sdl-manual/index.html>`_
* `SDL-ctypes API reference <sdl-api/index.html>`_

.. _SDL: http://www.libsdl.org
.. _ctypes: http://starship.python.net/crew/theller/ctypes
.. _Alex Holkner: mailto:aholkner@cs.rmit.edu.au
.. _Google Summer of Code 2006: http://code.google.com/soc
.. _Pygame: http://www.pygame.org
.. _Python Imaging Library: http://www.pythonware.com/library/pil