[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] C access to SDL surfaces



Dan Krol wrote:
I was wondering if someone could tell me if there
was any way to get C access to SDL surfaces.

My intention is
to make a .h file in C that generates the effect, and make it into a
python file using Pyrex.

If you look into the PyGame sources and find out how
they wrap an SDL surface as a PyGame 'surface' object,
you should be able to declare 'surface' as an external
extension type in Pyrex and get access to all its
internals.

--
Greg