[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] OpenGL stretch of a pygame.Surface
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] OpenGL stretch of a pygame.Surface
- From: Sam Bull <sam.hacking@xxxxxxxx>
- Date: Mon, 28 Jul 2014 12:32:40 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 28 Jul 2014 07:32:49 -0400
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sent.com; h= message-id:subject:from:to:date:in-reply-to:references :content-type:mime-version; s=mesmtp; bh=EEj8OQ0ARBFE6aIM5KhCtpQ YZyk=; b=tgt3w9hC78U0JyxJ6CqSK+WLibhWiuT5dx1a5cIdXJcfZ8XQqyzNu+N /Y3B4hNKCpF3i2yezf71XCAHgPALUfr5zwQ9vQqpI3MA9lLhmsPuIg3vwVSZ+xiA 6exEkIScl/Se0y1nK8AMhYRFivp4zxQaS2KfP+DeoeLLOrShAFu4=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:date :in-reply-to:references:content-type:mime-version; s=smtpout; bh=EEj8OQ0ARBFE6aIM5KhCtpQYZyk=; b=kjnWdMxGDINLNOfT+l3UCNEw3pPh UVKLbdj/VrcjoeyG080xtwRowcUG+ZMYTUi3Aet3ZbtK5C8J/6JtlFrCFCSOfpvw 7Wh5likqMbLYFxwJn3EbqJai5TLAkofkNaHwNWeuEMNEI0Hg18gXtA2QyzbWr2LR rBXmAd3sAFCq/Ns=
- In-reply-to: <1406523297.2745.9.camel@shalquoir>
- References: <1406523297.2745.9.camel@shalquoir>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
On lun, 2014-07-28 at 06:54 +0200, VertPingouin wrote:
> So I came up with the idea of an hardware opengl texture stretching
> instead of a dumb blit but I don't know how to achieve it.
>
> Anyone has already done this ?
>
You would just need to code the graphics in OpenGL without using
pygame.Surface and pygame.draw. First though, check you are using the
HWSURFACE flag, if you are running fullscreen, it's possible this might
provide the necessary speedup without going to OpenGL.
http://www.pygame.org/docs/ref/display.html#pygame.display.set_mode
Attachment:
signature.asc
Description: This is a digitally signed message part