Pete Shinners wrote:
Pygame has a complete C api that can be used to pass objects back and
forth between Python. Your C code will need to link to Python and SDL.
Then include the pygame.h
After that, working with Pygame objects in C is no different than
working with any other Python object in C. This is exactly what you
want, but there's not much documentation on it all. the Pygame header
file isn't too big though and includes many more notes. It will look
funky funky because it uses Python runtime linker.
The code should look similar to this...
#include <pygame.h>
The pygame headers are installed in a pygame directory within the python
headers directory. So it would more likely be
#include <pygame/pygame.h>
unless the pygame headers path is explicitly included in the compiler
search path.
--
Lenard Lindstrom
<[EMAIL PROTECTED]>