Differences between revisions 5 and 6
Revision 5 as of 2006-04-24 06:18:52
Size: 858
Editor: d220-238-73-98
Comment:
Revision 6 as of 2006-04-25 01:17:36
Size: 1063
Editor: 160
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:

 * This work will also include binding the SDL companion libraries like SDL_mixer, SDL_ttf, etc. It would be worth looking at other libraries such as SDL_gfx to replace large portions of pygame C code.

PygameOnCtypes

Pygame wraps some SDL libraries (SDL, SDL_Image etc) using C code. It also provides some extra misc. C functions.

Python2.5 will include ctypes in the standard library. SoC 2006 is a good opportunity to recreate the pygame API using ctypes. This will let the average python programmer, who does not work with C, to hack on and extend pygame.

This same work (ctypes conversion) is already happening with PyOpenGL.

Some notes...

  • you need to know C to work with C types. However it does mean you can work on some things without a compiler. Which is a big part of the hurdle on some platforms.
  • pygame-ctypes will probably need C. Just like pyopengl-ctypes does. Pygame is not only a binding to SDL.
  • ctypes does not have a stable api yet, and does not work on ARM. Both of which should be fixed in the future.
  • This work will also include binding the SDL companion libraries like SDL_mixer, SDL_ttf, etc. It would be worth looking at other libraries such as SDL_gfx to replace large portions of pygame C code.

CodingProjectIdeas/PygameOnCtypes (last edited 2008-11-15 13:59:40 by localhost)

Unable to edit the page? See the FrontPage for instructions.