[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] C access to SDL surfaces
- To: pygame-users@xxxxxxxx
- Subject: [pygame] C access to SDL surfaces
- From: "Dan Krol" <orblivion@xxxxxxxxx>
- Date: Tue, 16 Oct 2007 14:31:43 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 16 Oct 2007 15:31:53 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=bd46VYNneeP9j8l9FOOxcksG50HB+shSdP4RD3p7z3c=; b=fjF0XRxNgtuwv7fYzsfJFxnT+MfZraqflKGP2bU03Gz5yazK4e2luz3uTBzgDlU+YV7duLRg9TT5Wv6L7b/68pYqBlGsrjJretWKqpaLKTEA5FAHZslfwe51jJMgyegzS3N/Vs09iUFNaGRqw1XHDMVLEcC/tJU11Z1yrIFXo1s=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=k4HPamtADUXS5MtjOpiKjyCPA7XIkgi5szpbRAzyxd62Wzs3eFLxUXmTM2CbRg9iENe4fBY1HODmO/ptm+3glvUDwOQppyLYrHFO04VS1p2ubbZfPa7vI8hQPQmffaaWmgm7WNWGtx4U7fKW2OAFKS/c0IJp8j/92bdmmYLKltw=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello,
My name is Dan. I'm currently developing a 2d engine, and I was
wondering if I could get some help from this list. I was going to use
Python only for some parts of it, but for prototyping I started making
the whole thing in Python, and thus Pygame. Now I'm thinking I might
just want to make most of the final version in Python, and just
optimize things in C (if it's fast enough, why not?), including
continuing to use Pygame.
Part of the C optimization would be generation of visual effects. I
looked for this online and on the Pygame site but was unable to find
anything about it. I was wondering if someone could tell me if there
was any way to get C access to SDL surfaces. I know that there's this
Surfarray thing, but I'd rather generate my effects the old fashioned
way.
Is there a relatively straightforward way to do this? My intention is
to make a .h file in C that generates the effect, and make it into a
python file using Pyrex.
Thank you in advance, and thank you for offering this mailing list,
Dan