[plt-scheme] Re: gl-config% - Double buffering

From: tfnood at gmail.com (tfnood at gmail.com)
Date: Mon Mar 19 05:41:03 EDT 2007

Ok ! I understand what you both say.
Because my project is a game, I was thinking use OpenGL will be a good
solution but it's maybe a little too soon for me ^^

I will try a little more, and if I can't do it, I would make a
traditional animated canvas...

Thanks a lot !


On 19 mar, 02:05, Matthew Flatt <mfl... at cs.utah.edu> wrote:
> At Sat, 17 Mar 2007 12:49:36 -0000, "tfn... at gmail.com" wrote:
>
> > With your help and the \PLT-369.8\collects\games\jewel\jewel.scm
> > source, i made a new version but this time, the canvas is scrambled :
> >http://dl.free.fr/p2n3d2La/GLtest.png
>
> Your code doesn't use GL for drawing. It draws directly to a MrEd
> drawing context, instead. So when you swap the GL buffer in, it just
> has garbage, since nothing has been drawn using GL.
>
> If you just remove the call `(swap-gl-buffers)', then you'll see your
> drawing.
>
> For information on double-buffering with MrEd drawing contexts, see
>
>  http://list.cs.brown.edu/pipermail/plt-scheme/2007-March/016690.html
>
> Matthew
>
> _________________________________________________
>   For list-related administrative tasks:http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.