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

From: Richard Cleis (rcleis at mac.com)
Date: Mon Mar 19 14:15:10 EDT 2007

It's probably better to choose something simple to do with MrEd,  
first.  In the meantime, you can read about graphical concepts like  
models and views.  Then, you can try OpenGL in Scheme.  Unfortunately  
many OpenGL tutorials use C, which is unnecessarily cumbersome and  
very distracting (that's how I learned some in the last millenia.)   
DrScheme allows experimenting with OpenGL much more interactively.


PLT-Scheme is a much better way to learn

On Mar 19, 2007, at 3:41 AM, tfnood at gmail.com wrote:

> 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
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.