[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] C access to SDL surfaces
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] C access to SDL surfaces
- From: "René Dudfield" <renesd@xxxxxxxxx>
- Date: Wed, 17 Oct 2007 08:44:16 +1000
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 16 Oct 2007 18:44:25 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=OhYgUJO3iKg8Pz7p61DzLmUIAKPe3AjUo2sONSlr0ro=; b=SFiWRHT0qAsmiMkyp+NlkF1UXUstT5vtBgs+M92yf/Hw+s0EGAMOJnom37KbJVd8Kij3RpS42wR0k6R+yABBBAfJxnSJrolhwe0th2t2E2N7kdi22LU+hezQHhiCo1Hsm85Zl4AX+IiuV3mrlmM8dSJHULrYQn/4aK4bkGtgSIY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SJu30jEMLzdnm4/eNh5LYub22MOcwWN6cvnjt12W1BY+IIlFViPXXcqhYE+njpj+0nq4WVjFKcMhLXwcccsjwcZJAaTCTPhqN8Bqbc5UWH7mTNEAv+LKCweoMr+zYr4E9+jcTMa5ozT7obEePALqJK5z4vJ8iAkYfwPIl029BG4=
- In-reply-to: <94e10adf0710161231l5f1c4c35o1b3cada2af427141@xxxxxxxxxxxxxx>
- References: <94e10adf0710161231l5f1c4c35o1b3cada2af427141@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
if you think they'll be useful for other people you could maybe
contribute them as a module for pygame? Or part of an existing
module.
Otherwise... Gregs suggestion should work fine.
Cheers,
On 10/17/07, Dan Krol <orblivion@xxxxxxxxx> wrote:
> 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
>