[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] gWorld to SDL_Surface
- To: pygame-users@xxxxxxxx
- Subject: [pygame] gWorld to SDL_Surface
- From: el lauwer <el.lauwer@xxxxxxxxx>
- Date: Sun, 5 Jul 2009 07:36:58 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 05 Jul 2009 01:37:05 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=bz8VTStKRMiPEdrNjgGTxwS55eZ21GW15zqDoXTnwEM=; b=g83q+3iqUIcS1WN+vdNGqKa/RyKfLb+dho3/ZcnSTQtAJuLjgPW9wuqDCGtGN/he8q NIWT4igQNCVDp25Z5Nr9xme2a47GPIRUS5C3i8D9guUW8FIjKffc7NNTBTOXDLoz6S9P BAVDE3368VfsKUf/JV/cMr48L0AlHVPYsL/KI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=WCGMkO6RGndI+IzWGqNpykRrSU5njOhUlQDKmp22W2U3zBrxZcqygK7rrOAArI6kAV tUJBLKAWcTcNYSPqCtSECILPBIXBME16iCr95McU542YRja29y/2uGVtNTW3/8v4Bb9I DR6OybiaGU3y+fHJhceGwUlRLWRwXJrHpDaMY=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hoi,
I am trying to put the pixels from the frame I grabbed into an
SDL_Surface, but I find it hard to get the gWorld data into the
SDL_Surface. how can you fill the buffer of the surface. I have tried
to use SDL_Color, but the compiler said that the type didn't exist :s.
is copying all the data from one buffer to an other a good idea, since
this copying takes a while to complete, definitely because it does it
for every frame.
Slu