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

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Mar 18 21:05:48 EDT 2007

At Sat, 17 Mar 2007 12:49:36 -0000, "tfnood 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



Posted on the users mailing list.